Permanently protected template

Difference between revisions of "Template:Card info links"

From Yugipedia
Jump to: navigation, search
(rm array name I forgot to remove when I implemented the Names/Lores check in a different way from my original plan; allow namespace names to be easily changed in the future)
(since they're already so similar other than whether they link to names+lores or not, just have (almost) all the video games link the same pages and eliminate the vg-specific "medium" values)
Line 19: Line 19:
 
}}{{ #arraydefine: @cil-medium <!-- limit links to be displayed based on medium -->
 
}}{{ #arraydefine: @cil-medium <!-- limit links to be displayed based on medium -->
 
   | {{ #switch: {{ lc: {{{medium}}} }}
 
   | {{ #switch: {{ lc: {{{medium}}} }}
     | anime | manga | bandai | cm | toei                                               = Gallery, Artworks, Trivia, Appearances, Names, Lores
+
     | anime | manga | bandai | cm | toei       = Gallery, Artworks, Trivia, Appearances, Names, Lores
     | sealdass | anime ddm | manga ddm | vg ddm                                       = Gallery, Artworks, Trivia, Appearances, Names
+
     | sealdass | anime ddm | manga ddm | vg ddm = Gallery, Artworks, Trivia, Appearances, Names
     | ddm                                                                             = Gallery, Artworks, Tips, Trivia, Appearances, Names
+
     | ddm                                       = Gallery, Artworks, Tips, Trivia, Appearances, Names
     | early dm | cmc                                                                   = Gallery, Artworks, Trivia, Appearances
+
     | early dm | cmc                           = Gallery, Artworks, Trivia, Appearances
     | labyrinth | mcbb                                                                 = Gallery, Trivia, Appearances
+
     | labyrinth | mcbb                         = Gallery, Trivia, Appearances
     | mw                                                                               = <!-- nada -->
+
     | mw                                       = <!-- nada -->
    | ddm | dor | fmr                                                                  = Gallery, Artworks, Tips, Trivia, Appearances, Names, Lores
+
     | vg | video game | video games             = Gallery, Artworks, Tips, Trivia, Appearances, Names, Lores
     | vg | video game | video games | dbt | dm1 | dm2 | dm3 | dm4 | dm5 | duel transer = Gallery, Artworks, Tips, Trivia, Appearances
+
     | #default                                 = {{ #arrayprint: @cil-pages }}
     | #default                                                                         = {{ #arrayprint: @cil-pages }}
 
 
   }}
 
   }}
 
}}{{ #arrayintersect: @cil-display | @cil-pages | @cil-type | @cil-medium <!-- only links which are allowed by the specified type + medium get displayed -->
 
}}{{ #arrayintersect: @cil-display | @cil-pages | @cil-type | @cil-medium <!-- only links which are allowed by the specified type + medium get displayed -->

Revision as of 11:20, 28 December 2018