Difference between revisions of "Template:Expansion"
From Kerbal Space Program Wiki
(First try Expansion template) |
m (typo) |
||
Line 7: | Line 7: | ||
|text=Available only with the [[{{#Switch: {{lc:{{{1}}}}} | |text=Available only with the [[{{#Switch: {{lc:{{{1}}}}} | ||
|mh = Making History | |mh = Making History | ||
− | | #default = <span style="color: red; font-size: 11px;">(unrecognized string "{{{1}}}" for [[Template:Expansion]])</span>}}]] | + | | #default = <span style="color: red; font-size: 11px;">(unrecognized string "{{{1}}}" for [[Template:Expansion]])</span>}}]] Expansion {{#if: {{{2|}}}|''or'' the [[{{#Switch: {{lc:{{{2}}}}} |
|mh = Making History | |mh = Making History | ||
− | | #default = <span style="color: red; font-size: 11px;">(unrecognized string "{{{2}}}" for [[Template:Expansion]])</span>}}]] | + | | #default = <span style="color: red; font-size: 11px;">(unrecognized string "{{{2}}}" for [[Template:Expansion]])</span>}}]] Expansion }}enabled. |
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{Template doc}} | {{Template doc}} | ||
[[Category:Amboxes]] | [[Category:Amboxes]] | ||
</noinclude> | </noinclude> |
Revision as of 02:56, 14 March 2018
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:
Available only with the Making History Expansion installed. |
- For sections use the following:
{{Expansion|mh}}
To be displayed as:
Available only with the Making History Expansion installed. |
- For content that is available from several expansions use the following:
{{Expansion|mh|bg}}
To be displayed as:
Available only with the Making History Expansion or the Breaking Ground Expansion installed. |
The above documentation is transcluded from Template:Expansion/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |