Template:TInfobox coordblock
From CruisersWiki
(Difference between revisions)
(10 intermediate revisions not shown) | |||
Line 2: | Line 2: | ||
|{{!}}- | |{{!}}- | ||
{{!}} 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>{{ | + | --><div>{{TGeo coord |
| lat={{{lat|}}} | lon={{{lon|}}} | | lat={{{lat|}}} | lon={{{lon|}}} | ||
| name={{{name|}}} | | name={{{name|}}} | ||
| maplat={{{maplat|}}}| maplon={{{maplon|}}} | | maplat={{{maplat|}}}| maplon={{{maplon|}}} | ||
+ | | geometry={{{geometry|}}} | ||
| zoom={{{zoom|}}} | | zoom={{{zoom|}}} | ||
- | }}</div> | + | }} <span title="Other maps">[{{Coord URL}}{{if |test={{eq|{{{lat|}}}|{{anchorencode:{{{lat|}}}}}}} |
+ | | then={{{lat}}};{{{lon}}} | ||
+ | | else={{anchorencode:{{{lat|}}}}}_{{anchorencode:{{{lon|}}}}} | ||
+ | }} [[File:Chart icon.png|12px|link=]]]</span><!-- | ||
+ | --><span class="p-category" style="display:none">{{?|test={{{type|}}}|{{{type|}}}|destination}}</span></div> | ||
{{? | test={{{chartlet|}}} | {{? | test={{{chartlet|}}} | ||
|{{!}}- | |{{!}}- | ||
- | {{!}} colspan{{=}}"2" {{!}} {{ | + | {{!}} colspan{{=}}"2" {{!}} {{tChartlet |
| lat={{?|test={{{maplat|}}}|{{{maplat}}}|{{{lat|}}}}} | | lat={{?|test={{{maplat|}}}|{{{maplat}}}|{{{lat|}}}}} | ||
| lon={{?|test={{{maplon|}}}|{{{maplon}}}|{{{lon|}}}}} | | lon={{?|test={{{maplon|}}}|{{{maplon}}}|{{{lon|}}}}} | ||
Line 17: | Line 22: | ||
| 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:20, 11 November 2018
Common block with coordinates, chartlet link, etc. for Template:Infobox