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
 
(3 intermediate revisions by the same user not shown)
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>
 +
{{Box|This template causes problems due to the current [[Kerbal_Space_Program_Wiki:Migration_problems|migration problems]].}}
 
=== Parameters ===
 
=== Parameters ===
 
{{Parameter table|parameters=
 
{{Parameter table|parameters=
Line 21: Line 22:
 
{{Parameter row|4|Picture size in pixels.|default picture size|Yes}}
 
{{Parameter row|4|Picture size in pixels.|default picture size|Yes}}
 
{{Parameter row|5|Is the picture a thumbnail ? If yes, set to <tt>thumb</tt> or <tt>true</tt>|Not thumb|Yes}}
 
{{Parameter row|5|Is the picture a thumbnail ? If yes, set to <tt>thumb</tt> or <tt>true</tt>|Not thumb|Yes}}
{{Parameter row|comment|Comment below the thumbnail. (requires to be a thumbnail)|No comment|Yes}}
+
{{Parameter row|comment|Comment below the thumbnail. (requires to be a thumbnail)|No comment|Yes}}}}
}}
 
==== Example ====
 
<pre>{{building|SPH|2|interior}}</pre> gives {{building|SPH|2|interior}}
 

Latest revision as of 13:36, 14 June 2015

Image does not exist !

This template causes problems due to the current migration problems.

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