Difference between revisions of "Template:LocalisationOn"

From Kerbal Space Program Wiki
Jump to: navigation, search
(*rewritten to work like an infobox;)
m (+file;)
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}}|[[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>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}}.}}

Revision as of 13:23, 1 August 2014

LocalisationOn
Location TinyKerbin.png Kerbin
TinyKSC.png KSC
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}}.