Template:Wikidata location: Difference between revisions

From Random Island Wiki
Jump to navigation Jump to search
>Mike Peel
(Add temporary tracking category)
m (1 revision imported)
 
(20 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{comma separated values
{{#if:{{{location|}}}|{{{location|}}}|{{#if:{{#invoke:WikidataIB|checkBlacklist|name=location|spf={{{suppressfields|}}} }}|{{comma separated values
| 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 = {{#if:{{#Property:P706|from={{{qid|}}}}}|{{#ifexist:{{#invoke:wd|property|{{{qid|}}}|P706}}, {{#invoke:wd|property|{{{qid|}}}|P131}} | [[{{#invoke:wd|property|{{{qid|}}}|P706}}, {{#invoke:wd|property|{{{qid|}}}|P131}}]] | {{#invoke:WikidataIB|getValue|P706|qid={{{qid|}}}|name=location|spf={{{suppressfields|}}}|fwd={{{fetchwikidata|ALL}}}|osd={{{onlysourced|no}}}|noicon=yes|{{{terrainfeature|}}}}} }}{{#ifeq:{{{refs|no}}}|yes|{{#invoke:wd|references|normal+|{{{qid|}}}|P706}}}}}}
| 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|P276|qid={{{qid|}}}|name=location|spf={{{suppressfields|}}}|fwd={{{fetchwikidata|ALL}}}|osd={{{onlysourced|no}}}|noicon=yes|{{{location|}}}}}{{#ifeq:{{{refs|no}}}|yes|{{#invoke:wd|references|normal+|{{{qid|}}}|P276}}}}
| 3 = {{#ifeq:{{#Property:P17}}|no value|{{#if:{{#Property:P30}}|, {{#invoke:WikidataIB|getValue|P30|name=location|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}}} }}{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P30}} }}|{{#invoke:WikidataIB|getValue|P17|name=location|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}}} }}{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P17}}}}
| 3 = {{#ifexist:{{#invoke:wd|property|{{{qid|}}}|P706}}, {{#invoke:wd|property|{{{qid|}}}|P131}}||{{#invoke:WikidataIB|getValue|P131|qid={{{qid|}}}|name=location|spf={{{suppressfields|}}}|fwd={{{fetchwikidata|ALL}}}|osd={{{onlysourced|no}}}|noicon=yes|{{{area|}}}}}{{#ifeq:{{{refs|no}}}|yes|{{#invoke:wd|references|normal+|{{{qid|}}}|P131}}}}}}
}}<noinclude>
| 4 = {{#ifeq:{{#Property:P17|from={{{qid|}}}}}|United States of America|{{#if:{{#Property:P706|from={{{qid|}}}}}{{#Property:P276|from={{{qid|}}}}}{{#Property:P131|from={{{qid|}}}}}|US|United States}}|{{#ifeq:{{#Property:P17|from={{{qid|}}}}}|no value|{{#if:{{#Property:P30|from={{{qid|}}}}}|{{#Property:P30|from={{{qid|}}}}}{{#ifeq:{{{refs|no}}}|yes|{{#invoke:wd|references|normal+|{{{qid|}}}|P30}} }} {{EditAtWikidata|pid=P17|qid={{{qid|}}} }} }}|{{#if:{{#Property:P17|from={{{qid|}}}}}|{{#if:{{#invoke:WikidataIB|checkBlacklist|name=location|spf={{{suppressfields|}}} }}|{{#Property:P17|from={{{qid|}}} }}{{#ifeq:{{{refs|no}}}|yes|{{#invoke:wd|references|normal+|{{{qid|}}}|P17}} }} {{EditAtWikidata|pid=P17|qid={{{qid|}}} }} }} }} }} }}
}}}}|}}<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 10:57, 6 September 2021