Actions

Template

Difference between revisions of "Breadcrumb"

From Sonic Retro

m (condensed the emblem so sizes are consistent)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{ArticleNote
+
<includeonly>{{#vardefine:noitalics|{{{noitalics|}}}}}{{ArticleNote
 
| image=Sonic Retro emblem.svg
 
| image=Sonic Retro emblem.svg
 
| imagesize=22px
 
| imagesize=22px
| text=[[{{{1}}}{{#if: {{{l1|}}} | {{!}}{{{l1}}} }}]]
+
| text={{#ifeq:{{#var:noitalics}}|yes||''}}[[{{{1}}}{{#if: {{{l1|}}} | {{!}}{{{l1}}} }}]]{{#ifeq:{{#var:noitalics}}|yes||''}}
 
| mini=yes
 
| mini=yes
 
| inline=yes
 
| inline=yes
Line 13: Line 13:
 
}}
 
}}
 
}}
 
}}
}}{{clear}}</includeonly><noinclude>
+
}}{{clear}}</includeonly><noinclude>Template displayed atop most game-related pages, specifically level, enemy and boss pages.
{{Breadcrumb|Sonic the Hedgehog 3|l1=''Sonic the Hedgehog 3''|:Category:Sonic the Hedgehog 3 levels|l2=Levels|Angel Island Zone}}
+
 
 +
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>
 
[[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 Retro emblem.svg 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 Retro emblem.svg 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 Retro emblem.svg Sonic Generations (Nintendo 3DS)
»
Levels
»
Green Hill