Difference between revisions of "Template:Navigation"
(Convert to {{Navbox}}) |
Dinoguy1000 (talk | contribs) (we don't need "name" if we're not using the navbar, some other tweaks) |
||
Line 1: | Line 1: | ||
{{Navbox | {{Navbox | ||
− | + | | title = '''[[{{ #if: {{{demo|}}} | {{{demo}}} | {{ #if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}{{ #if: {{{1|}}} | {{!}}{{{1}}} }} }}]]''' | |
− | |title = '''[[{{#if: {{{demo|}}} | {{{demo}}} | {{ #if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}{{ #if: {{{1|}}} | {{!}}{{{1}}} }} }}]]''' | ||
− | |navbar = plain | + | | navbar = plain |
− | |state = plain | + | | state = plain |
− | |bodystyle = width:auto; background:#F9F9F9; padding:5px 4px; font-size:90% | + | | bodystyle = width: auto; background: #F9F9F9; padding: 5px 4px; font-size: 90% |
− | |titlestyle = font-size:95%; | + | | titlestyle = font-size: 95%; |
− | |list1 = | + | | list1 = {{ |
− | {{ | + | #ifeq: {{ lc: {{{mode}}} }} | spirit <!-- spirits don't get galleries --> |
− | + | || [[Card Gallery:{{ #if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Gallery]] - | |
− | + | }} {{ | |
− | }} {{ | + | #if: {{{mode|}}} <!-- only OCG/TCG cards get rulings or errata --> |
− | + | || [[Card Rulings:{{ #if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Rulings]] - [[Card Errata:{{ #if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Errata]] - | |
− | + | }} {{ | |
− | }} {{ | + | #switch: {{ lc: {{{mode}}} }} <!-- only OCG/TCG/Bandai/DDM/VG cards get tips --> |
− | + | | token | nongame | spirit | tip = | |
− | + | | #default = [[Card Tips:{{ #if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Tips]] - | |
− | + | }} {{ | |
− | }} {{ | + | #switch: {{ lc: {{{mode}}} }} <!-- tokens and tip/strategy cards don't get appearances --> |
− | + | | token | tip = | |
− | + | | #default = [[Card Appearances:{{ #if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Appearances]] - | |
− | + | }} {{ | |
− | }} {{ | + | #ifeq: {{ lc: {{{mode}}} }} | token <!-- tokens don't get trivia --> |
− | + | || [[Card Trivia:{{ #if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Trivia]] | |
− | + | }} {{ | |
− | }} {{ | + | #switch: {{lc: {{{mode}}} }} <!-- tokens, spirits, and tip/strategy cards don't have a linebreak --> |
− | + | | token = - | |
− | + | | spirit | tip = | |
− | + | | #default = <br /> | |
− | + | }} {{ | |
− | }} {{ | + | #switch: {{ lc: {{{mode}}} }} <!-- tokens, spirits, and tip/strategy cards don't get names or lores --> |
− | + | | token | spirit | tip = | |
− | + | | #default = [[Card Names:{{ #if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Names]] - [[Card Lores:{{ #if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Lores]] - | |
− | + | }} {{ | |
− | }} {{ | + | #switch: {{ lc: {{{mode}}} }} <!-- spirits and tip/strategy cards don't get artworks --> |
− | + | | spirit | tip = | |
− | + | | #default = [[Card Artworks:{{ #if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Artworks]] | |
− | + | }}{{ | |
− | }}{{ | + | #if: {{{Other2|}}} |
− | + | | {{{Other2}}} | |
− | + | }}{{ | |
− | }}{{ | + | #if: {{{Other|}}} |
− | + | | <br/>{{{Other}}} | |
− | + | }} | |
− | }} | ||
---- | ---- | ||
'''{{ | '''{{ | ||
− | + | #switch: {{ #if: {{{demo_ns|}}} | {{{demo_ns}}} | {{NAMESPACE}} }} | |
− | + | | Card Gallery = Card Galleries | |
− | + | | Card Rulings = [[Ruling|Card Rulings]] | |
− | + | | Card Errata = [[Errata|Card Errata]] | |
− | + | | #default = {{ #if: {{{demo_ns|}}} | {{{demo_ns}}} | {{NAMESPACE}} }} | |
− | }} A-Z''' | + | }} A-Z''' |
− | <div style="font-size:95%;">{{Contents|Category:{{#if: {{{demo_ns|}}} | {{{demo_ns}}} | {{NAMESPACE}} }}}}</div> | + | <div style="font-size: 95%;">{{Contents|Category:{{ #if: {{{demo_ns|}}} | {{{demo_ns}}} | {{NAMESPACE}} }}}}</div> |
}}{{ | }}{{ | ||
#switch: {{NAMESPACE}} | #switch: {{NAMESPACE}} |
Revision as of 02:32, 17 November 2011
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.