Difference between revisions of "Template:Navigation"
Dinoguy1000 (talk | contribs) (cleanup code, add ns check for categorization (shouldn't break anything, but I won't guarantee it 100%)) |
|||
Line 1: | Line 1: | ||
− | {| class="toccolours" style="margin | + | {| class="toccolours" style="margin: 2em auto;" |
|- | |- | ||
− | | style="background | + | | style="background: #ccf; text-align: center;" | '''[[{{ #if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}{{ #if: {{{1|}}} | {{!}}{{{1}}} }}]]''' |
|- | |- | ||
− | | style="font-size: 90%; text-align: center" | | + | | style="font-size: 90%; text-align: center;" | |
− | {{ #switch: {{{mode|}}} | + | {{ |
− | |token=[[Card Gallery:{{PAGENAME}}|Gallery]] - [[Card Artworks:{{PAGENAME}}|Artworks]] | + | #switch: {{ lc: {{{mode|}}} }} |
− | | | + | | token = [[Card Gallery:{{PAGENAME}}|Gallery]] - [[Card Artworks:{{PAGENAME}}|Artworks]] |
− | | | + | | nongame = [[Card Gallery:{{PAGENAME}}|Gallery]] - [[Card Appearances:{{PAGENAME}}|Appearances]] - [[Card Trivia:{{PAGENAME}}|Trivia]]<br/>[[Card Lores:{{PAGENAME}}|Lores]] - [[Card Names:{{PAGENAME}}|Names]] - [[Card Artworks:{{PAGENAME}}|Artworks]] |
− | |spirit=[[Card Appearances:{{PAGENAME}}|Appearances]] - [[Card Trivia:{{PAGENAME}}|Trivia]] | + | | othergame = [[Card Gallery:{{PAGENAME}}|Gallery]] - [[Card Tips:{{PAGENAME}}|Tips]] - [[Card Appearances:{{PAGENAME}}|Appearances]] - [[Card Trivia:{{PAGENAME}}|Trivia]]<br/>[[Card Lores:{{PAGENAME}}|Lores]] - [[Card Names:{{PAGENAME}}|Names]] - [[Card Artworks:{{PAGENAME}}|Artworks]] |
− | | | + | | spirit = [[Card Appearances:{{PAGENAME}}|Appearances]] - [[Card Trivia:{{PAGENAME}}|Trivia]] |
− | |[[Card Gallery:{{PAGENAME}}|Gallery]] - [[Card Rulings:{{PAGENAME}}|Rulings]] - [[Card Errata:{{PAGENAME}}|Errata]] - [[Card Tips:{{PAGENAME}}|Tips]] - [[Card Appearances:{{PAGENAME}}|Appearances]] - [[Card Trivia:{{PAGENAME}}|Trivia]]<br/>[[Card Names:{{PAGENAME}}|Names]] - [[Card Lores:{{PAGENAME}}|Lores]] - [[Card Artworks:{{PAGENAME}}|Artworks]] }}{{ #if: {{{Other2|}}} |{{{Other2}}} }}{{ #if: {{{Other|}}} |<br/>{{{Other}}} }} | + | | tip = [[Card Gallery:{{PAGENAME}}|Gallery]] - [[Card Trivia:{{PAGENAME}}|Trivia]] |
− | + | | #default = [[Card Gallery:{{PAGENAME}}|Gallery]] - [[Card Rulings:{{PAGENAME}}|Rulings]] - [[Card Errata:{{PAGENAME}}|Errata]] - [[Card Tips:{{PAGENAME}}|Tips]] - [[Card Appearances:{{PAGENAME}}|Appearances]] - [[Card Trivia:{{PAGENAME}}|Trivia]]<br/>[[Card Names:{{PAGENAME}}|Names]] - [[Card Lores:{{PAGENAME}}|Lores]] - [[Card Artworks:{{PAGENAME}}|Artworks]] | |
− | + | }}{{ | |
+ | #if: {{{Other2|}}} | ||
+ | | {{{Other2}}} | ||
+ | }}{{ | ||
+ | #if: {{{Other|}}} | ||
+ | | <br/>{{{Other}}} | ||
+ | }} | ||
+ | ---- | ||
+ | '''{{ | ||
+ | #switch: {{NAMESPACE}} | ||
+ | | Card Gallery = Card Galleries | ||
+ | | Card Rulings = [[Ruling|Card Rulings]] | ||
+ | | Card Errata = [[Errata|Card Errata]] | ||
+ | | Card Appearances = Card Appearances | ||
+ | | #default = {{NAMESPACE}} | ||
+ | }} A-Z''' | ||
{{Contents | {{Contents | ||
|info=Category:{{NAMESPACE}} | |info=Category:{{NAMESPACE}} | ||
}} | }} | ||
− | |}<includeonly>[[Category:{{NAMESPACE}}|{{PAGENAME}}]]</includeonly><noinclude> | + | |}<includeonly>{{ |
− | + | #if: {{{nocat|}}} | |
+ | | <!-- nothing --> | {{ | ||
+ | #switch: {{NAMESPACE}} | ||
+ | | {{NS:100}}<!-- Card Gallery --> | ||
+ | | {{NS:102}}<!-- Card Rulings --> | ||
+ | | {{NS:104}}<!-- Card Errata --> | ||
+ | | {{NS:106}}<!-- Card Tips --> | ||
+ | | {{NS:108}}<!-- Card Trivia --> | ||
+ | | {{NS:112}}<!-- Card Appearances --> | ||
+ | | {{NS:116}}<!-- Card Lores --> | ||
+ | | {{NS:118}}<!-- Card Artworks --> | ||
+ | | {{NS:120}}<!-- Card Names --> = [[Category:{{NAMESPACE}}|{{PAGENAME}}]] | ||
+ | | #default<!-- everything else --> = [[Category:Navigation transclusions to be checked]] | ||
+ | }} | ||
+ | }}</includeonly><noinclude> | ||
− | {{documentation}}</noinclude> | + | {{documentation}} |
+ | </noinclude> |
Revision as of 03:30, 22 October 2009
Navigation | |
Gallery - Rulings - Errata - Tips - Appearances - Trivia Template A-Z |
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.