Template:Geo coord

From CruisersWiki

(Difference between revisions)
Jump to: navigation, search
 
(8 intermediate revisions not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
--><span class="plainlinks nourlexpansion noexternal" title="Chartlet"><!--
--><span class="plainlinks nourlexpansion noexternal" title="Chartlet"><!--
-
-->[{{chartlet uri|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|
+
-->{{Geo link
   | lat= {{?|test={{{maplat|}}}|{{{maplat}}}|{{{lat}}}}}
   | lat= {{?|test={{{maplat|}}}|{{{maplat}}}|{{{lat}}}}}
   | lon= {{?|test={{{maplon|}}}|{{{maplon}}}|{{{lon}}}}}
   | lon= {{?|test={{{maplon|}}}|{{{maplon}}}|{{{lon}}}}}
   | zoom= {{{zoom|}}}
   | zoom= {{{zoom|}}}
-
   }} <span class="cw-coordinates">{{if |test={{{lat|}}}
+
   | deg2dmh= y
-
    | then={{#widget:Deg2Dmh|lat={{{lat}}}|lon={{{lon}}}}}
+
   }}<!--
-
    | else={{padleft:{{{1}}}|2}}°{{{2}}}′{{{3}}},&nbsp;{{padleft:{{{4}}}|3}}°{{{5}}}′{{{6}}}
+
-
   }}</span>]<!--
+
   microformat
   microformat
   --><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|}}}|{{{lat}}}|{{#widget:Dmh2Deg|d={{{1}}}|m={{{2}}}|h={{{3}}}}}}}</span>;<!--
+
     --><span class="p-latitude">{{?|test={{{lat|}}}|{{Dmh2Deg|c={{{lat}}}}}}}</span>;<!--
-
     --><span class="p-longitude">{{?|test={{{lon|}}}|{{{lon}}}|{{#widget:Dmh2Deg|d={{{4}}}|m={{{5}}}|h={{{6}}}}}}}</span><!--
+
    --><span class="p-longitude">{{?|test={{{lon|}}}|{{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><!--

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