Template:Geo coord

From CruisersWiki

(Difference between revisions)
Jump to: navigation, search
m
 
(2 intermediate revisions not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
--><span class="plainlinks nourlexpansion noexternal" title="Chartlet"><!--
--><span class="plainlinks nourlexpansion noexternal" title="Chartlet"><!--
-
-->{{if
+
-->{{Geo link
-
   |test={{{lat}}}
+
   | lat= {{?|test={{{maplat|}}}|{{{maplat}}}|{{{lat}}}}}
-
  | then=[{{chartlet uri
+
  | lon= {{?|test={{{maplon|}}}|{{{maplon}}}|{{{lon}}}}}
-
    | lat= {{?|test={{{maplat|}}}|{{{maplat}}}|{{{lat}}}}}
+
  | zoom= {{{zoom|}}}
-
    | lon= {{?|test={{{maplon|}}}|{{{maplon}}}|{{{lon}}}}}
+
  | deg2dmh= y
-
    | zoom= {{{zoom|}}}
+
-
    }} <span class="cw-coordinates">{{#widget:Deg2Dmh|lat={{{lat}}}|lon={{{lon}}}}}</span>]
+
   }}<!--
   }}<!--
Line 14: Line 12:
   --><span class="p-geo h-geo" style="display:none"><!--
   --><span class="p-geo h-geo" style="display:none"><!--
     --><span class="p-name">{{{name|}}}</span><!--  
     --><span class="p-name">{{{name|}}}</span><!--  
-
     --><span class="p-latitude">{{?|test={{{lat|}}}|{{#widget:Dmh2Deg|c={{{lat}}}}}}}</span>;<!--
+
     --><span class="p-latitude">{{?|test={{{lat|}}}|{{Dmh2Deg|c={{{lat}}}}}}}</span>;<!--
-
     --><span class="p-longitude">{{?|test={{{lon|}}}|{{#widget:Dmh2Deg|c={{{lon}}}}}}}</span><!--
+
     --><span class="p-longitude">{{?|test={{{lon|}}}|{{Dmh2Deg|c={{{lon}}}}}}}</span><!--
     -->{{if
     -->{{if
         | test= {{{geometry|}}}
         | test= {{{geometry|}}}

Latest revision as of 15:30, 16 May 2017


An axillary template to produce coordinates and a chartlet link for Template:Poi, Template:Infobox and similar.


Personal tools
advertisement
Friends of Cruisers Wiki