Permanently protected template

Difference between revisions of "Template:Navigation"

From Yugipedia
Jump to: navigation, search
(let's see if we can't stop card info pages from getting orphaned when card pages are moved from now on (or maybe we'll just break everything spectacularly =D ))
(let's make the code even MORE uglier by adding a workaround hack for Damage = Reptile! =D )
Line 15: Line 15:
 
| list1      = {{
 
| list1      = {{
 
     #ifeq: {{ lc: {{{mode}}} }} | spirit          <!-- spirits don't get galleries -->
 
     #ifeq: {{ lc: {{{mode}}} }} | spirit          <!-- spirits don't get galleries -->
     || [[{{ #if: {{{demo|}}} | Card Gallery:{{{demo}}} | {{ #if: {{IfSemantics|{{ #ask: [[Card Gallery page for::{{PAGENAME}}]] | link=none }}}} | {{ #ask: [[Card Gallery page for::{{PAGENAME}}]] | link=none }} | Card Gallery:{{PAGENAME}} }} }}|Gallery]] -  
+
     || [[{{ #if: {{{demo|}}} | Card Gallery:{{{demo}}} | {{ #if: {{ #if: {{ #pos: {{PAGENAME}} | = }} || {{IfSemantics|{{ #ask: [[Card Gallery page for::{{PAGENAME}}]] | link=none }}}} }} | {{ #ask: [[Card Gallery page for::{{PAGENAME}}]] | link=none }} | Card Gallery:{{PAGENAME}} }} }}|Gallery]] -  
 
   }} {{
 
   }} {{
 
     #if: {{{mode|}}}                              <!-- only OCG/TCG cards get rulings or errata -->
 
     #if: {{{mode|}}}                              <!-- only OCG/TCG cards get rulings or errata -->
     || [[{{ #if: {{{demo|}}} | Card Rulings:{{{demo}}} | {{ #if: {{IfSemantics|{{ #ask: [[Card Rulings page for::{{PAGENAME}}]] | link=none }}}} | {{ #ask: [[Card Rulings page for::{{PAGENAME}}]] | link=none }} | Card Rulings:{{PAGENAME}} }} }}|Rulings]] - [[{{ #if: {{{demo|}}} | Card Errata:{{{demo}}} | {{ #if: {{IfSemantics|{{ #ask: [[Card Errata page for::{{PAGENAME}}]] | link=none }}}} | {{ #ask: [[Card Errata page for::{{PAGENAME}}]] | link=none }} | Card Errata:{{PAGENAME}} }} }}|Errata]] -  
+
     || [[{{ #if: {{{demo|}}} | Card Rulings:{{{demo}}} | {{ #if: {{ #if: {{ #pos: {{PAGENAME}} | = }} || {{IfSemantics|{{ #ask: [[Card Rulings page for::{{PAGENAME}}]] | link=none }}}} }} | {{ #ask: [[Card Rulings page for::{{PAGENAME}}]] | link=none }} | Card Rulings:{{PAGENAME}} }} }}|Rulings]] - [[{{ #if: {{{demo|}}} | Card Errata:{{{demo}}} | {{ #if: {{ #if: {{ #pos: {{PAGENAME}} | = }} || {{IfSemantics|{{ #ask: [[Card Errata page for::{{PAGENAME}}]] | link=none }}}} }} | {{ #ask: [[Card Errata page for::{{PAGENAME}}]] | link=none }} | Card Errata:{{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                      = [[{{ #if: {{{demo|}}} | Card Tips:{{{demo}}} | {{ #if: {{IfSemantics|{{ #ask: [[Card Tips page for::{{PAGENAME}}]] | link=none }}}} | {{ #ask: [[Card Tips page for::{{PAGENAME}}]] | link=none }} | Card Tips:{{PAGENAME}} }} }}|Tips]] -  
+
     | #default                      = [[{{ #if: {{{demo|}}} | Card Tips:{{{demo}}} | {{ #if: {{ #if: {{ #pos: {{PAGENAME}} | = }} || {{IfSemantics|{{ #ask: [[Card Tips page for::{{PAGENAME}}]] | link=none }}}} }} | {{ #ask: [[Card Tips page for::{{PAGENAME}}]] | link=none }} | Card Tips:{{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    = [[{{ #if: {{{demo|}}} | Card Appearances:{{{demo}}} | {{ #if: {{IfSemantics|{{ #ask: [[Card Appearances page for::{{PAGENAME}}]] | link=none }}}} | {{ #ask: [[Card Appearances page for::{{PAGENAME}}]] | link=none }} | Card Appearances:{{PAGENAME}} }} }}|Appearances]] -  
+
     | #default    = [[{{ #if: {{{demo|}}} | Card Appearances:{{{demo}}} | {{ #if: {{ #if: {{ #pos: {{PAGENAME}} | = }} || {{IfSemantics|{{ #ask: [[Card Appearances page for::{{PAGENAME}}]] | link=none }}}} }} | {{ #ask: [[Card Appearances page for::{{PAGENAME}}]] | link=none }} | Card Appearances:{{PAGENAME}} }} }}|Appearances]] -  
 
   }} {{
 
   }} {{
 
     #ifeq: {{ lc: {{{mode}}} }} | token            <!-- tokens don't get trivia -->
 
     #ifeq: {{ lc: {{{mode}}} }} | token            <!-- tokens don't get trivia -->
     || [[{{ #if: {{{demo|}}} | Card Trivia:{{{demo}}} | {{ #if: {{IfSemantics|{{ #ask: [[Card Trivia page for::{{PAGENAME}}]] | link=none }}}} | {{ #ask: [[Card Trivia page for::{{PAGENAME}}]] | link=none }} | Card Trivia:{{PAGENAME}} }} }}|Trivia]]
+
     || [[{{ #if: {{{demo|}}} | Card Trivia:{{{demo}}} | {{ #if: {{ #if: {{ #pos: {{PAGENAME}} | = }} || {{IfSemantics|{{ #ask: [[Card Trivia page for::{{PAGENAME}}]] | link=none }}}} }} | {{ #ask: [[Card Trivia page for::{{PAGENAME}}]] | link=none }} | Card Trivia:{{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 -->
Line 38: Line 38:
 
     #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            = [[{{ #if: {{{demo|}}} | Card Names:{{{demo}}} | {{ #if: {{IfSemantics|{{ #ask: [[Card Names page for::{{PAGENAME}}]] | link=none }}}} | {{ #ask: [[Card Names page for::{{PAGENAME}}]] | link=none }} | Card Names:{{PAGENAME}} }} }}|Names]] - [[{{ #if: {{{demo|}}} | Card Lores:{{{demo}}} | {{ #if: {{IfSemantics|{{ #ask: [[Card Lores page for::{{PAGENAME}}]] | link=none }}}} | {{ #ask: [[Card Lores page for::{{PAGENAME}}]] | link=none }} | Card Lores:{{PAGENAME}} }} }}|Lores]] -  
+
     | #default            = [[{{ #if: {{{demo|}}} | Card Names:{{{demo}}} | {{ #if: {{ #if: {{ #pos: {{PAGENAME}} | = }} || {{IfSemantics|{{ #ask: [[Card Names page for::{{PAGENAME}}]] | link=none }}}} }} | {{ #ask: [[Card Names page for::{{PAGENAME}}]] | link=none }} | Card Names:{{PAGENAME}} }} }}|Names]] - [[{{ #if: {{{demo|}}} | Card Lores:{{{demo}}} | {{ #if: {{ #if: {{ #pos: {{PAGENAME}} | = }} || {{IfSemantics|{{ #ask: [[Card Lores page for::{{PAGENAME}}]] | link=none }}}} }} | {{ #ask: [[Card Lores page for::{{PAGENAME}}]] | link=none }} | Card Lores:{{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    = [[{{ #if: {{{demo|}}} | Card Artworks:{{{demo}}} | {{ #if: {{IfSemantics|{{ #ask: [[Card Artworks page for::{{PAGENAME}}]] | link=none }}}} | {{ #ask: [[Card Artworks page for::{{PAGENAME}}]] | link=none }} | Card Artworks:{{PAGENAME}} }} }}|Artworks]]
+
     | #default    = [[{{ #if: {{{demo|}}} | Card Artworks:{{{demo}}} | {{ #if: {{ #if: {{ #pos: {{PAGENAME}} | = }} || {{IfSemantics|{{ #ask: [[Card Artworks page for::{{PAGENAME}}]] | link=none }}}} }} | {{ #ask: [[Card Artworks page for::{{PAGENAME}}]] | link=none }} | Card Artworks:{{PAGENAME}} }} }}|Artworks]]
 
   }}{{
 
   }}{{
 
     #if: {{{Other2|}}}
 
     #if: {{{Other2|}}}

Revision as of 08:10, 19 November 2011