Difference between revisions of "Template:Infobox/Location"
From Kerbal Space Program Wiki
(*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= | ||
− | + | {{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}} |