Template:Entity: Difference between revisions

From Green Policy
Jump to navigation Jump to search
No edit summary
m (Protected "Template:Entity" (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite)))
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>


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


</noinclude>
</noinclude>
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}}|error}}|<!-- geoencoding failed -->|
{{ #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>
<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 }}%%
[[Category:Has location]]
[[Category:Has location]]
</includeonly>
</includeonly>

Latest revision as of 22:13, 18 July 2015


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