Difference between revisions of "Template:Card info links"
Dinoguy1000 (talk | contribs) (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) |
Dinoguy1000 (talk | contribs) (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 | + | | anime | manga | bandai | cm | toei = Gallery, Artworks, Trivia, Appearances, Names, Lores |
− | | sealdass | anime ddm | manga ddm | vg ddm | + | | sealdass | anime ddm | manga ddm | vg ddm = Gallery, Artworks, Trivia, Appearances, Names |
− | | ddm | + | | ddm = Gallery, Artworks, Tips, Trivia, Appearances, Names |
− | | early dm | cmc | + | | early dm | cmc = Gallery, Artworks, Trivia, Appearances |
− | | labyrinth | mcbb | + | | labyrinth | mcbb = Gallery, Trivia, Appearances |
− | | mw | + | | mw = <!-- nada --> |
− | + | | vg | video game | video games = Gallery, Artworks, Tips, Trivia, Appearances, Names, Lores | |
− | | vg | video game | video games | + | | #default = {{ #arrayprint: @cil-pages }} |
− | | #default | ||
}} | }} | ||
}}{{ #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 --> |