Difference between revisions of "Template:Infobox/DLC"
From Kerbal Space Program Wiki
m (Try this) |
m (Fix ksp store link) |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{Infobox | <includeonly>{{Infobox | ||
|width=330 | |width=330 | ||
− | |name= | + | |name={{{name|}}} |
− | |icon= | + | |icon={{{icon|}}} |
− | + | |file={{{file|}}} | |
− | |file= | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|lines= | |lines= | ||
+ | {{Infobox/Line|1='''Type'''|2={{#if: {{{type|}}}|{{{type|}}}|Expansion }} }} | ||
+ | {{Infobox/Line|1='''Release date {{#if: {{{version|}}}|/ Version}}'''|2={{{date|YYYY-MM-DD}}} {{#if: {{{version|}}}|/ [[ {{{version|1.XX}}} ]] }} }} | ||
+ | {{Infobox/Line|1='''Store'''|2=[https://www.kerbalspaceprogram.com/product/{{{ksp|Example}}}/ KSP] / [https://store.steampowered.com/app/{{{steam|Example}}} Steam] }} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
The template's main purpose is to provide store links while also linking to related information on the DLC in question. | The template's main purpose is to provide store links while also linking to related information on the DLC in question. | ||
Line 17: | Line 13: | ||
== Parameters == | == Parameters == | ||
{{Parameter table|parameters= | {{Parameter table|parameters= | ||
− | {{Parameter row| | + | {{Parameter row|name|The DLC name (an icon will be displayed).|Base page name}} |
{{Parameter row|icon|Icon of the DLC.|[[:File:Image needed.svg]]}} | {{Parameter row|icon|Icon of the DLC.|[[:File:Image needed.svg]]}} | ||
{{Parameter row|file|Banner of the DLC (usually from steam for size consistency).|[[:File:Image needed.svg]]}} | {{Parameter row|file|Banner of the DLC (usually from steam for size consistency).|[[:File:Image needed.svg]]}} | ||
{{Parameter row|type|Type of DLC. Currently only '''Expansion'''.|Expansion}} | {{Parameter row|type|Type of DLC. Currently only '''Expansion'''.|Expansion}} | ||
− | {{Parameter row|version|The KSP version the DLC released with or was build for.| | + | {{Parameter row|version|The KSP version the DLC released with or was build for.|1.XX}} |
− | {{Parameter row|date|The date when the DLC was released as ISO date: YYYY-MM-DD. | + | {{Parameter row|date|The date when the DLC was released as ISO date: YYYY-MM-DD.}} |
− | {{Parameter row|ksp|Link to KSP store. Copy everything past < | + | {{Parameter row|ksp|Link to KSP store. Copy everything past <pre>https://www.kerbalspaceprogram.com/product/</pre>|Example}} |
− | {{Parameter row|steam|Link to Steam store. The ''appid'' will suffice.| | + | {{Parameter row|steam|Link to Steam store. The ''appid'' will suffice.|Example}} |
}} | }} | ||
Line 38: | Line 34: | ||
| version=1.4.1 | | version=1.4.1 | ||
| date=2018-03-13 | | date=2018-03-13 | ||
− | | ksp= | + | | ksp=kerbal-space-program-making-history |
| steam=283740 | | steam=283740 | ||
}} | }} | ||
Line 50: | Line 46: | ||
| version=1.4.1 | | version=1.4.1 | ||
| date=2018-03-13 | | date=2018-03-13 | ||
− | | ksp= | + | | ksp=kerbal-space-program-making-history |
| steam=283740 | | steam=283740 | ||
}} | }} |
Latest revision as of 09:30, 7 May 2019
The template's main purpose is to provide store links while also linking to related information on the DLC in question.
Parameters
# | Optional | Description | Default |
---|---|---|---|
name | Yes | The DLC name (an icon will be displayed). | Base page name |
icon | Yes | Icon of the DLC. | File:Image needed.svg |
file | Yes | Banner of the DLC (usually from steam for size consistency). | File:Image needed.svg |
type | Yes | Type of DLC. Currently only Expansion. | Expansion |
version | Yes | The KSP version the DLC released with or was build for. | 1.XX |
date | No | The date when the DLC was released as ISO date: YYYY-MM-DD. | |
ksp | Yes | Link to KSP store. Copy everything past https://www.kerbalspaceprogram.com/product/ |
Example |
steam | Yes | Link to Steam store. The appid will suffice. | Example |
Example
The DLC infoxbox for the Making History expansion will be set up as follows:
{{Infobox/DLC | name=Making History | icon=Expansion-MakingHistory.png | file=MakingHistory_Banner.png | type=Expansion | version=1.4.1 | date=2018-03-13 | ksp=kerbal-space-program-making-history | steam=283740 }}