Template:Entity: Difference between revisions

From Green Policy
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:
{{ #if: {{{Region|}}}|[[Region::{{{Region}}}]], }}
{{ #if: {{{Region|}}}|[[Region::{{{Region}}}]], }}
{{ #if: {{{Country|}}}|[[Country::{{{Country}}}]] }}
{{ #if: {{{Country|}}}|[[Country::{{{Country}}}]] }}
{{ #vardefine: loc|{{{Locale|}}} {{{Region|}}} {{{Country|}}} }}{{ #vardefine: geoloc|{{ #geocode: {{ #var: loc }} }} }}{{ #if: {{#pos:{{ #var: g}}|location}}|<!-- geoencoding failed -->|
{{ #vardefine: loc|{{{Locale|}}} {{{Region|}}} {{{Country|}}} }}{{ #vardefine: geoloc|{{ #geocode: {{ #var: loc }} }} }}{{ #if: {{#pos:{{ #var: geoloc}}|location}}|<!-- geoencoding failed -->|
<div style="float:right; width: 50%">{{ #display_map: {{ #var: geoloc }} }}</div>
<div style="float:right; width: 50%">{{ #display_map: {{ #var: geoloc }} }}</div>
{{ #set: geoloc={{ #var: geoloc }} }}
{{ #set: geoloc={{ #var: geoloc }} }}
}}
}}
!!{{#pos:{{ #var: g}}|error}}!!{{ #var: geoloc }}%%
!!{{#pos:{{ #var: geoloc}}|error}}!!{{ #var: geoloc }}%%
[[Category:Has location]]
[[Category:Has location]]
</includeonly>
</includeonly>

Revision as of 17:36, 1 January 2015


Avoid changing this template. It causes all geocoded addresses to reset.