Template:Subpage: Difference between revisions

From wiki.vg
Jump to navigation Jump to search
imported>Dazz
(Created page with "<includeonly>{{#if: {{{1|}}} | {{mbox | text= <span style='font-size: 150%; line-height: 150%'>'''{{#if: {{{tr|}}} | {{#titleparts: {{FULLPAGENAME}} | -1 }} | {{FULLP...")
imported>Kosheh
mNo edit summary
 
(25 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{1|}}} | {{mbox
{{#if: {{{1|}}} | {{Mbox
| text=        <span style='font-size: 150%; line-height: 150%'>'''[[{{#if: {{{tr|}}} | {{#titleparts: {{FULLPAGENAME}} | -1 }} | {{FULLPAGENAME}} }}/{{{1}}}{{#if: {{{tr|}}} | /{{#titleparts: {{FULLPAGENAME}} | | -1 }} }} | {{#if: {{{tr|}}} | {{{tr|}}} | {{{1}}} }}]]'''</span><br>{{{text|}}}
| text=        <span style="font-size: 32px; line-height: 150%">'''[[{{#if: {{{tr|}}} | {{#titleparts: {{FULLPAGENAME}} | -1 }} | {{FULLPAGENAME}} }}/{{{1}}}{{#if: {{{tr|}}} | /{{#titleparts: {{FULLPAGENAME}} | | -1 }} }} | {{#if: {{{tr|}}} | {{{tr|}}} | {{{1}}} }}]]'''</span><br>{{{text|}}}
| image=      {{{image|Blank.png}}}
| image=      {{{image|Blank.png|link=}}}
| caption=       
| caption=       
| border=      #ddd
| border=      #ddd
| background=  #fff
| background=  #fff
| iwidth    =  {{{width|50}}}
| iwidth    =  {{{width}}}
| pic-align =  {{{pic-align|center}}}
| pic-align =  {{{pic-align|center}}}
| min-width =  {{{min-width|50}}}
| min-width =  {{{min-width}}}
}}
}}
  | <blockquote>'''This is a sub-page of ''[[{{#titleparts: {{FULLPAGENAME}}|-1}}]]''.'''</blockquote> {{#ifeq: {{NAMESPACE}} | User | | [[Category:Subpages]] }} }}</includeonly><noinclude>
  | <blockquote>'''This is a sub-page of ''[[{{#titleparts: {{FULLPAGENAME}}|-1}}]]''.'''</blockquote> {{#ifeq: {{NAMESPACE}} | User | | [[Category:Subpages]] }} }}


<noinclude>
==Usage==
==Usage==
If you want to point out that this is a subpage of another one, just use <nowiki>{{subpage}}</nowiki>. If you want to '''link''' to a subpage, use it like this:
If you want to point out that this is a subpage of another one, just use <nowiki>{{subpage}}</nowiki>. If you want to '''link''' to a subpage, use it like this:
Line 20: Line 21:


*'''Name''' is the name of the subpage.
*'''Name''' is the name of the subpage.
*'''Text''' is a small description of its contents. Usually has a [[Help:Guidelines#Humor|humorous]] sentence.
*'''Text''' is a small description of its contents.
*'''Image''' is a related picture, sometimes one of the most interesting items on that subpage.
*'''Image''' is a related picture, sometimes one of the most interesting items on that subpage.
*'''Width''' is the image's width. Default is 50px.
*'''Width''' is the image's width.
*'''Align''' is the image's align. Default is center.
*'''Align''' is the image's align. Default is center.
*'''Min-width''' is the image's minimum width. Default is 50px.
*'''Min-width''' is the image's minimum width.
<!-- *'''tr''' is the translated title, and is to be only used in translations of pages. Using it outside of these will break it brilliantly. -->
<!-- *'''tr''' is the translated title, and is to be only used in translations of pages. Using it outside of these will break it brilliantly. -->
</noinclude>
</noinclude>

Latest revision as of 17:13, 26 February 2019

{{#if: |

{{{width}}}px
{{{width}}}px
[[{{#if: | {{#titleparts: Template:Subpage | -1 }} | Template:Subpage }}/{{{1}}}{{#if: | /{{#titleparts: Template:Subpage | | -1 }} }} | {{#if: | | {{{1}}} }}]]

{{ #if: | [[Category:{{{category1}}}]] | }}{{ #if: | [[Category:{{{category2}}}]] | }}{{ #if: | [[Category:{{{category3}}}]] | }} |

This is a sub-page of [[{{#titleparts: Template:Subpage|-1}}]].

{{#ifeq: Template | User | | }} }}


Usage

If you want to point out that this is a subpage of another one, just use {{subpage}}. If you want to link to a subpage, use it like this:

{{subpage|Name|text=Text|image=Image|width=Width|pic-align=Align|min-width=Min-width}}

Only the subpage name is mandatory.

  • Name is the name of the subpage.
  • Text is a small description of its contents.
  • Image is a related picture, sometimes one of the most interesting items on that subpage.
  • Width is the image's width.
  • Align is the image's align. Default is center.
  • Min-width is the image's minimum width.