Difference between revisions of "Template:Card info links"
(→top: Restoring revision 5089398 by User:Dinoguy1000 on 2022-10-23 04:34:22. don't add entries to the pagelinks table for nonexistent name/lore pages) (Tag: New user edit) |
Dinoguy1000 (talk | contribs) (nothing uses the display overriding, and at this point I don't think anything should, so just axe it all) |
||
Line 28: | Line 28: | ||
}} | }} | ||
}}{{ #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 --> | ||
− | }}{{ #arraydefine: @cil- | + | }}{{ #arraydefine: @cil-names-lores <!-- only display Names and Lores if those pages exist --> |
− | | | + | | {{ #if: {{PROTECTIONEXPIRY:edit|{{ #var: $cil-ns-Names }}:{{ #var: $cil-link }}}}<!-- [[wikipedia:Template:Linkless exists]] --> || Names, |
− | + | }}{{ #if: {{PROTECTIONEXPIRY:edit|{{ #var: $cil-ns-Lores }}:{{ #var: $cil-link }}}}<!-- [[wikipedia:Template:Linkless exists]] --> || Lores | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
− | }}{{ #arraydiff: @cil-display | @cil-display | @cil- | + | }}{{ #arraydiff: @cil-display | @cil-display | @cil-names-lores <!-- diff --> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}}{{ #arrayunique: @cil-display <!-- rm dupes and empty elements --> | }}{{ #arrayunique: @cil-display <!-- rm dupes and empty elements --> | ||
}}{{ #arrayintersect: @cil-display | @cil-pages | @cil-display <!-- ensure that @cil-display keeps the canonical link order --> | }}{{ #arrayintersect: @cil-display | @cil-pages | @cil-display <!-- ensure that @cil-display keeps the canonical link order --> |