Permanently protected template

Difference between revisions of "Template:Navigation"

From Yugipedia
Jump to: navigation, search
(Convert to {{Navbox}})
(we don't need "name" if we're not using the navbar, some other tweaks)
Line 1: Line 1:
 
{{Navbox
 
{{Navbox
|name      = Navigation
+
| 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 -->
  #ifeq: {{ lc: {{{mode}}} }} | spirit          <!-- spirits don't get galleries -->
+
    || [[Card Gallery:{{ #if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Gallery]] -  
  | | [[Card Gallery:{{ #if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Gallery]] -  
+
  }} {{
}} {{
+
    #if: {{{mode|}}}                              <!-- only OCG/TCG cards get rulings or errata -->
  #if: {{{mode|}}}                              <!-- only OCG/TCG cards get rulings or errata -->
+
    || [[Card Rulings:{{ #if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Rulings]] - [[Card Errata:{{ #if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|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 -->
  #switch: {{ lc: {{{mode}}} }}                  <!-- only OCG/TCG/Bandai/DDM/VG cards get tips -->
+
    | token | nongame | spirit | tip =  
  | token | nongame | spirit | tip =  
+
    | #default                      = [[Card Tips:{{ #if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Tips]] -  
  | #default                      = [[Card Tips:{{ #if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Tips]] -  
+
  }} {{
}} {{
+
    #switch: {{ lc: {{{mode}}} }}                  <!-- tokens and tip/strategy cards don't get appearances -->
  #switch: {{ lc: {{{mode}}} }}                  <!-- tokens and tip/strategy cards don't get appearances -->
+
    | token | tip =  
  | token | tip =  
+
    | #default    = [[Card Appearances:{{ #if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Appearances]] -  
  | #default    = [[Card Appearances:{{ #if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Appearances]] -  
+
  }} {{
}} {{
+
    #ifeq: {{ lc: {{{mode}}} }} | token            <!-- tokens don't get trivia -->
  #ifeq: {{ lc: {{{mode}}} }} | token            <!-- tokens don't get trivia -->
+
    || [[Card Trivia:{{ #if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Trivia]]
  | | [[Card Trivia:{{ #if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Trivia]]
+
  }} {{
}} {{
+
    #switch: {{lc: {{{mode}}} }}                  <!-- tokens, spirits, and tip/strategy cards don't have a linebreak -->
  #switch: {{lc: {{{mode}}} }}                  <!-- tokens, spirits, and tip/strategy cards don't have a linebreak -->
+
    | token        = -  
  | token        = -  
+
    | spirit | tip =  
  | spirit | tip =  
+
    | #default    = <br />
  | #default    = <br />
+
  }} {{
}} {{
+
    #switch: {{ lc: {{{mode}}} }}                  <!-- tokens, spirits, and tip/strategy cards don't get names or lores -->
  #switch: {{ lc: {{{mode}}} }}                  <!-- tokens, spirits, and tip/strategy cards don't get names or lores -->
+
    | token | spirit | tip =  
  | token | spirit | tip =  
+
    | #default            = [[Card Names:{{ #if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Names]] - [[Card Lores:{{ #if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Lores]] -  
  | #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 -->
  #switch: {{ lc: {{{mode}}} }}                  <!-- spirits and tip/strategy cards don't get artworks -->
+
    | spirit | tip =  
  | spirit | tip =  
+
    | #default    = [[Card Artworks:{{ #if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Artworks]]
  | #default    = [[Card Artworks:{{ #if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Artworks]]
+
  }}{{
}}{{
+
    #if: {{{Other2|}}}
  #if: {{{Other2|}}}
+
    | {{{Other2}}}
  | {{{Other2}}}
+
  }}{{
}}{{
+
    #if: {{{Other|}}}
  #if: {{{Other|}}}
+
    | <br/>{{{Other}}}
  | <br/>{{{Other}}}
+
  }}
}}
 
 
----
 
----
 
'''{{
 
'''{{
  #switch: {{ #if: {{{demo_ns|}}} | {{{demo_ns}}} | {{NAMESPACE}} }}
+
    #switch: {{ #if: {{{demo_ns|}}} | {{{demo_ns}}} | {{NAMESPACE}} }}
  | Card Gallery    = Card Galleries
+
    | Card Gallery    = Card Galleries
  | Card Rulings    = [[Ruling|Card Rulings]]
+
    | Card Rulings    = [[Ruling|Card Rulings]]
  | Card Errata      = [[Errata|Card Errata]]
+
    | Card Errata      = [[Errata|Card Errata]]
  | #default        = {{ #if: {{{demo_ns|}}} | {{{demo_ns}}} | {{NAMESPACE}} }}
+
    | #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