Permanently protected template

Difference between revisions of "Template:Navigation"

From Yugipedia
Jump to: navigation, search
(wrap the card-article-exists check in {{IfSemantics}}, adjust sortkeys for maintenance cat)
(cleaner (in a sense) selective output of links)
Line 5: Line 5:
 
| style="font-size: 90%; text-align: center;" |
 
| style="font-size: 90%; text-align: center;" |
 
{{
 
{{
   #switch: {{ lc: {{{mode|}}} }}
+
   #ifeq: {{ lc: {{{mode}}} }} | spirit          <!-- spirits don't get galleries -->
   | token    = [[Card Gallery:{{#if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Gallery]] - [[Card Artworks:{{#if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Artworks]]
+
   | | [[Card Gallery:{{ #if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Gallery]] -  
   | nongame  = [[Card Gallery:{{#if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Gallery]] - [[Card Appearances:{{#if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Appearances]] - [[Card Trivia:{{#if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Trivia]]<br/>[[Card Lores:{{#if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Lores]] - [[Card Names:{{#if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Names]] - [[Card Artworks:{{#if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Artworks]]
+
}} {{
   | othergame = [[Card Gallery:{{#if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Gallery]] - [[Card Tips:{{#if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Tips]] - [[Card Appearances:{{#if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Appearances]] - [[Card Trivia:{{#if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Trivia]]<br/>[[Card Lores:{{#if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Lores]] - [[Card Names:{{#if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Names]] - [[Card Artworks:{{#if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Artworks]]
+
   #if: {{{mode|}}}                               <!-- only OCG/TCG cards get rulings or errata -->
   | spirit    = [[Card Appearances:{{#if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Appearances]] - [[Card Trivia:{{#if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Trivia]]
+
  | | [[Card Rulings:{{ #if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Rulings]] - [[Card Errata:{{ #if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Errata]] -
  | tip      = [[Card Gallery:{{#if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Gallery]] - [[Card Trivia:{{#if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Trivia]]
+
}} {{
   | #default = [[Card Gallery:{{#if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Gallery]] - [[Card Rulings:{{#if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Rulings]] - [[Card Errata:{{#if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Errata]] - [[Card Tips:{{#if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Tips]] - [[Card Appearances:{{#if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Appearances]] - [[Card Trivia:{{#if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Trivia]]<br/>[[Card Names:{{#if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Names]] - [[Card Lores:{{#if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Lores]] - [[Card Artworks:{{#if: {{{demo|}}} | {{{demo}}} | {{PAGENAME}} }}|Artworks]]
+
  #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|}}}
 
   #if: {{{Other2|}}}

Revision as of 22:24, 15 February 2011

Navigation

Gallery - Rulings - Errata - Tips - Appearances - Trivia
Names - Lores - Artworks


Template A-Z