Permanently protected template

Difference between revisions of "Template:Navigation"

From Yugipedia
Jump to: navigation, search
(Remove automatic ToC for the Card Gallery namespace.)
(only link to the names/lores page if it already exists)
Line 38: Line 38:
 
  -->{{ #switch: {{ #var: $mode }}                  <!-- tokens and tip/strategy cards don't get names or lores -->
 
  -->{{ #switch: {{ #var: $mode }}                  <!-- tokens and tip/strategy cards don't get names or lores -->
 
     | token | tip          =  
 
     | token | tip          =  
     | #default              =  
+
     | #default              = {{ #ifexist: Card Names:{{ #var: $pagename }} | <!-- names/lores pages only get linked to if the page already exists -->
* {{Related page link|Card Names|{{{demo|}}}|label=Names}}
+
* {{Related page link|Card Names|{{{demo|}}}|label=Names}} }}{{ #ifexist: Card Lores:{{ #var: $pagename }} |
* {{Related page link|Card Lores|{{{demo|}}}|label=Lores}} }}<!--
+
* {{Related page link|Card Lores|{{{demo|}}}|label=Lores}} }} }}<!--
 
  -->{{ #if: {{{Other2|}}}{{{other2|}}} | {{{Other2|}}}{{{other2|}}}
 
  -->{{ #if: {{{Other2|}}}{{{other2|}}} | {{{Other2|}}}{{{other2|}}}
 
   }}{{ #if: {{{Other|}}}{{{other|}}}  | <br/>{{{Other|}}}{{{other|}}}
 
   }}{{ #if: {{{Other|}}}{{{other|}}}  | <br/>{{{Other|}}}{{{other|}}}

Revision as of 19:18, 30 August 2018