Template:Geo coord
From CruisersWiki
(Difference between revisions)
Line 1: | Line 1: | ||
- | <includeonly> | + | <includeonly><!-- |
- | --><span class="plainlinks nourlexpansion noexternal"> | + | --><span class="plainlinks nourlexpansion noexternal">[{{Coord URL}}{{if |test={{{lat|}}} |
- | + | | then={{{lat}}};{{{lon}}} | |
+ | | else={{{1}}}_{{{2}}}_{{{3}}}_{{{4}}}_{{{5}}}_{{{6}}} | ||
+ | }} <span style="white-space:nowrap">{{?|test={{{noicon|}}}||{{Poi icon|type={{{type|}}}|inline={{{inline|}}}}}}}<!-- | ||
+ | -->{{if|test={{{nocoord|}}} | ||
+ | | else={{?|test={{{noicon|}}}|| }}{{if |test={{{lat|}}} | ||
| then={{#widget:Deg2Dmh|lat={{{lat}}}|lon={{{lon}}}}} | | then={{#widget:Deg2Dmh|lat={{{lat}}}|lon={{{lon}}}}} | ||
- | | else={{{1}}}°{{{2}}}′{{{3}}}, {{{4}}}°{{{5}}}′{{{6}}} | + | | else={{if|test={{{1|}}}|then={{{1}}}°{{{2}}}′{{{3}}}, {{{4}}}°{{{5}}}′{{{6}}}|else={{magenta|?}}}}}} |
}}<!-- | }}<!-- | ||
- | + | --></span>]<!-- | |
microformat | microformat | ||
Line 15: | Line 19: | ||
--><span class="p-longitude">{{?|test={{{lon|}}}|{{{lon}}}|{{#widget:Dmh2Deg|d={{{4}}}|m={{{5}}}|h={{{6}}}}}}}</span><!-- | --><span class="p-longitude">{{?|test={{{lon|}}}|{{{lon}}}|{{#widget:Dmh2Deg|d={{{4}}}|m={{{5}}}|h={{{6}}}}}}}</span><!-- | ||
--></span><!-- h-geo | --></span><!-- h-geo | ||
- | --></span><!-- | + | --></span><!-- |
--></includeonly><noinclude> | --></includeonly><noinclude> | ||
TEST | TEST | ||
<!-- | <!-- | ||
- | |||
This template produces a link to a list of map sources, based on the geographical coordinates and other parameters, and provides a standardized notation for the coordinates. | This template produces a link to a list of map sources, based on the geographical coordinates and other parameters, and provides a standardized notation for the coordinates. | ||
Revision as of 10:58, 27 January 2016
TEST