Template:Geo coord

From CruisersWiki

(Difference between revisions)
Jump to: navigation, search
(Created page with "<includeonly>{{if | test={{{link|}}} | then={{web |{{{link}}}|Local chartlet}} | else={{if | test={{{lat|}}}{{{1|}}} | then=<span class="noexternal">[{{fullurl:User:Vadim/C...")
 
(40 intermediate revisions not shown)
Line 1: Line 1:
-
<includeonly>{{if
+
<includeonly><!--
-
| test={{{link|}}}
+
--><span class="plainlinks nourlexpansion noexternal" title="Chartlet"><!--
-
| then={{web |{{{link}}}|Local chartlet}}
+
-->{{Geo link
-
| else={{if
+
  | lat= {{?|test={{{maplat|}}}|{{{maplat}}}|{{{lat}}}}}
-
  | test={{{lat|}}}{{{1|}}}
+
  | lon= {{?|test={{{maplon|}}}|{{{maplon}}}|{{{lon}}}}}
-
  | then=<span class="noexternal">[{{fullurl:User:Vadim/Chartlet}}#lat={{urlencode:{{?|test={{{lat|}}}|{{{lat}}}|{{{1|}}}_{{{2|}}}_{{{3|}}}}}}}{{!}}lon={{urlencode:{{?|test={{{lon|}}}|{{{lon}}}|{{{4|}}}_{{{5|}}}_{{{6|}}}}}}}{{!}}zoom={{urlencode:{{{zoom|}}}}}{{!}}layer=T{{!}}page={{FULLPAGENAMEE}} Chartlet]</span>
+
  | zoom= {{{zoom|}}}
-
   | else={{magenta|?}}
+
   | deg2dmh= y
-
}}
+
  }}<!--
-
}}</includeonly><noinclude>
+
-
TEST
+
  microformat
-
<!--
+
 
-
Chartlet link for [[Template:Infobox coordblock]]
+
  --><span class="p-geo h-geo" style="display:none"><!--
 +
    --><span class="p-name">{{{name|}}}</span><!--
 +
    --><span class="p-latitude">{{?|test={{{lat|}}}|{{Dmh2Deg|c={{{lat}}}}}}}</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><!--
 +
--></includeonly><noinclude>
 +
 
 +
An axillary template to produce coordinates and a chartlet link for [[Template:Poi]], [[Template:Infobox]] and similar.
-
[[Category:Templates|Chartlet link]]
 
-
-->
 
</noinclude>
</noinclude>

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