Template:Commons category: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>MSGJ
Undid revision 955589190 by Mike Peel (talk) - undo for now, concerns on talk
meta>Mike Peel
add back warning messages, but only in preview, per talk page
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]]<!--
   -->[[Category:Commons category link is defined as the pagename]]{{#invoke:Preview warning|main|Commons category does not match the Commons sitelink on Wikidata - [[Template:Commons_category#Resolving_discrepancies|please check]]}}<!--


   ... 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]]}} }}<!--
   -->|[[Category:Commons category link is locally defined]]{{#invoke:Preview warning|main|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 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]]|[[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]]{{#invoke:Preview warning|main|Commons category does not match the Commons sitelink on Wikidata - [[Template:Commons_category#Resolving_discrepancies|please check]]}}|[[Category:Commons category link is on Wikidata using P373]]{{#invoke:Preview warning|main|Commons category does not match the Commons sitelink on Wikidata - [[Template:Commons_category#Resolving_discrepancies|please check]]}}}}
   }}
   }}
   }}
   }}

Revision as of 11:57, 30 May 2020