Template:Commons category: Difference between revisions

From Vigyanwiki
m (1 revision imported from alpha:Template:Commons_category)
No edit summary
Line 13: Line 13:
  Only add tracking categories to articles and categories.
  Only add tracking categories to articles and categories.
  -->{{#if:{{{1|}}}|{{#ifeq:Category:{{replace|{{{1|}}}|_|&#32;}}|{{#invoke:WikidataIB |getCommonsLink|qid={{{qid|}}}|onlycat=True|fallback=False}}|<!--
  -->{{#if:{{{1|}}}|{{#ifeq:Category:{{replace|{{{1|}}}|_|&#32;}}|{{#invoke:WikidataIB |getCommonsLink|qid={{{qid|}}}|onlycat=True|fallback=False}}|<!--
   --><!--
   -->[[Category:Commons category link is on Wikidata]]<!--


   -->|{{#ifeq:{{replace|{{{1|}}}|_|&#32;}}|{{PAGENAME}}|<!--
   -->|{{#ifeq:{{replace|{{{1|}}}|_|&#32;}}|{{PAGENAME}}|<!--
   ... the local parameter is the same as the local pagename
   ... the local parameter is the same as the local pagename
   -->{{preview warning|Commons category does not match the Commons sitelink on Wikidata – [[Template:Commons_category#Resolving_discrepancies|please check]]}}<!--
   -->[[Category:Commons category link is defined as the pagename]]{{preview warning|Commons category does not match the Commons sitelink on Wikidata – [[Template:Commons_category#Resolving_discrepancies|please check]]}}<!--


   ... the local parameter is not the pagename
   ... the local parameter is not the pagename
   -->|{{preview warning|Commons category does not match the Commons sitelink on Wikidata – [[Template:Commons_category#Resolving_discrepancies|please check]]}}}} }}<!--
   -->|[[Category:Commons category link is locally defined]]{{preview warning|Commons category does not match the Commons sitelink on Wikidata – [[Template:Commons_category#Resolving_discrepancies|please check]]}}}} }}<!--


   We don't have a locally-defined link  
   We don't have a locally-defined link  
Line 26: Line 26:


   ... so we're using Wikidata
   ... so we're using Wikidata
   --><!--
   -->[[Category:Commons category link from Wikidata]]<!--


     <!-- ... or we're using the pagename
     <!-- ... or we're using the pagename
     -->|{{preview warning|Commons category does not match the Commons sitelink on Wikidata – [[Template:Commons_category#Resolving_discrepancies|please check]]}}
     -->|[[Category:Commons category link is the pagename]]{{preview warning|Commons category does not match the Commons sitelink on Wikidata – [[Template:Commons_category#Resolving_discrepancies|please check]]}}
   }}
   }}
   }}
   }}
Line 36: Line 36:
{{Documentation}}
{{Documentation}}
<!-- Add categories to the /doc subpage, not here! -->
<!-- Add categories to the /doc subpage, not here! -->
</noinclude>
</noinclude>[[Category: Templates Vigyan Ready]]
 
[[Category:Exclude in print]]
[[Category:Interwiki category linking templates]]
[[Category:Interwiki link templates]]
[[Category:Pages with script errors]]
[[Category:Templates that add a tracking category]]
[[Category:Templates using TemplateData]]
[[Category:Wikimedia Commons templates]]

Revision as of 12:13, 17 January 2023

Lua error in Module:TNT at line 182: Missing Commons dataset I18n/Module:TNT.tab.