Difference between revisions of "Template:LocalisationOn"

From Kerbal Space Program Wiki
Jump to: navigation, search
(*rewritten to work like an infobox;)
 
(8 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
|file=none
+
|file={{{file|none}}}
|lines={{Infobox/Line|{{lang|en=Location}}|[[File:{{Body data|{{#if: {{{body|}}}|{{{body|}}}|{{Place data|{{{at<noinclude>|KSC</noinclude>}}}|body}}}}|file}}|20px]]&nbsp;{{Body data/full name|{{#if: {{{body|}}}|{{{body|}}}|{{Place data|{{{at<noinclude>|KSC</noinclude>}}}|body}}}}}}|{{#if: {{{at|<noinclude>KSC</noinclude>}}}|[[File:{{Place data|{{{at<noinclude>|KSC</noinclude>}}}|image|Image needed.svg}}|20px]]&nbsp;[[{{{at<noinclude>|KSC</noinclude>}}}{{if lang}}|{{{at<noinclude>|KSC</noinclude>}}}]]}}}}
+
|lines={{Infobox/Line|{{lang|en=Location|de=Lokalisierung|es=Localización|fr=Emplacement|hu=Elhelyezkedés|ko=위치|nl=Lokalisatie|ru=Местоположение|tr=Konum}}|[[File:{{Body data|{{#if: {{{body|}}}|{{{body|}}}|{{Place data|{{{at<noinclude>|KSC</noinclude>}}}|body}}}}|file}}|20px]]&nbsp;{{Body data/full name|{{#if: {{{body|}}}|{{{body|}}}|{{Place data|{{{at<noinclude>|KSC</noinclude>}}}|body}}}}}}|{{#if: {{{at|<noinclude>KSC</noinclude>}}}|[[File:{{Place data|{{{at<noinclude>|KSC</noinclude>}}}|image|Image needed.svg}}|20px]]&nbsp;[[{{{at<noinclude>|KSC</noinclude>}}}{{if lang}}|{{{at<noinclude>|KSC</noinclude>}}}]]}}}}
}}<noinclude>Minimalistic infobox for locations. See also {{tl|Infobox/Location}}.
+
}}<noinclude>{{Box|The functionality of this template is in the already existing {{Tl|Infobox/Location}}.}}
 +
Minimalistic infobox for locations. See also {{tl|Infobox/Location}}.
  
Either one of the parameter must be present.
+
Either one of the parameters <tt>body</tt> and <tt>at</tt> must be present.
 
{{Parameter table|name=text|parameters=
 
{{Parameter table|name=text|parameters=
 +
{{Parameter row|file|An image of the site|Not set/Hidden}}
 
{{Parameter row|body|The [[celestial body]] this location is on. Uses {{Tl|Body data}}.}}
 
{{Parameter row|body|The [[celestial body]] this location is on. Uses {{Tl|Body data}}.}}
 
{{Parameter row|at|Another “superlocation” this place is at. Uses {{Tl|Place data}}.}}
 
{{Parameter row|at|Another “superlocation” this place is at. Uses {{Tl|Place data}}.}}

Latest revision as of 22:26, 11 January 2019

LocalisationOn
Location TinyKerbin.png Kerbin
TinyKSC.png KSC
The functionality of this template is in the already existing {{Infobox/Location}}.

Minimalistic infobox for locations. See also {{Infobox/Location}}.

Either one of the parameters body and at must be present.

Name Optional Description Default
file Yes An image of the site Not set/Hidden
body No The celestial body this location is on. Uses {{Body data}}.
at No Another “superlocation” this place is at. Uses {{Place data}}.