Difference between revisions of "Template:Infobox/Location"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (XZise moved page Template:Location to Template:Infobox/Location: going to upgrade to the new infobox)
(*use new infobox;)
Line 1: Line 1:
{| border="0" style="padding-left: 10px; padding-right: 10px; float:right; width:200px; border: 1px solid #cccccc; background-color:#f0f0f0"
+
{{Infobox
{{#ifeq: {{{Name|}}}|-||! colspan="3" {{!}} {{{Name|{{PAGENAME}}}}}}}
+
|file={{{file|{{{File}}}}}}
{{#if: {{{file|{{{File|<noinclude>Image-needed.png</noinclude>}}}}}}|{{!}}-
+
|lines=
{{!}} colspan="3" style="text-align: center;" {{!}} [[File:{{{file|{{{File|Image-needed.png}}}}}}|180px]]}}
+
{{Infobox/Line|Coordinated
|-
+
| {{#if: {{{latitude|}}}|{{#expr: abs {{{latitude}}} round 4}}°&#8239;{{#ifexpr: {{{latitude}}} < 0|S|N}}|{{{latitude}}}°&#8239;N}}
| Coordinates
+
| {{#if: {{{longitude|}}}|{{#expr: abs {{{longitude}}} round 4}}°&#8239;{{#ifexpr: {{{longitude}}} < 0|W|E}}|{{{longitude}}}°&#8239;E}}
| {{#if: {{{latitude|}}}|{{#expr: abs {{{latitude}}} round 4}}°&#8239;{{#ifexpr: {{{latitude}}} < 0|S|N}}|{{{latitude}}}}}
+
}}
| {{#if: {{{longitude|}}}|{{#expr: abs {{{longitude}}} round 4}}°&#8239;{{#ifexpr: {{{longitude}}} < 0|W|E}}|{{{longitude}}}}}
+
{{Infobox/Line|Altitude|{{{altitude}}}&#8239;m}}
|-
+
{{Infobox/Line|Since version|{{{since|{{{Since|??}}}}}}}}
| Altitude
+
}}<noinclude>
| colspan="2" | {{{altitude}}}&#8239;m
+
 
|-
+
[[Category:Templates]]</noinclude>
| Since Version
 
| colspan="2" | {{{Since|??}}}
 
|}
 

Revision as of 15:57, 19 August 2013

Infobox
[[File:{{{File}}}|190x190px|center|Infobox]]
Coordinated {{{latitude}}}° N
{{{longitude}}}° E
Altitude {{{altitude}}} m
Since version  ??