Difference between revisions of "Template:Navigation"
(Remove automatic ToC for the Card Gallery namespace.) |
Dinoguy1000 (talk | contribs) (only link to the names/lores page if it already exists) |
||
Line 38: | Line 38: | ||
-->{{ #switch: {{ #var: $mode }} <!-- tokens and tip/strategy cards don't get names or lores --> | -->{{ #switch: {{ #var: $mode }} <!-- tokens and tip/strategy cards don't get names or lores --> | ||
| token | tip = | | token | tip = | ||
− | | #default = | + | | #default = {{ #ifexist: Card Names:{{ #var: $pagename }} | <!-- names/lores pages only get linked to if the page already exists --> |
− | * {{Related page link|Card Names|{{{demo|}}}|label=Names}} | + | * {{Related page link|Card Names|{{{demo|}}}|label=Names}} }}{{ #ifexist: Card Lores:{{ #var: $pagename }} | |
− | * {{Related page link|Card Lores|{{{demo|}}}|label=Lores}} }}<!-- | + | * {{Related page link|Card Lores|{{{demo|}}}|label=Lores}} }} }}<!-- |
-->{{ #if: {{{Other2|}}}{{{other2|}}} | {{{Other2|}}}{{{other2|}}} | -->{{ #if: {{{Other2|}}}{{{other2|}}} | {{{Other2|}}}{{{other2|}}} | ||
}}{{ #if: {{{Other|}}}{{{other|}}} | <br/>{{{Other|}}}{{{other|}}} | }}{{ #if: {{{Other|}}}{{{other|}}} | <br/>{{{Other|}}}{{{other|}}} |
Revision as of 19:18, 30 August 2018
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|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.