Template:Wikidata location: Difference between revisions
Jump to navigation
Jump to search
>Mike Peel (Removing ifexist functionality that is causing dab problems) |
>Mike Peel (default to not showing refs) |
||
Line 1: | Line 1: | ||
{{#if:{{{location|}}}|{{{location|}}}|{{#if:{{#invoke:WikidataIB|checkBlacklist|name=location|suppressfields={{{suppressfields|}}} }}|{{comma separated values | {{#if:{{{location|}}}|{{{location|}}}|{{#if:{{#invoke:WikidataIB|checkBlacklist|name=location|suppressfields={{{suppressfields|}}} }}|{{comma separated values | ||
| 1 = {{#if:{{#Property:P706|from={{{qid|}}}}}|{{#ifexist:{{#invoke:Wikidata|getRawValue|P706|qid={{{qid|}}}|onlysourced=no|FETCH_WIKIDATA}}, {{#invoke:Wikidata|getRawValue|P131|qid={{{qid|}}}|onlysourced=no|FETCH_WIKIDATA}} | [[{{#invoke:Wikidata|getRawValue|P706|qid={{{qid|}}}|onlysourced=no|FETCH_WIKIDATA}}, {{#invoke:Wikidata|getRawValue|P131|qid={{{qid|}}}|onlysourced=no|FETCH_WIKIDATA}}]] | {{#invoke:WikidataIB|getValue|P706|qid={{{qid|}}}|name=location|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|noicon=yes|{{{terrainfeature|}}}}} }}{{#ifeq:{{{refs| | | 1 = {{#if:{{#Property:P706|from={{{qid|}}}}}|{{#ifexist:{{#invoke:Wikidata|getRawValue|P706|qid={{{qid|}}}|onlysourced=no|FETCH_WIKIDATA}}, {{#invoke:Wikidata|getRawValue|P131|qid={{{qid|}}}|onlysourced=no|FETCH_WIKIDATA}} | [[{{#invoke:Wikidata|getRawValue|P706|qid={{{qid|}}}|onlysourced=no|FETCH_WIKIDATA}}, {{#invoke:Wikidata|getRawValue|P131|qid={{{qid|}}}|onlysourced=no|FETCH_WIKIDATA}}]] | {{#invoke:WikidataIB|getValue|P706|qid={{{qid|}}}|name=location|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|noicon=yes|{{{terrainfeature|}}}}} }}{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P706}}}}}} | ||
| 2 = {{#invoke:WikidataIB|getValue|P276|qid={{{qid|}}}|name=location|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|noicon=yes|{{{location|}}}}}{{#ifeq:{{{refs| | | 2 = {{#invoke:WikidataIB|getValue|P276|qid={{{qid|}}}|name=location|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|noicon=yes|{{{location|}}}}}{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P276}}}} | ||
| 3 = {{#ifexist:{{#invoke:Wikidata|getRawValue|P706|qid={{{qid|}}}|onlysourced=no|FETCH_WIKIDATA}}, {{#invoke:Wikidata|getRawValue|P131|qid={{{qid|}}}|onlysourced=no|FETCH_WIKIDATA}}||{{#invoke:WikidataIB|getValue|P131|qid={{{qid|}}}|name=location|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|noicon=yes|{{{area|}}}}}{{#ifeq:{{{refs| | | 3 = {{#ifexist:{{#invoke:Wikidata|getRawValue|P706|qid={{{qid|}}}|onlysourced=no|FETCH_WIKIDATA}}, {{#invoke:Wikidata|getRawValue|P131|qid={{{qid|}}}|onlysourced=no|FETCH_WIKIDATA}}||{{#invoke:WikidataIB|getValue|P131|qid={{{qid|}}}|name=location|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|noicon=yes|{{{area|}}}}}{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P131}}}}}} | ||
| 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| | | 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|{{wikidata|references|normal+|{{{qid|}}}|P30}} }} {{EditAtWikidata|pid=P17|qid={{{qid|}}} }} }}|{{#if:{{#Property:P17|from={{{qid|}}}}}|{{#if:{{#invoke:WikidataIB|checkBlacklist|name=location|suppressfields={{{suppressfields|}}} }}|{{#Property:P17|from={{{qid|}}} }}{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P17}} }} {{EditAtWikidata|pid=P17|qid={{{qid|}}} }} }} }} }} }} | ||
}}}}|}}<noinclude> | }}}}|}}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |