Template:Compare image with Wikidata: Difference between revisions

Created page with "{{#if:{{#property:P18}} |{{#if:{{{local|}}} | {{#ifeq: {{filepath: {{Replace |{{Replace|{{{local|}}}|File:|}} |Image:|}} }} | {{filepath:{{#invoke:WikidataIB |getPreferredValue |P18 |name=image |fetchwikidata=ALL |onlysourced=no |noicon=yes | maxvals=1 }}}} |Category:Articles having same image on Wikidata and Wikipedia |Category:Articles having different image on Wikidata and Wikipedia }} |Category:No local image but image on Wikidata }} }}<noinclude>{{Do..."
 
CleanupBot (talk | contribs)
m top: clean up
 
Line 6: Line 6:
|Image:|}}
|Image:|}}
}}
}}
     | {{filepath:{{#invoke:WikidataIB |getPreferredValue |P18 |name=image |fetchwikidata=ALL |onlysourced=no |noicon=yes | maxvals=1 }}}}
     | {{filepath:{{#invoke:BharatdataIB |getPreferredValue |P18 |name=image |fetchwikidata=ALL |onlysourced=no |noicon=yes | maxvals=1 }}}}
|[[Category:Articles having same image on Wikidata and Wikipedia]]
|[[Category:Articles having same image on Bharatdata and Bharatpedia]]
|[[Category:Articles having different image on Wikidata and Wikipedia]]
|[[Category:Articles having different image on Bharatdata and Bharatpedia]]
}}
}}
|[[Category:No local image but image on Wikidata]]
|[[Category:No local image but image on Bharatdata]]
}}
}}
}}<noinclude>{{Documentation}}</noinclude>
}}<noinclude>{{Documentation}}</noinclude>

Latest revision as of 10:19, 5 December 2023

Template documentation[view] [edit] [history] [purge]

Template:Tracks Wikidata

Template:Compare image with Wikidata may be added to an infobox template which displays an image. In any article using the infobox with an image, it adds either Category:Articles having same image on Wikidata and Wikipedia or Category:Articles having different image on Wikidata and Wikipedia. In any article using the infobox without an image, it adds Category:No local image but image on Wikidata (also used by Template:Wikidata image).

Usage

Add the following to a template (if necessary, change "image" to whatever parameter name that template uses to display an image):

{{compare|local={{{image|}}}}}

Tracking categories

Infoboxes using this template

See also