Difference between revisions of "Template:Infobox/Location"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (!closing of the conditional template;)
m (fixed documentation)
(33 intermediate revisions by 10 users not shown)
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
 +
|name={{{name|}}}
 
|file={{{file|}}}
 
|file={{{file|}}}
|lines={{if||{{{body|{{{refbody|}}}}}}|
+
|subtitle={{{subtitle|{{#ifeq:{{{at|}}}|KSC|{{lang|en=[[KSC]] building|fr=Bâtiment du [[KSC/fr|KSC]]|it=Edificio del [[KSC/it|KSC]]}}|}}}}}
{{Infobox/Line|{{lang|en=Location}}|[[File:{{BodyData|{{{body|{{{refbody}}}}}}|file}}|20px]]&nbsp;{{BodyData/FullName|{{{body|{{{refbody}}}}}}}}|{{#if: {{{area|}}}|{{#ifeq: {{{area}}}|KSC|[[File:TinyKSC.png|20px]]&nbsp;[[KSC]]|<span class="error">Invalid ''area'' name!</span>}}}}}}}}
+
|file extra1={{{file tier1|{{{fileTier1|}}}}}}
{{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}}}}
+
|thumb extra1={{lang|en={{Dict|Level}}&nbsp;|hu=&nbsp;}}1{{lang||hu=. szint|}}
|2={{Infobox/Location/Coordinate|{{{latitude|}}}|N|S}}
+
|file extra2={{{file tier2|{{{fileTier2|}}}}}}
 +
|thumb extra2={{lang|en={{Dict|Level}}&nbsp;|hu=&nbsp;}}2{{lang||hu=. szint|}}
 +
|thumb={{#if: {{{file tier1|{{{fileTier1|}}}}}}|{{lang|en={{Dict|Level}}&nbsp;|hu=&nbsp;}}{{#if: {{{file tier2|{{{fileTier2|}}} }}}|3|2}}}}{{lang||hu=. szint}}
 +
|lines=
 +
{{if||{{{at|}}}{{{body|}}}|
 +
{{Infobox/Line|{{lang|en=Location|fr=Emplacement|de=Lokalisierung|es=Localización|hu=Elhelyezkedés|nl=Lokalisatie|ru=Местоположение|ja=所在地|ko=위치|it=Località}}|[[File:{{Body data|{{#if: {{{body|}}}|{{{body|}}}|{{Place data|{{{at}}}|body}}}}|file}}|20px]]&nbsp;{{Body data/full name|{{#if: {{{body|}}}|{{{body|}}}|{{Place data|{{{at}}}|body}}}}}}|{{#if: {{{at|}}}|[[File:{{Place data|{{{at}}}|image|Image needed.svg}}|20px]]&nbsp;{{#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|ja=座標|ko=좌표|it=Coordinate}}<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|}}}|Nh|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|ja=高度|ko=고도|it=Altitudine}}|{{#if: {{{altitude|}}}|{{{altitude}}}&#8239;{{Dict|m}}|{{Dict|Unknown}}}}
{{Infobox/Line|{{Dict|Since}}|{{#if: {{{since|}}}|{{version|{{{since}}}|}}|{{Dict|Unknown}}}}}}
+
{{#ifeq:{{{easteregg}}}|{{lang|de=Ja|en=Yes|es=Sí|fr=Oui|hr=da|nl=Ja|pl=Tak|ru=Да|sv=Ja|zh-cn=是|ko=예|pt=Sim|hu=Igen|ja=有|it=Sì}}|{{Infobox/Line|{{lang|en=Easter egg}}|{{Yes}}}}|}}
 +
{{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.
  
{{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|name|Name of location.|<nowiki>{{BASEPAGENAME}}</nowiki>}}
{{Parameter Row|body|name2=refbody|Body on which this location is. The parameter name <tt>refbody</tt> is '''deprecated'''!|Not set/Hidden}}
+
{{Parameter row|file|Shows an image of the location.|[[:File:Image needed.svg]]}}
{{Parameter Row|area|The area on the body. Currently only supports ''KSC''.|Not set/Hidden}}
+
{{Parameter row|file tier1|An image of the first tier version|Not set}}
{{Parameter Row|latitude|Latitude of the position. Positive is north, negative is south.}}
+
{{Parameter row|file tier2|An image of the second tier version|Not set}}
{{Parameter Row|longitude|Longitude of the position. Positive is east, negative is west.}}
+
{{Parameter row|body|Body on which this location is. Uses {{Tl|Body data}} to determine image and text.|Not set/Hidden}}
{{Parameter Row|altitude|Altitude above mean sea level of the location in meters.}}
+
{{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|since|Since when is this location available.|<tt>Unknown</tt>}}
+
{{Parameter row|latitude|Latitude of the position. Positive is north, negative is south.|Not set/Hidden}}
{{Parameter Row|notes|Notes|Not set/Hidden}}
+
{{Parameter row|longitude|Longitude of the position. Positive is east, negative is west.|Not set/Hidden}}
{{Parameter Row|coord note|2=Note about the coordination. Automatically sets {{{notes}}} to <tt>&lt;references group="Note" /&gt;</tt>.|3=Not set}}
+
{{Parameter row|altitude|Altitude above mean sea level of the location in meters.|<tt>Unknown</tt>}}
 +
{{Parameter row|easteregg|If the location is an easter egg.|Not set/Hidden}}
 +
{{Parameter row|since|Since when is this location available.|<tt>Unknown</tt>}}
 +
{{Parameter row|notes|Notes|Not set/Hidden}}
 +
{{Parameter row|coord note|2=Note about the coordination. Automatically sets {{{notes}}} to <tt>&lt;references group="Note" /&gt;</tt>.|3=Not set}}
 
}}
 
}}
  
 
[[Category:Infobox templates]]</noinclude>
 
[[Category:Infobox templates]]</noinclude>

Revision as of 21:08, 3 May 2019

Infobox
Infobox
Altitude Unknown
Since version Unknown
An infobox for general locations, including easter eggs.
Name Optional Description Default
name Yes Name of location. {{BASEPAGENAME}}
file Yes Shows an image of the location. File:Image needed.svg
file tier1 Yes An image of the first tier version Not set
file tier2 Yes An image of the second tier version Not set
body Yes Body on which this location is. Uses {{Body data}} to determine image and text. Not set/Hidden
at Yes The place at which that location is and automatically sets the body parameter. Uses {{Place data}} to determine image and text. Not set/Hidden
latitude Yes Latitude of the position. Positive is north, negative is south. Not set/Hidden
longitude Yes Longitude of the position. Positive is east, negative is west. Not set/Hidden
altitude Yes Altitude above mean sea level of the location in meters. Unknown
easteregg Yes If the location is an easter egg. Not set/Hidden
since Yes Since when is this location available. Unknown
notes Yes Notes Not set/Hidden
coord note Yes Note about the coordination. Automatically sets {{{notes}}} to <references group="Note" />. Not set