Difference between revisions of "Template:Navigation"
Dinoguy1000 (talk | contribs) (add autogenerated list of other versions of a card, per {{Card navigation}}) |
Dinoguy1000 (talk | contribs) (track uses of Other and Other2; a few other tweaks) |
||
Line 55: | Line 55: | ||
}} }} | }} }} | ||
---- | ---- | ||
− | '''{{ | + | '''{{ #switch: {{ #var: $ns }} |
− | + | | Card Gallery = Card galleries | |
− | | Card Gallery = Card | + | | Card Rulings = [[Ruling|Card rulings]] |
− | | Card Rulings = [[Ruling|Card | + | | Card Errata = [[Errata|Card errata]] |
− | | Card Errata = [[Errata|Card | + | | #default = {{ ucfirst: {{ lc: {{ #var: $ns }} }} }} |
− | | #default = {{ #var: $ns }} | ||
}} A-Z''' | }} A-Z''' | ||
<div style="font-size: 95%;">{{Contents|Category:{{ #var: $ns }}}}</div> | <div style="font-size: 95%;">{{Contents|Category:{{ #var: $ns }}}}</div> | ||
Line 67: | Line 66: | ||
SMW and categories | SMW and categories | ||
− | -->{{IfSemantics | + | -->{{IfSemantics | [[{{NAMESPACE}} page for::{{ #var: $pagename }}| ]] |
− | | [[{{NAMESPACE}} page for::{{ #var: $pagename }}| ]] | + | }}{{ #switch: {{NAMESPACE}} |
− | }}{{ | ||
− | |||
| {{NS:100}}<!-- Card Gallery --> | | {{NS:100}}<!-- Card Gallery --> | ||
| {{NS:102}}<!-- Card Rulings --> | | {{NS:102}}<!-- Card Rulings --> | ||
Line 80: | Line 77: | ||
| {{NS:118}}<!-- Card Artworks --> | | {{NS:118}}<!-- Card Artworks --> | ||
| {{NS:120}}<!-- Card Names --> | | {{NS:120}}<!-- Card Names --> | ||
− | | {{NS:128}}<!-- Card Sets --> = {{ | + | | {{NS:128}}<!-- Card Sets --> = {{ #if: {{{nocat|}}} |
− | |||
| <!-- suppress content categories --> | | <!-- suppress content categories --> | ||
| [[Category:{{NAMESPACE}}]] | | [[Category:{{NAMESPACE}}]] | ||
− | }}<!-- maintenance cats - these should not be suppressed -->{{IfSemantics|{{ | + | }}<!-- maintenance cats - these should not be suppressed -->{{IfSemantics|{{ #ifeq: {{ #var: $pagename }} | {{ #var: $show-name }} |
− | |||
| <!-- card page exists at {{ #var: $pagename }} --> | | <!-- card page exists at {{ #var: $pagename }} --> | ||
− | | {{ | + | | {{ #if: {{ #pos: {{ #var: $pagename }} | = }} |
− | |||
| <!-- hack to keep "Damage = Reptile" info pages out of the tracking category --> | | <!-- hack to keep "Damage = Reptile" info pages out of the tracking category --> | ||
− | | {{ | + | | {{ #if: {{ #var: $show-name }} |
− | |||
| {{Mbox | | {{Mbox | ||
| type = move | | type = move | ||
Line 98: | Line 91: | ||
}} | }} | ||
}} | }} | ||
− | }}}}{{ | + | }}}}{{ #if: {{{name|¬}}} || [[Category:Navigation transclusions to be checked|P]]<!-- {{{name}}} used but empty --> |
− | |||
− | |||
}} | }} | ||
− | | #default<!-- everything else --> = {{ | + | | #default<!-- everything else --> = {{ #switch: {{FULLPAGENAME}} |
− | |||
| Template:Navigation | Template:Navigation/doc | Template:Navigation/sandbox | | Template:Navigation | Template:Navigation/doc | Template:Navigation/sandbox | ||
| Template:Navigation/testcases | Template:Navigation2 | Template:Navigation3 = <!-- no maintenance cats for Template:Navigation et al --> | | Template:Navigation/testcases | Template:Navigation2 | Template:Navigation3 = <!-- no maintenance cats for Template:Navigation et al --> | ||
| #default = [[Category:Navigation transclusions to be checked|S{{FULLPAGENAME}}]] | | #default = [[Category:Navigation transclusions to be checked|S{{FULLPAGENAME}}]] | ||
}} | }} | ||
− | }}{{ | + | }}{{ #if: {{{Other|}}}{{{Other2|}}} | [[Category:((Navigation)) transclusions with "other" parameter]] |
− | + | }}{{ #if: {{{demo|}}}{{{demo_ns|}}} | [[Category:Navigation demonstrations]]<!-- demo cat --> | |
− | |||
}}<noinclude> | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 21:07, 30 October 2015
Usage
This template is used to create the navigation box at the top of Card Gallery, Rulings, Errata, Tips, Appearances, and Trivia pages. Ordinarily, this template can be used just by placing the template call {{Navigation}} on the target page. However, there are some parameters that can be used to influence the final appearance of the navbox.
Examples
{{Navigation}} |
|
{{Navigation|Altname}} If the card's name is different from the page name (for instance, the card Jinzo #7 is located at Jinzo 7 due to the number sign not being usable in URLs), fill in the card's actual name where Altname is. For instance, {{Navigation|Jinzo #7}} for the earlier example. Note that using this parameter does not affect any of the links, only the descriptive text. |
|
{{Navigation|mode=nonGame}} If the card is only found in an anime or manga series or the Yu-Gi-Oh! Duel Monsters promotional cards set, use mode=nonGame to remove Rulings, Tips and Errata links. Shortcut: {{subst:Navigation2}} Note that the shortcut doesn't allow for any additional parameters, such as |other=[[Flame Swordsman (Bandai)|Bandai]]. |
|
{{Navigation|mode=otherGame}} If the card is only found in the Bandai series, Dungeon Dice Monsters or is video game only, you should use mode=otherGame to remove Rulings and Errata links. Shortcut: {{subst:Navigation3}} Note that the shortcut doesn't allow for any additional parameters, such as |other=[[Flame Swordsman (Bandai)|Bandai]]. |
|
{{Navigation|mode=token}} If the card is a token, you should use mode=token to remove the irrelevant links at the top of the box. |
|
{{Navigation|mode=Tip}} if the card is a Tip, Strategy or FAQ card, you should use mode=Tip to remove the Gallery, Rulings, Errata, Anime and Manga Appearances and Tips links at the top of the box. |
|
{{Navigation|other=Other links and information}} If there are any other pages relating to the card, they can be listed using this parameter. |
Tracking categories
{{Navigation}} automatically detects several different possible errors and tracks them in Category:Navigation transclusions to be checked. In additions, uses of the other
parameter are tracked in Category:((Navigation)) transclusions with "other" parameter.