Difference between revisions of "Template:Building"

From Kerbal Space Program Wiki
Jump to: navigation, search
m
m
Line 1: Line 1:
 
{{#switch:{{{2|1}}}
 
{{#switch:{{{2|1}}}
 
|1|2=
 
|1|2=
{{#ifexist:File:{{#ifeq:{{{3|}}}|interior|Inside&nbsp;|}}{{{1}}}Tier{{{2|1}}}.png|[[File:{{#ifeq:{{{3|}}}|interior|Inside&nbsp;|}}{{{1}}}Tier{{{2|1}}}.png{{#if:{{{4|}}}|{{!}}{{{{4}}}px|}}{{#ifeq:{{{5|}}}|thumb|{{!}}thumb{{#if:{{{comment|}}}|{{!}}{{{comment}}}|}}|{{#ifeq:{{{5|}}}|true|{{!}}thumb{{#if:{{{comment|}}}|{{!}}{{{comment}}}|}}|}}}}]]|<big><span style="color:red">'''Image does not exist !'''</span></big>}}
+
{{#ifexist:File:{{#ifeq:{{{3|}}}|interior|Inside&nbsp;|}}{{{1}}}Tier{{{2|1}}}.png|[[File:{{#ifeq:{{{3|}}}|interior|Inside&nbsp;|}}{{{1}}}Tier{{{2|1}}}.png{{#if:{{{4|}}}|{{!}}{{{4}}}px|}}{{#ifeq:{{{5|}}}|thumb|{{!}}thumb{{#if:{{{comment|}}}|{{!}}{{{comment}}}|}}|{{#ifeq:{{{5|}}}|true|{{!}}thumb{{#if:{{{comment|}}}|{{!}}{{{comment}}}|}}|}}}}]]|<big><span style="color:red">'''Image does not exist !'''</span></big>}}
 
|3=[[File:
 
|3=[[File:
 
{{#switch:{{{1}}}
 
{{#switch:{{{1}}}
Line 13: Line 13:
 
|MissionControl=MC_Front.png
 
|MissionControl=MC_Front.png
 
|AdministrationBuilding=Administration_Facility.jpg
 
|AdministrationBuilding=Administration_Facility.jpg
}}{{#if:{{{4|}}}|{{!}}{{{{4}}}px|}}{{#ifeq:{{{5|}}}|thumb|{{!}}thumb{{#if:{{{comment|}}}|{{!}}{{{comment}}}|}}|{{#ifeq:{{{5|}}}|true|{{!}}thumb{{#if:{{{comment|}}}|{{!}}{{{comment}}}|}}|}}}}]]}}<noinclude>
+
}}{{#if:{{{4|}}}|{{!}}{{{4}}}px|}}{{#ifeq:{{{5|}}}|thumb|{{!}}thumb{{#if:{{{comment|}}}|{{!}}{{{comment}}}|}}|{{#ifeq:{{{5|}}}|true|{{!}}thumb{{#if:{{{comment|}}}|{{!}}{{{comment}}}|}}|}}}}]]}}<noinclude>
 
=== Parameters ===
 
=== Parameters ===
 
{{Parameter table|parameters=
 
{{Parameter table|parameters=

Revision as of 13:35, 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}}
gives Inside SPHTier2.png