Permanently protected template

Difference between revisions of "Template:Navigation"

From Yugipedia
Jump to: navigation, search
(it needs to be the other way around)
(update to use the new Template:Related page link; rearrange links to reflect their order in Template:CardTable2)
Line 7: Line 7:
 
| titlestyle = font-size: 95%;
 
| titlestyle = font-size: 95%;
  
<!--
 
 
The code used to create the links is ripe for being templated, but I've had my fill for now. =)
 
If someone decides to do so before I get around to it, be sure to also update {{CardTable2}} to use the template.
 
 
-->
 
 
| 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: {{ #if: {{ #pos: {{PAGENAME}} | = }} || {{IfSemantics|{{ #ask: [[Card Gallery page for::{{PAGENAME}}]] | link=none }}}} }} | {{ #ask: [[Card Gallery page for::{{PAGENAME}}]] | link=none }} | Card Gallery:{{PAGENAME}} }} }}|Gallery]] -  
+
     || {{Related page link|Card Gallery|{{{demo|}}}|label=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: {{ #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]] -  
+
     || {{Related page link|Card Rulings|{{{demo|}}}|label=Rulings}} - {{Related page link|Card Errata|{{{demo|}}}|label=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: {{ #if: {{ #pos: {{PAGENAME}} | = }} || {{IfSemantics|{{ #ask: [[Card Tips page for::{{PAGENAME}}]] | link=none }}}} }} | {{ #ask: [[Card Tips page for::{{PAGENAME}}]] | link=none }} | Card Tips:{{PAGENAME}} }} }}|Tips]] -  
+
     | #default                      = {{Related page link|Card Tips|{{{demo|}}}|label=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: {{ #if: {{ #pos: {{PAGENAME}} | = }} || {{IfSemantics|{{ #ask: [[Card Appearances page for::{{PAGENAME}}]] | link=none }}}} }} | {{ #ask: [[Card Appearances page for::{{PAGENAME}}]] | link=none }} | Card Appearances:{{PAGENAME}} }} }}|Appearances]] -  
+
     | #default    = {{Related page link|Card Appearances|{{{demo|}}}|label=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: {{ #if: {{ #pos: {{PAGENAME}} | = }} || {{IfSemantics|{{ #ask: [[Card Trivia page for::{{PAGENAME}}]] | link=none }}}} }} | {{ #ask: [[Card Trivia page for::{{PAGENAME}}]] | link=none }} | Card Trivia:{{PAGENAME}} }} }}|Trivia]]
+
     || {{Related page link|Card Trivia|{{{demo|}}}|label=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 36: Line 30:
 
     | #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 lores -->
 
     | token | spirit | tip =  
 
     | token | spirit | tip =  
     | #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]] -  
+
     | #default            = {{Related page link|Card Lores|{{{demo|}}}|label=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: {{ #if: {{ #pos: {{PAGENAME}} | = }} || {{IfSemantics|{{ #ask: [[Card Artworks page for::{{PAGENAME}}]] | link=none }}}} }} | {{ #ask: [[Card Artworks page for::{{PAGENAME}}]] | link=none }} | Card Artworks:{{PAGENAME}} }} }}|Artworks]]
+
     | #default    = {{Related page link|Card Artworks|{{{demo|}}}|label=Artworks}} -
 +
  }} {{
 +
    #switch: {{ lc: {{{mode}}} }}                 <!-- tokens, spirits, and tip/strategy cards don't get names -->
 +
    | token | spirit | tip =
 +
    | #default            = {{Related page link|Card Names|{{{demo|}}}|label=Names}}
 
   }}{{
 
   }}{{
 
     #if: {{{Other2|}}}
 
     #if: {{{Other2|}}}

Revision as of 05:33, 2 April 2012