Template:Commons category-inline: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Mike Peel
Changing tracking category logic so that we only use the P373 cases where we have actually fallen back to P373, rather than using the local text. No change to the display of the category links.
meta>Mike Peel
tweak tracking category logic
Line 42: Line 42:


     <!-- ... or we're using P373
     <!-- ... or we're using P373
     -->|{{#ifeq:{{#invoke:WikidataIB |getCommonsLink |qid={{{qid|}}}|onlycat=True|fallback=True}}|{{#invoke:WikidataIB |getCommonsLink |qid={{{qid|}}}|onlycat=True|fallback=False}}||[[Category:Commons category link is on Wikidata using P373]]<!--
     -->|{{#ifeq:{{#invoke:WikidataIB |getCommonsLink |qid={{{qid|}}}|onlycat=True|fallback=True}}|{{#invoke:WikidataIB |getCommonsLink |qid={{{qid|}}}|onlycat=True|fallback=False}}|[[Category:Commons category link is the pagename]]|[[Category:Commons category link is on Wikidata using P373]]}}
   
    ... or we've fallen back to the pagename
    -->|[[Category:Commons category link is the pagename]]}}
   }}
   }}
   }}
   }}

Revision as of 17:51, 15 April 2020

File:Commons-logo.svg Media related to [[commons:Template:If then show|Template:If then show]] at Wikimedia Commons