Actions

Template

Difference between revisions of "Breadcrumb"

From Sonic Retro

(Created page with '{{ArticleNote | image=Sonic Retro emblem.svg | text=[[{{{1}}}{{ #if:{{{l1|}}}| {{!}}{{{l1}}} | }}]] | mini=yes | align=left | inline=1 }} {{ #if:{{{2|}}}|<div class="posrel" styl…')
 
 
(20 intermediate revisions by 4 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
| align=left
+
| inline=yes
| inline=1
+
}}{{#fornumargs:n|t|{{#ifeq:{{#var:n}}|1||
}} {{ #if:{{{2|}}}|<div class="posrel" style="top:-22px;display:inline-block;font-size:120%;margin:0 5px"> &raquo; </div> {{ArticleNote
+
<div style="display:inline-block; vertical-align:top; margin-right:-20px; padding-left:10px; font-size:20px;">&raquo;</div> {{ArticleNote
| text=[[{{{2}}}{{ #if:{{{l2|}}}| {{!}}{{{l2}}} | }}]]
+
| image=
 +
| text=[[{{{{{#var:n}}|}}}{{#if: {{{l{{#var:n}}|}}} | {{!}}{{{l{{#var:n}}|}}} }}]]
 
| mini=yes
 
| mini=yes
| align=left
+
| inline=yes
| inline=1
+
}}
}} }} {{ #if:{{{3|}}}|<div class="posrel" style="top:-22px;display:inline-block;font-size:120%;margin:0 5px"> &raquo; </div> {{ArticleNote
+
}}
| text=[[{{{3}}}{{ #if:{{{l3|}}}| {{!}}{{{l3}}} | }}]]
+
}}{{clear}}</includeonly><noinclude>Template displayed atop most game-related pages, specifically level, enemy and boss pages.
| mini=yes
+
 
| align=left
+
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)]]".
| inline=1
+
 
}} }}  {{ #if:{{{4|}}}|<div class="posrel" style="top:-22px;display:inline-block;font-size:120%;margin:0 5px"> &raquo; </div> {{ArticleNote
+
==Examples==
| text=[[{{{4}}}{{ #if:{{{l4|}}}| {{!}}{{{l4}}} | }}]]
+
<tt><nowiki>{{Breadcrumb|Sonic the Hedgehog 3|:Category:Sonic the Hedgehog 3 levels|l2=Levels|Angel Island Zone}}</nowiki></tt> produces:
| mini=yes
+
{{Breadcrumb|Sonic the Hedgehog 3|:Category:Sonic the Hedgehog 3 levels|l2=Levels|Angel Island Zone}}
| align=left
+
<tt><nowiki>{{Breadcrumb|noitalics=yes|Sonic the Hedgehog 3|:Category:Sonic the Hedgehog 3 levels|l2=Levels|Angel Island Zone}}</nowiki></tt> produces:
| inline=1
+
{{Breadcrumb|noitalics=yes|Sonic the Hedgehog 3|:Category:Sonic the Hedgehog 3 levels|l2=Levels|Angel Island Zone}}
}} }} {{ #if:{{{5|}}}|<div class="posrel" style="top:-22px;display:inline-block;font-size:120%;margin:0 5px"> &raquo; </div> {{ArticleNote
+
<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:
| text=[[{{{5}}}{{ #if:{{{l5|}}}| {{!}}{{{l5}}} | }}]]
+
{{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}}
| mini=yes
+
 
| align=left
+
[[Category:Templates]]</noinclude>
| inline=1
 
}} }}
 

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