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...") |
(No difference)
|
Revision as of 10:05, 6 August 2023
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
- Category:Articles having same image on Wikidata and Wikipedia (0)
- Category:Articles having different image on Wikidata and Wikipedia (0)
- Category:No local image but image on Wikidata (3,345)
Infoboxes using this template
- {{Infobox aviator}}
- {{Infobox beauty pageant}}
- {{Infobox deity}}
- {{Infobox religious biography}}
- {{Infobox spy}}
See also
- {{Wikidata image}}