Difference between revisions of "Template:Infobox/Location"
From Kerbal Space Program Wiki
(*generic refbody display; *it's body not planet;) |
m (+allow area parameter; *not reference body but simply location; *specific template;) |
||
Line 1: | Line 1: | ||
{{Infobox | {{Infobox | ||
|file={{{file|}}} | |file={{{file|}}} | ||
− | |lines={{if||{{{refbody|}}}| | + | |lines={{if||{{{body|{{{refbody|}}}}}}| |
− | {{Infobox/Line|{{lang|en= | + | {{Infobox/Line|{{lang|en=Location}}|[[File:{{BodyData|{{{body|{{{refbody}}}}}}|file}}|20px]] {{BodyData/FullName|{{{body|{{{refbody}}}}}}}}}}|{{#if: {{{area|}}}|{{#ifeq: {{{area|}}}|KSC|[[File:TinyKSC.png|20px]] [[KSC]]|<span class="error">Invalid ''area'' name!</span>}}}}}} |
− | {{Infobox/Line|{{lang|en=Coordinates|fr=Coordonnées|cs=Souřadnice|de=Koordinaten|pl=Współrzędne|ru=Координаты|hu=Koordináták}}<br>{{Kerbalmaps|{{{latitude|0}}}|{{{longitude|0}}}}} {{#if: {{{coord note|}}}|{{#tag:ref|{{{coord note}}}|group=Note|name=coord}}}} | + | {{Infobox/Line|{{lang|en=Coordinates|fr=Coordonnées|cs=Souřadnice|de=Koordinaten|pl=Współrzędne|ru=Координаты|hu=Koordináták}}<br>{{Kerbalmaps|{{{latitude|0}}}|{{{longitude|0}}}|{{{refbody|}}}}} {{#if: {{{coord note|}}}|{{#tag:ref|{{{coord note}}}|group=Note|name=coord}}}} |
|2={{Infobox/Location/Coordinate|{{{latitude|}}}|N|S}} | |2={{Infobox/Location/Coordinate|{{{latitude|}}}|N|S}} | ||
|3={{Infobox/Location/Coordinate|{{{longitude|}}}|E|W}} | |3={{Infobox/Location/Coordinate|{{{longitude|}}}|E|W}} | ||
Line 10: | Line 10: | ||
{{Infobox/Line|{{Dict|Since}}|{{#if: {{{since|}}}|{{version|{{{since}}}|}}|{{Dict|Unknown}}}}}} | {{Infobox/Line|{{Dict|Since}}|{{#if: {{{since|}}}|{{version|{{{since}}}|}}|{{Dict|Unknown}}}}}} | ||
|notes={{{notes|{{#if: {{{coord note|}}}|<references group="Note" />}}}}} | |notes={{{notes|{{#if: {{{coord note|}}}|<references group="Note" />}}}}} | ||
− | }}<noinclude> | + | }}<noinclude>An infobox for general locations, including easter eggs. |
{{Parameter Table|name=text|parameters= | {{Parameter Table|name=text|parameters= | ||
{{Parameter Row|file|Shows an image of the location.|[[:File:Image needed.svg]]}} | {{Parameter Row|file|Shows an image of the location.|[[:File:Image needed.svg]]}} | ||
− | {{Parameter Row|refbody| | + | {{Parameter Row|body|name2=refbody|Body on which this location is. The parameter name <tt>refbody</tt> is '''deprecated'''!|Not set/Hidden}} |
+ | {{Parameter Row|area|The area on the body. Currently only supports ''KSC''.|Not set/Hidden}} | ||
{{Parameter Row|latitude|Latitude of the position. Positive is north, negative is south.}} | {{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|longitude|Longitude of the position. Positive is east, negative is west.}} | ||
Line 23: | Line 24: | ||
}} | }} | ||
− | [[Category: | + | [[Category:Infobox templates]]</noinclude> |
Revision as of 12:14, 1 August 2014
Infobox | ||
Coordinates Map |
Unknown° N | |
Unknown° E | ||
Altitude | {{{altitude}}} m | |
Since version | Unknown |