Difference between revisions of "Template:Infobox/Location"

From Kerbal Space Program Wiki
Jump to: navigation, search
(*replaced user-namespace template by a generic way in the infobox template itself;)
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
 
|file={{{file|}}}
 
|file={{{file|}}}
 +
|file extra1={{{file tier1|{{{fileTier1|KSCOverhead.png}}}}}}
 +
|thumb extra1=Tier 1
 +
|file extra2={{{file tier2|{{{fileTier2|}}}}}}
 +
|thumb extra2=Tier 2
 +
|thumb={{#if: {{{file tier1|{{{fileTier1|x}}}}}}|Tier {{#if: {{{file tier2|{{{fileTier2|}}}}}}|3|2}} }}
 
|lines=
 
|lines=
{{#ifeq:{{{at|}}}|KSC|{{User:Mowaw/KSCTiers|tier1={{{fileTier1}}}|tier2={{{fileTier2}}}}}|}}{{if||{{{at|}}}{{{body|}}}|
+
{{if||{{{at|}}}{{{body|}}}|
 
{{Infobox/Line|{{lang|en=Location|fr=Emplacement|de=Lokalisierung|es=Localización|hu=Elhelyezkedés|nl=Lokalisatie|ru=Местоположение|ja=所在地}}|[[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=Location|fr=Emplacement|de=Lokalisierung|es=Localización|hu=Elhelyezkedés|nl=Lokalisatie|ru=Местоположение|ja=所在地}}|[[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=座標}}<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=座標}}<br>{{Kerbalmaps|{{{latitude|0}}}|{{{longitude|0}}}|{{#if: {{{body|}}}|{{{body|}}}|{{Place data|{{{at|}}}|body}}}}}} {{#if: {{{coord note|}}}|{{#tag:ref|{{{coord note}}}|group=Note|name=coord}}}}
Line 16: Line 21:
 
{{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|file tier1|An image of the first tier version|Not set}}
 +
{{Parameter row|file tier2|An image of the second tier version|Not set}}
 
{{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 and 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}}

Revision as of 12:41, 17 December 2014

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

Template:Parameter Table