Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Subpage: Difference between revisions

Template page
(Created page with "<includeonly> <!--T:1--> {{#if: {{{1|}}} | {{mbox | text= <span style='font-size: 150%; line-height: 150%border: 1px solid #a2a9b1;border-spacing: 3px;background-color:#f8f9fa;'>'''[[{{#if: {{{tr|}}} | {{#titleparts: {{FULLPAGENAME}} | -1 }} | {{FULLPAGENAME}} }}/{{{1}}}{{#if: {{{tr|}}} | /{{#titleparts: {{FULLPAGENAME}} | | -1 }} }} | {{#if: {{{tr|}}} | {{{tr|}}} | {{{1}}} }}]]'''</span><br>{{{text|}}} | image= {{{image|Blank.png}}} | caption= | borde...")
No edit summary
 
(One intermediate revision by the same user not shown)
Line 30: Line 30:
*'''Min-width''' is the image's minimum width. Default is 50px.
*'''Min-width''' is the image's minimum width. Default is 50px.
*'''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>[[Category:Layout templates]]</noinclude>
</noinclude><noinclude>[[Category:Layout templates]]<templatedata>
{
"params": {
"1": {
"label": "Subpage Name",
"required": true,
"suggested": true
},
"tr": {},
"text": {
"label": "Description of Subpage",
"suggested": true
},
"image": {
"label": "Icon for Subpage",
"suggested": true
},
"width": {
"label": "Width"
},
"pic-align": {
"label": "Icon Alignment",
"suggested": true
},
"min-width": {
"label": "Minimum Width"
}
}
}
</templatedata></noinclude>

Latest revision as of 12:59, 28 October 2024


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. Usually has a humorous sentence.
  • Image is a related picture, sometimes one of the most interesting items on that subpage.
  • Width is the image's width. Default is 50px.
  • Align is the image's align. Default is center.
  • Min-width is the image's minimum width. Default is 50px.
  • tr is the translated title, and is to be only used in translations of pages. Using it outside of these will break it brilliantly.

    No description.

    [Edit template data]

    Template parameters

    ParameterDescriptionTypeStatus
    Subpage Name1

    no description

    Unknownrequired
    trtr

    no description

    Unknownoptional
    Description of Subpagetext

    no description

    Unknownsuggested
    Icon for Subpageimage

    no description

    Unknownsuggested
    Widthwidth

    no description

    Unknownoptional
    Icon Alignmentpic-align

    no description

    Unknownsuggested
    Minimum Widthmin-width

    no description

    Unknownoptional
Contents