Difference between revisions of "Breadcrumb"
From Sonic Retro
m (Text replace - "Category:Sonic Retro Templates" to "Category:Sonic Retro templates") |
BSonirachi (talk | contribs) |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ArticleNote | + | <includeonly>{{#vardefine:noitalics|{{{noitalics|}}}}}{{ArticleNote |
| image=Sonic Retro emblem.svg | | image=Sonic Retro emblem.svg | ||
− | | text=[[{{{1}}}{{ #if:{{{l1|}}}| {{!}}{{{l1}}} | + | | imagesize=22px |
+ | | text={{#ifeq:{{#var:noitalics}}|yes||''}}[[{{{1}}}{{#if: {{{l1|}}} | {{!}}{{{l1}}} }}]]{{#ifeq:{{#var:noitalics}}|yes||''}} | ||
| mini=yes | | mini=yes | ||
− | + | | inline=yes | |
− | | inline= | + | }}{{#fornumargs:n|t|{{#ifeq:{{#var:n}}|1|| |
− | }} {{ # | + | <div style="display:inline-block; vertical-align:top; margin-right:-20px; padding-left:10px; font-size:20px;">»</div> {{ArticleNote |
− | | text=[[{{{ | + | | image= |
+ | | text=[[{{{{{#var:n}}|}}}{{#if: {{{l{{#var:n}}|}}} | {{!}}{{{l{{#var:n}}|}}} }}]] | ||
| mini=yes | | mini=yes | ||
− | | | + | | inline=yes |
− | + | }} | |
− | }} }} | + | }} |
− | | | + | }}{{clear}}</includeonly><noinclude>Template displayed atop most game-related pages, specifically level, enemy and boss pages. |
− | | | + | |
− | | | + | The first field has italics by default, though this can be overridden with <tt>|noitalics=yes</tt>. <tt>|l1=</tt>, <tt>|l2=</tt> and <tt>|l3=</tt> can be used to change labels, which is useful for level/boss pages with bracketed disambiguations, e.g. "[[Green Hill Zone (Sonic Mania)]]". |
− | | | + | |
− | + | ==Examples== | |
− | | | + | <tt><nowiki>{{Breadcrumb|Sonic the Hedgehog 3|:Category:Sonic the Hedgehog 3 levels|l2=Levels|Angel Island Zone}}</nowiki></tt> produces: |
− | | | + | {{Breadcrumb|Sonic the Hedgehog 3|:Category:Sonic the Hedgehog 3 levels|l2=Levels|Angel Island Zone}} |
− | | | + | <tt><nowiki>{{Breadcrumb|noitalics=yes|Sonic the Hedgehog 3|:Category:Sonic the Hedgehog 3 levels|l2=Levels|Angel Island Zone}}</nowiki></tt> produces: |
− | | | + | {{Breadcrumb|noitalics=yes|Sonic the Hedgehog 3|:Category:Sonic the Hedgehog 3 levels|l2=Levels|Angel Island Zone}} |
− | + | <tt><nowiki>{{Breadcrumb|noitalics=yes|Sonic Generations (Nintendo 3DS)|l1=''Sonic Generations'' (Nintendo 3DS)|:Category:Sonic Generations (Nintendo 3DS) levels|l2=Levels|Green Hill (Sonic Generations 3DS)|l3=Green Hill}}</nowiki></tt> produces: | |
− | | | + | {{Breadcrumb|noitalics=yes|Sonic Generations (Nintendo 3DS)|l1=''Sonic Generations'' (Nintendo 3DS)|:Category:Sonic Generations (Nintendo 3DS) levels|l2=Levels|Green Hill (Sonic Generations 3DS)|l3=Green Hill}} |
− | | | + | |
− | | | + | [[Category:Templates]]</noinclude> |
− | | | ||
− | }} |
Latest revision as of 12:12, 30 July 2023
Template displayed atop most game-related pages, specifically level, enemy and boss pages.
The first field has italics by default, though this can be overridden with |noitalics=yes. |l1=, |l2= and |l3= can be used to change labels, which is useful for level/boss pages with bracketed disambiguations, e.g. "Green Hill Zone (Sonic Mania)".
Examples
{{Breadcrumb|Sonic the Hedgehog 3|:Category:Sonic the Hedgehog 3 levels|l2=Levels|Angel Island Zone}} produces:
Sonic the Hedgehog 3 |
Levels |
Angel Island Zone |
{{Breadcrumb|noitalics=yes|Sonic the Hedgehog 3|:Category:Sonic the Hedgehog 3 levels|l2=Levels|Angel Island Zone}} produces:
Sonic the Hedgehog 3 |
Levels |
Angel Island Zone |
{{Breadcrumb|noitalics=yes|Sonic Generations (Nintendo 3DS)|l1=''Sonic Generations'' (Nintendo 3DS)|:Category:Sonic Generations (Nintendo 3DS) levels|l2=Levels|Green Hill (Sonic Generations 3DS)|l3=Green Hill}} produces:
Sonic Generations (Nintendo 3DS) |
Levels |
Green Hill |