Difference between revisions of "Template:Infobox/DLC"
From Kerbal Space Program Wiki
m |
m (Small update) |
||
Line 6: | Line 6: | ||
|lines= | |lines= | ||
{{Infobox/Line|1='''Type'''|2={{#if: {{{type|}}}|{{{type|}}}|Expansion }} }} | {{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|}}} ]] }} }} | + | {{Infobox/Line|1='''Release date {{#if: {{{version|}}}|/ Version}}'''|2={{{date|YYYY-MM-DD}}} {{#if: {{{version|}}}|/ [[ {{{version|1.XX}}} ]] }} }} |
− | {{Infobox/Line|1='''Store'''|2=[https://kerbalspaceprogram.com/kspstore/index.php?p={{{ksp|}}} KSP] / [https://store.steampowered.com/app/{{{steam|}}} Steam] }} | + | {{Infobox/Line|1='''Store'''|2=[https://kerbalspaceprogram.com/kspstore/index.php?p={{{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 13: | 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://kerbalspaceprogram.com/kspstore/index.php?p=</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}} |
}} | }} | ||
Revision as of 18:16, 16 April 2018
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://kerbalspaceprogram.com/kspstore/index.php?p= |
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=5175221000 | steam=283740 }}