Jump to content

Template:Subpage: Difference between revisions

From The Hall of Mirrors
Created page with "<includeonly> {{#if:{{{1|}}}| {{mbox | text = <span style="font-size:150%; line-height:150%;">'''[[{{FULLPAGENAME}}/{{{1}}}|{{{1}}}]]'''</span><br>{{{text|}}} | image = {{{image|}}} | border = #ddd | background = #fff | iwidth = {{{width|50}}} | pic-align = {{{pic-align|center}}} | min-width = {{{min-width|50}}} }} }} </includeonly> <noinclude> == Usage == Use this template to link to a subpage. <pre> {{Subpage|Name|text=Description|image=Image|width=50|pic-align=cent..."
 
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
{{#if:{{{1|}}}|
{{#if:{{{1|}}}|
{{mbox
<span style="display:inline-block; vertical-align:top; margin:2px;">
{{Mbox
| text = <span style="font-size:150%; line-height:150%;">'''[[{{FULLPAGENAME}}/{{{1}}}|{{{1}}}]]'''</span><br>{{{text|}}}
| text = <span style="font-size:150%; line-height:150%;">'''[[{{FULLPAGENAME}}/{{{1}}}|{{{1}}}]]'''</span><br>{{{text|}}}
| image = {{{image|}}}
| image = {{{image|}}}
Line 10: Line 11:
| min-width = {{{min-width|50}}}
| min-width = {{{min-width|50}}}
}}
}}
</span>
}}
}}
</includeonly>
</includeonly>

Revision as of 17:53, 4 September 2026


Usage

Use this template to link to a subpage.

{{Subpage|Name|text=Description|image=Image|width=50|pic-align=center}}

The subpage name is required.

  • Name — The name of the subpage.
  • text — Optional description.
  • image — Optional related image.
  • width — Image width. Defaults to 50px.
  • pic-align — Image alignment. Defaults to center.
  • min-width — Minimum image width. Defaults to 50px.