Difference between revisions of "Template:Infobox/Location"

From Kerbal Space Program Wiki
Jump to: navigation, search
(*use new infobox;)
(-uppercase parameters; +parameter table; +show coordinates in minutes and seconds;)
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
|file={{{file|{{{File}}}}}}
+
|file={{{file|}}}
 
|lines=
 
|lines=
{{Infobox/Line|Coordinated
+
{{Infobox/Line|Coordinates
| {{#if: {{{latitude|}}}|{{#expr: abs {{{latitude}}} round 4}}°&#8239;{{#ifexpr: {{{latitude}}} < 0|S|N}}|{{{latitude}}}°&#8239;N}}
+
| {{Infobox/Location/Coordinate|{{{latitude|}}}|N|S}}
| {{#if: {{{longitude|}}}|{{#expr: abs {{{longitude}}} round 4}}°&#8239;{{#ifexpr: {{{longitude}}} < 0|W|E}}|{{{longitude}}}°&#8239;E}}
+
| {{Infobox/Location/Coordinate|{{{longitude|}}}|E|W}}
 
}}
 
}}
 
{{Infobox/Line|Altitude|{{{altitude}}}&#8239;m}}
 
{{Infobox/Line|Altitude|{{{altitude}}}&#8239;m}}
{{Infobox/Line|Since version|{{{since|{{{Since|??}}}}}}}}
+
{{Infobox/Line|Since version|{{#if: {{{since|}}}|{{version|{{{since}}}|}}|{{Dict|Unknown}}}}}}
 
}}<noinclude>
 
}}<noinclude>
 +
 +
{{Parameter Table|name=text|parameters=
 +
{{Parameter Row|file|Shows an image of the location.|[[:File:Image-needed.png]]}}
 +
{{Parameter Row|latitude|Latitude of the position. Positive is north, negative is south.}}
 +
{{Parameter Row|longitude|Longitude of the position. Positive is east, negative is west.}}
 +
{{Parameter Row|altitude|Altitude above mean sea level of the location in meters.}}
 +
{{Parameter Row|since|Since when is this location available.|<tt>Unknown</tt>}}
 +
}}
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Revision as of 16:27, 19 August 2013

Infobox
Infobox
Coordinates Unknown° N
Unknown° E
Altitude {{{altitude}}} m
Since version Unknown

Template:Parameter Table