Template:Commons category-inline: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Mike Peel
trim whitespace
meta>Mike Peel
tracking category fix for when _ is used rather than spaces
Line 21: Line 21:
--><includeonly>{{#switch:{{NAMESPACE}}||{{ns:14}}=<!--
--><includeonly>{{#switch:{{NAMESPACE}}||{{ns:14}}=<!--
  Only add tracking categories to articles and categories.
  Only add tracking categories to articles and categories.
  -->{{#if:{{{1|}}}|{{#ifeq:Category:{{{1|}}}|{{#invoke:WikidataIB |getCommonsLink|qid={{{qid|}}}|onlycat=True}}|<!--
  -->{{#if:{{{1|}}}|{{#ifeq:Category:{{replace|{{{1|}}}|_|&#32;}}|{{#invoke:WikidataIB |getCommonsLink|qid={{{qid|}}}|onlycat=True}}|<!--
   -->[[Category:Commons category link is on Wikidata]]<!--
   -->[[Category:Commons category link is on Wikidata]]<!--


   -->|{{#ifeq:{{{1|}}}|{{PAGENAME}}|<!--
   -->|{{#ifeq:{{replace|{{{1|}}}|_|&#32;}}|{{PAGENAME}}|<!--
   ... the local parameter is the same as the local pagename, but not the same as on Wikidata
   ... the local parameter is the same as the local pagename, but not the same as on Wikidata
   -->[[Category:Commons category link is defined as the pagename]]<!--
   -->[[Category:Commons category link is defined as the pagename]]<!--

Revision as of 17:40, 1 January 2019

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