Difference between revisions of "Template:Building"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Created page with "{{#switch:{{{2|1}}} |1|2= {{#ifexist:File:{{#ifeq:{{{3|}}}|interior|Inside |}}{{{1}}}Tier{{{2|1}}}.png|File:{{#ifeq:{{{3|}}}|interior|Inside |}}{{{1}}}Tier{{{2|1}}...")
 
m
Line 24: Line 24:
 
}}
 
}}
 
==== Example ====
 
==== Example ====
<pre>{{building|SPH|2|interior}}</pre> gives {{building|SPH|2|interior}}
+
<pre>{{building|SPH|2|interior|400|thumb|comment=This is a comment below the 2nd level SPH.}}</pre> gives {{building|SPH|2|interior|400|thumb|comment=This is a comment below the 2nd level SPH image.}}

Revision as of 13:33, 14 June 2015

Image does not exist !

Parameters

# Optional Description Default
1 No Building name/short name (see the list below).
2 Yes Building level. level 1
3 Yes Is the picture the level interior ? If yes, set to interior. No
4 Yes Picture size in pixels. default picture size
5 Yes Is the picture a thumbnail ? If yes, set to thumb or true Not thumb
comment Yes Comment below the thumbnail. (requires to be a thumbnail) No comment

Example

{{building|SPH|2|interior|400|thumb|comment=This is a comment below the 2nd level SPH.}}
gives
This is a comment below the 2nd level SPH image.