Difference between revisions of "Template:Expansion"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (Add new expansion)
Line 5: Line 5:
 
|smallimage={{icon|{{{1}}}|30px}}{{#if: {{{2|}}}|{{icon|{{{2}}}|30px}}}}
 
|smallimage={{icon|{{{1}}}|30px}}{{#if: {{{2|}}}|{{icon|{{{2}}}|30px}}}}
 
|textstyle={{#ifeq: {{{small|left}}} | left | font-size:85%}}
 
|textstyle={{#ifeq: {{{small|left}}} | left | font-size:85%}}
|text=Available only with the [[{{#Switch: {{lc:{{{1}}}}}
+
|text={{if lang}}|en=Available only with the|it=Disponibile solo se [[{{#Switch: {{lc:{{{1}}}}}
 
|mh = Making History
 
|mh = Making History
 
|bg = Breaking Ground
 
|bg = Breaking Ground

Revision as of 11:19, 10 January 2022

Documentation icon Template documentation[view] [edit] [history] [purge]Pages that link to Template:Expansion

Expansion should be used to indicate which expansion of Kerbal Space Program must be enabled to use the described content.

Usage

This infobox may be added by copy-pasting the template as shown below at the beginning of a section.

{{Expansion|X}}

Substitute the value for X.

Parameters

Parameter Explanation Default Status
1 To specify which expansion must be enabled empty required
2 To specify a second expansion which can be enabled instead of the first empty optional
small as of {{Ambox}} left optional

Values

The above parameters can have the following values:

Parameter Values Explanation
1, 2 mh Making History must be installed
bg Breaking Ground must be installed
small yes for sections (default)
no for articles

Updating this template

You shouldn't have to.

Examples

  • For articles (top of the page) use the following:

{{Expansion|mh|small=no}}

To be displayed as:

  • For sections use the following:

{{Expansion|mh}}

To be displayed as:

  • For content that is available from several expansions use the following:

{{Expansion|mh|bg}}

To be displayed as: