Template:Compare: Difference between revisions

From Bharatpedia, an open encyclopedia
(Created page with "{{#if:{{#property:P18}} |{{#if:{{{local|}}} | {{#ifeq: {{filepath: {{Replace |{{Replace|{{{local|}}}|File:|}} |Image:|}} }} | {{filepath:{{#invoke:WikidataIB |getPreferred...")
 
m (Changed protection settings for "Template:Compare": Highly visible template: 8,000+ transclusions ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
 
Line 1: Line 1:
{{#if:{{#property:P18}}
#REDIRECT [[Template:Compare image with Wikidata]]
|{{#if:{{{local|}}}
 
| {{#ifeq: {{filepath:
{{Redirect category shell|
{{Replace
{{R from move}}
|{{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>{{Documentation}}</noinclude>

Latest revision as of 05:32, 17 August 2021