Difference between revisions of "Template:Infobox/DLC"

From Kerbal Space Program Wiki
Jump to: navigation, search
m
m (Fix ksp store link)
 
(3 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
|file={{{file|}}}
 
|file={{{file|}}}
 
|lines=
 
|lines=
  {{Infobox/Line|'''Type'''|{{#if: {{{type|}}}|{{{type|}}}|Expansion }} }}
+
  {{Infobox/Line|1='''Type'''|2={{#if: {{{type|}}}|{{{type|}}}|Expansion }} }}
  {{Infobox/Line|'''Release date {{#if: {{{version|}}}|/ Version}}'''|{{{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|'''Store'''|[https://kerbalspaceprogram.com/kspstore/index.php?p={{{ksp|}}} KSP]|[https://store.steampowered.com/app/{{{steam|}}} Steam] }}
+
  {{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 13: Line 13:
 
== Parameters ==
 
== Parameters ==
 
{{Parameter table|parameters=
 
{{Parameter table|parameters=
{{Parameter row|title|The DLC title (an icon will be displayed).|Base page name}}
+
{{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.|Not set/Hidden}}
+
{{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.|Not set/Hidden}}
+
{{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 <code>https://kerbalspaceprogram.com/kspstore/index.php?p=</code>|Not set/Hidden}}
+
{{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.|Not set/Hidden}}
+
{{Parameter row|steam|Link to Steam store. The ''appid'' will suffice.|Example}}
 
}}
 
}}
  
Line 34: Line 34:
 
| version=1.4.1
 
| version=1.4.1
 
| date=2018-03-13
 
| date=2018-03-13
| ksp=5175221000
+
| ksp=kerbal-space-program-making-history
 
| steam=283740
 
| steam=283740
 
}}
 
}}
Line 46: Line 46:
 
| version=1.4.1
 
| version=1.4.1
 
| date=2018-03-13
 
| date=2018-03-13
| ksp=5175221000
+
| 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
}}
Making HistoryExpansion-MakingHistory.png
Making History
Type Expansion
Release date / Version 2018-03-13 / 1.4.1
Store KSP / Steam