Difference between revisions of "Template:Infobox/Location"
From Kerbal Space Program Wiki
SlayerGames (talk | contribs) m (fixed documentation) |
m |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
|name={{{name|}}} | |name={{{name|}}} | ||
|file={{{file|}}} | |file={{{file|}}} | ||
− | |subtitle={{{subtitle|{{#ifeq:{{{at|}}}|KSC|{{lang|en=[[KSC]] building|fr=Bâtiment du [[KSC/fr|KSC]]|it=Edificio del [[KSC/it|KSC]]}}|}}}}} | + | |subtitle={{{subtitle|{{#ifeq:{{{at|}}}|KSC|{{lang|en=[[KSC]] building|fr=Bâtiment du [[KSC/fr|KSC]]|it=Edificio del [[KSC/it|KSC]]|Здание [[KSC/ru|космического центра]]}}|}}}}} |
|file extra1={{{file tier1|{{{fileTier1|}}}}}} | |file extra1={{{file tier1|{{{fileTier1|}}}}}} | ||
|thumb extra1={{lang|en={{Dict|Level}} |hu= }}1{{lang||hu=. szint|}} | |thumb extra1={{lang|en={{Dict|Level}} |hu= }}1{{lang||hu=. szint|}} | ||
Line 9: | Line 9: | ||
|thumb={{#if: {{{file tier1|{{{fileTier1|}}}}}}|{{lang|en={{Dict|Level}} |hu= }}{{#if: {{{file tier2|{{{fileTier2|}}} }}}|3|2}}}}{{lang||hu=. szint}} | |thumb={{#if: {{{file tier1|{{{fileTier1|}}}}}}|{{lang|en={{Dict|Level}} |hu= }}{{#if: {{{file tier2|{{{fileTier2|}}} }}}|3|2}}}}{{lang||hu=. szint}} | ||
|lines= | |lines= | ||
− | {{if | + | {{#if: {{{at|}}}{{{body|}}}| |
− | {{Infobox/Line|{{lang|en=Location|fr=Emplacement|de=Lokalisierung|es=Localización|hu=Elhelyezkedés|nl=Lokalisatie|ru= | + | {{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]] {{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|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}}}} | {{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}} | |2={{Infobox/Location/Coordinate|{{{latitude|}}}|Nh|S}} |
Latest revision as of 00:20, 28 February 2021
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 |