Template:Entity
From Green Policy
(Difference between revisions)
Siterunner (Talk | contribs) m (Protected "Template:Entity" ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
|||
(15 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
+ | <noinclude> | ||
+ | |||
+ | '''Avoid changing this template. It causes all geocoded addresses to reset.''' | ||
+ | |||
+ | </noinclude> | ||
<includeonly> | <includeonly> | ||
{{ #if: {{{Locale|}}}|[[Locale::{{{Locale}}}]], }} | {{ #if: {{{Locale|}}}|[[Locale::{{{Locale}}}]], }} | ||
{{ #if: {{{Region|}}}|[[Region::{{{Region}}}]], }} | {{ #if: {{{Region|}}}|[[Region::{{{Region}}}]], }} | ||
{{ #if: {{{Country|}}}|[[Country::{{{Country}}}]] }} | {{ #if: {{{Country|}}}|[[Country::{{{Country}}}]] }} | ||
− | {{ #vardefine: | + | {{ #vardefine: loc|{{{Locale|}}} {{{Region|}}} {{{Country|}}} }}{{ #vardefine: geoloc|{{ #geocode: {{ #var: loc }} }} }}{{ #if: {{#pos:{{ #var: geoloc}}|location}}|[[Category:Geoencoding failed]]|<div style="float:right; width: 50%">{{ #display_map: {{ #var: geoloc }} }}</div> |
− | {{ #if: {{ #var: geoloc }}| | + | |
− | <div style="float:right; width: 50%">{{ #display_map: {{ #var: geoloc }} }}</div> | + | |
{{ #set: geoloc={{ #var: geoloc }} }} | {{ #set: geoloc={{ #var: geoloc }} }} | ||
}} | }} | ||
− | |||
[[Category:Has location]] | [[Category:Has location]] | ||
</includeonly> | </includeonly> |
Latest revision as of 18:13, 18 July 2015
Avoid changing this template. It causes all geocoded addresses to reset.