Difference between revisions of "Template:Expansion/doc"
From Kerbal Space Program Wiki
m |
Rocketdocker (talk | contribs) (Edits.) |
||
(7 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | |||
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | ||
− | '''Expansion''' should be used to indicate which | + | '''Expansion''' should be used to indicate which expansion of Kerbal Space Program must be enabled to use the described content. |
== Usage == | == Usage == | ||
Line 44: | Line 43: | ||
! width=250px | Explanation | ! width=250px | Explanation | ||
|- | |- | ||
− | | rowspan=" | + | | rowspan="2" | '''1, 2''' |
| mh | | mh | ||
| Making History must be installed | | Making History must be installed | ||
+ | |- | ||
+ | | bg | ||
+ | | Breaking Ground must be installed | ||
|- | |- | ||
| rowspan="2" | '''small''' | | rowspan="2" | '''small''' | ||
− | | | + | | yes |
| for sections (default) | | for sections (default) | ||
|- | |- | ||
− | | | + | | no |
| for articles | | for articles | ||
|} | |} | ||
Line 72: | Line 74: | ||
{{Expansion|mh}} | {{Expansion|mh}} | ||
− | * For content that is available from several | + | * For content that is available from several expansions use the following: |
− | <code><nowiki>{{Expansion|mh| | + | <code><nowiki>{{Expansion|mh|bg}}</nowiki></code> |
To be displayed as: | To be displayed as: | ||
− | {{Expansion|mh| | + | {{Expansion|mh|bg}} |
Latest revision as of 14:21, 22 January 2020
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. |