Difference between revisions of "Template:Infobox/Location"

From Kerbal Space Program Wiki
Jump to: navigation, search
(+support "at" which don't have a own page; +made longitude/latitude optional;)
Line 2: Line 2:
 
|file={{{file|}}}
 
|file={{{file|}}}
 
|lines={{if||{{{at|}}}{{{body|}}}|
 
|lines={{if||{{{at|}}}{{{body|}}}|
{{Infobox/Line|{{lang|en=Location|fr=Emplacement|de=Lokalisierung|es=Localización|nl=Lokalisatie|}}|[[File:{{Body data|{{#if: {{{body|}}}|{{{body|}}}|{{Place data|{{{at}}}|body}}}}|file}}|20px]] {{Body data/full name|{{#if: {{{body|}}}|{{{body|}}}|{{Place data|{{{at}}}|body}}}}}}|{{#if: {{{at|}}}|[[File:{{Place data|{{{at}}}|image|Image needed.svg}}|20px]] [[{{{at}}}{{if lang}}|{{{at}}}]]}}}}}}
+
{{Infobox/Line|{{lang|en=Location|fr=Emplacement|de=Lokalisierung|es=Localización|nl=Lokalisatie|}}|[[File:{{Body data|{{#if: {{{body|}}}|{{{body|}}}|{{Place data|{{{at}}}|body}}}}|file}}|20px]] {{Body data/full name|{{#if: {{{body|}}}|{{{body|}}}|{{Place data|{{{at}}}|body}}}}}}|{{#if: {{{at|}}}|[[File:{{Place data|{{{at}}}|image|Image needed.svg}}|20px]] {{#if: {{Place data|{{{at|}}}|page}}|[[{{Place data|{{{at|}}}|page}}{{if lang}}|{{Place data|{{{at|}}}|name}}]]|{{Place data|{{{at|}}}|name}}}}}}}}}}{{if||{{{latitude|}}}{{{longitude|}}}|
 
{{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: {{{body|}}}|{{{body|}}}|{{Place data|{{{at|}}}|body}}}}}} {{#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}}}|{{#if: {{{body|}}}|{{{body|}}}|{{Place data|{{{at|}}}|body}}}}}} {{#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}}
}}
+
}}}}
{{Infobox/Line|{{lang|en=Altitude|cs=Nadmořská výška|de=Höhe|pl=Wysokość|ru=Высота|hu=Szintmagasság}}|{{{altitude}}}&#8239;{{Dict|m}}}}
+
{{Infobox/Line|{{lang|en=Altitude|cs=Nadmořská výška|de=Höhe|pl=Wysokość|ru=Высота|hu=Szintmagasság}}|{{#if: {{{altitude|}}}|{{{altitude}}}&#8239;{{Dict|m}}|{{Dict|Unknown}}}}
{{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>An infobox for general locations, including easter eggs.
 
}}<noinclude>An infobox for general locations, including easter eggs.
Line 15: Line 15:
 
{{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|body|Body on which this location is. Uses {{Tl|Body data}} to determine image and text.|Not set/Hidden}}
 
{{Parameter Row|body|Body on which this location is. Uses {{Tl|Body data}} to determine image and text.|Not set/Hidden}}
{{Parameter Row|at|The place at which that location is. Currently only supports ''KSC'' and Kerbin's biomes (Warning:Type Biome/**biome**. For Ice Caps, type Biome/IceCaps). Automatically sets the <tt>body</tt> parameter. Uses {{Tl|Place data}} to determine image and text.|Not set/Hidden}}
+
{{Parameter Row|at|The place at which that location is and automatically sets the <tt>body</tt> parameter. Uses {{Tl|Place data}} to determine image and text.|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.|Not set/Hidden}}
{{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.|Not set/Hidden}}
{{Parameter Row|altitude|Altitude above mean sea level of the location in meters.}}
+
{{Parameter Row|altitude|Altitude above mean sea level of the location in meters.|<tt>Unknown</tt>}}
 
{{Parameter Row|since|Since when is this location available.|<tt>Unknown</tt>}}
 
{{Parameter Row|since|Since when is this location available.|<tt>Unknown</tt>}}
 
{{Parameter Row|notes|Notes|Not set/Hidden}}
 
{{Parameter Row|notes|Notes|Not set/Hidden}}

Revision as of 13:49, 2 August 2014

Infobox
Infobox
Altitude Unknown
Since version Unknown
An infobox for general locations, including easter eggs.

Template:Parameter Table