Template:Geo coord
From CruisersWiki
(Difference between revisions)
(microformat p-name) |
(geometry support) |
||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
--><span class="plainlinks nourlexpansion noexternal" title="Chartlet"><!-- | --><span class="plainlinks nourlexpansion noexternal" title="Chartlet"><!-- | ||
- | -->[{{chartlet uri | + | -->{{if |
- | + | |test={{{lat}}} | |
- | + | | then=[{{chartlet uri | |
- | + | | lat= {{?|test={{{maplat|}}}|{{{maplat}}}|{{{lat}}}}} | |
- | + | | lon= {{?|test={{{maplon|}}}|{{{maplon}}}|{{{lon}}}}} | |
+ | | zoom= {{{zoom|}}} | ||
+ | }} <span class="cw-coordinates">{{#widget:Deg2Dmh|lat={{{lat}}}|lon={{{lon}}}}}</span>] | ||
+ | }}<!-- | ||
microformat | microformat | ||
Line 13: | Line 16: | ||
--><span class="p-latitude">{{?|test={{{lat|}}}|{{#widget:Dmh2Deg|c={{{lat}}}}}}}</span>;<!-- | --><span class="p-latitude">{{?|test={{{lat|}}}|{{#widget:Dmh2Deg|c={{{lat}}}}}}}</span>;<!-- | ||
--><span class="p-longitude">{{?|test={{{lon|}}}|{{#widget:Dmh2Deg|c={{{lon}}}}}}}</span><!-- | --><span class="p-longitude">{{?|test={{{lon|}}}|{{#widget:Dmh2Deg|c={{{lon}}}}}}}</span><!-- | ||
+ | -->{{if | ||
+ | | test= {{{geometry|}}} | ||
+ | | then= {{|}}<span class="p-geometry">{{urlencode:{{if | ||
+ | | test= {{eq|y|{{{geometry}}}}} | ||
+ | | then= {{ {{FULLPAGENAME}}/geometry | name= {{{name|}}} }} | ||
+ | | else= {{{geometry}}}}} | ||
+ | }}</span> | ||
+ | }}<!-- | ||
--></span><!-- h-geo | --></span><!-- h-geo | ||
--></span><!-- | --></span><!-- |
Revision as of 11:38, 17 January 2017
An axillary template to produce coordinates and a chartlet link for Template:Poi, Template:Infobox and similar.