Template:Infobox coordblock

From CruisersWiki

(Difference between revisions)
Jump to: navigation, search
(chartlet width height)
(redundant eol)
 
(5 intermediate revisions not shown)
Line 1: Line 1:
-
<includeonly>{{? | test={{{name|}}}|{{!}}-
+
<includeonly>{{? | test={{{name|}}}
 +
  |{{!}}-
{{!}} colspan{{=}}"2" style{{=}}"text-align:center; font-size: normal;" {{!}}<div>'''{{{name}}}'''</div>}}<!--
{{!}} colspan{{=}}"2" style{{=}}"text-align:center; font-size: normal;" {{!}}<div>'''{{{name}}}'''</div>}}<!--
--><div>{{geo coord
--><div>{{geo coord
Line 5: Line 6:
   | name={{{name|}}}
   | name={{{name|}}}
   | maplat={{{maplat|}}}| maplon={{{maplon|}}}
   | maplat={{{maplat|}}}| maplon={{{maplon|}}}
 +
  | geometry={{{geometry|}}}
   | zoom={{{zoom|}}}
   | zoom={{{zoom|}}}
-
}} <span title="Other maps">[{{Coord URL}}{{if |test={{{lat|}}}
+
}} <span title="Other maps">[{{Coord URL}}{{if |test={{eq|{{{lat|}}}|{{anchorencode:{{{lat|}}}}}}}
   | then={{{lat}}};{{{lon}}}
   | then={{{lat}}};{{{lon}}}
-
   | else={{{1}}}_{{{2}}}_{{{3}}}_{{{4}}}_{{{5}}}_{{{6}}} <!-- TODO -->
+
   | else={{anchorencode:{{{lat|}}}}}_{{anchorencode:{{{lon|}}}}}
   }} [[File:Chart icon.png|12px|link=]]]</span><!--   
   }} [[File:Chart icon.png|12px|link=]]]</span><!--   
   --><span class="p-category" style="display:none">{{?|test={{{type|}}}|{{{type|}}}|destination}}</span></div>
   --><span class="p-category" style="display:none">{{?|test={{{type|}}}|{{{type|}}}|destination}}</span></div>
Line 14: Line 16:
|{{!}}-
|{{!}}-
{{!}} colspan{{=}}"2" {{!}} {{chartlet
{{!}} colspan{{=}}"2" {{!}} {{chartlet
-
   | lat={{{lat|}}} | lon={{{lon|}}}
+
   | lat={{?|test={{{maplat|}}}|{{{maplat}}}|{{{lat|}}}}}  
-
   | maplat={{{maplat|}}}| maplon={{{maplon|}}}
+
   | lon={{?|test={{{maplon|}}}|{{{maplon}}}|{{{lon|}}}}}  
   | zoom={{{zoom|}}}
   | zoom={{{zoom|}}}
   | params={{{chartlet|}}}
   | params={{{chartlet|}}}
   | width={{{chartletwidth|}}}  
   | width={{{chartletwidth|}}}  
   | height={{{chartletheight|}}}  
   | height={{{chartletheight|}}}  
-
}}[[Category:Infobox with chartlet parameter]]
+
}}[[Category:Infobox with chartlet parameter]]}}</includeonly><noinclude>
-
}}</includeonly><noinclude>
+
Common block with coordinates, chartlet link, etc. for [[Template:Infobox]]
Common block with coordinates, chartlet link, etc. for [[Template:Infobox]]

Latest revision as of 16:22, 11 November 2018


Common block with coordinates, chartlet link, etc. for Template:Infobox

Personal tools
advertisement
Friends of Cruisers Wiki