Template:Wikidata location: Difference between revisions

From Random Island Wiki
Jump to navigation Jump to search
>Mike Peel
(No longer link country)
>Mike Peel
(also show edit tag)
Line 2: Line 2:
| 1 = {{#invoke:WikidataIB|getValue|P276|name=location|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{location|}}}}}{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P276}}}}{{#if:{{#Property:P276}}|[[Category:Articles using location from Wikidata]]}}
| 1 = {{#invoke:WikidataIB|getValue|P276|name=location|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{location|}}}}}{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P276}}}}{{#if:{{#Property:P276}}|[[Category:Articles using location from Wikidata]]}}
| 2 = {{#invoke:WikidataIB|getValue|P131|name=location|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{area|}}}}}{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P131}}}}
| 2 = {{#invoke:WikidataIB|getValue|P131|name=location|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{area|}}}}}{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P131}}}}
| 3 = {{#ifeq:{{#Property:P17}}|no value|{{#if:{{#Property:P30}}|{{#if:{{#invoke:WikidataIB|checkBlacklist|name=location|suppressfields={{{suppressfields|}}} }}|{{#Property:P30|from={{{qid|}}} }}{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P30}} }} }} }}|{{#if:{{#Property:P17}}|{{#if:{{#invoke:WikidataIB|checkBlacklist|name=location|suppressfields={{{suppressfields|}}} }}|{{#Property:P17|from={{{qid|}}} }}{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P17}} }} }} }} }}
| 3 = {{#ifeq:{{#Property:P17}}|no value|{{#if:{{#Property:P30}}|{{#if:{{#invoke:WikidataIB|checkBlacklist|name=location|suppressfields={{{suppressfields|}}} }}|{{#Property:P30|from={{{qid|}}} }}{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P30}} }} {{EditAtWikidata|pid=P17|qid={{{qid|}}} }} }} }}|{{#if:{{#Property:P17}}|{{#if:{{#invoke:WikidataIB|checkBlacklist|name=location|suppressfields={{{suppressfields|}}} }}|{{#Property:P17|from={{{qid|}}} }}{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P17}} }} {{EditAtWikidata|pid=P17|qid={{{qid|}}} }} }} }} }}
}}}}<noinclude>
}}}}<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 10:02, 8 July 2017