Template:Entity: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
{{ #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: {{ #var: geoloc }}| | ||
{{ #if: {{ #var: geoloc }}| | |||
<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 }} }} | ||
}} | }} | ||
## {{ #var: geoloc }} ## | ## {{ #var: geoloc }} / {{ #var: loc }} ## | ||
[[Category:Has location]] | [[Category:Has location]] | ||
</includeonly> | </includeonly> |