Template:Commons category: Difference between revisions

From BitProjects
Jump to navigation Jump to search
Sources>Mike Peel
Add warning message per discussion on talk page
Sources>MSGJ
Undid revision 955589190 by Mike Peel (talk) - undo for now, concerns on talk
Line 18: Line 18:
   -->|{{#ifeq:{{replace|{{{1|}}}|_|&#32;}}|{{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]] <span class="user-show" style="color:red;">(Does not match Wikidata - [[Template:Commons_category#Resolving_discrepancies|please check]])</span><!--
   -->[[Category:Commons category link is defined as the pagename]]<!--


   ... the local parameter does not match either of these
   ... the local parameter does not match either of these
   -->|[[Category:Commons category link is locally defined]] <span class="user-show" style="color:red;">(Does not match Wikidata - [[Template:Commons_category#Resolving_discrepancies|please check]])</span>}} }}<!--
   -->|[[Category:Commons category link is locally defined]]}} }}<!--


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


     <!-- ... 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 the pagename]] <span class="user-show" style="color:red;">(Does not match Wikidata - [[Template:Commons_category#Resolving_discrepancies|please check]])</span>|[[Category:Commons category link is on Wikidata using P373]] <span class="user-show" style="color:red;">(Does not match Wikidata sitelink - [[Template:Commons_category#Resolving_discrepancies|please check]])</span>}}
     -->|{{#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]]}}
   }}
   }}
   }}
   }}

Revision as of 12:17, 11 May 2020

<templatestyles src="Module:Side box/styles.css"></templatestyles><templatestyles src="Sister project/styles.css"></templatestyles>

Template:Documentation