Difference between revisions of "Template:DLC"

From Kerbal Space Program Wiki
Jump to: navigation, search
m
m
Line 1: Line 1:
 
<includeonly>{{Infobox
 
<includeonly>{{Infobox
 
|width=330
 
|width=330
|name={{#ifexist: File:{{{name|}}}.png|[[File:{{{name|}}}.png|28px|link={{{name|}}}]]}} {{{name|DLC}}}
+
|name={{#if: {{{name|}}}|{{{name}}}|{{BASEPAGENAME}}}}
|file={{#if: {{{file|}}}|[[File:{{{file}}}|330px]]
+
|icon={{#if: {{{icon|}}}|{{{icon}}}|Image needed.svg}}
----}}
+
|icon width=28
 +
|file={{#if: {{{file|}}}|{{{file}}}|Image needed.svg}}
 +
----
 
'''Type'''<div style="float:right;">{{#if: {{{type|}}}|{{{type|}}}|Expansion}} </div>
 
'''Type'''<div style="float:right;">{{#if: {{{type|}}}|{{{type|}}}|Expansion}} </div>
 
----
 
----
Line 16: Line 18:
 
{{Parameter table|parameters=
 
{{Parameter table|parameters=
 
{{Parameter row|title|The DLC title (an icon will be displayed).|Base page name}}
 
{{Parameter row|title|The DLC title (an icon will be displayed).|Base page name}}
 +
{{Parameter row|file|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.|1.X}}
+
{{Parameter row|version|The KSP version the DLC released with or was build for.|Not set/Hidden}}
{{Parameter row|date|The date when the DLC was released as ISO date: YYYY-MM-DD.|2018-03-13}}
+
{{Parameter row|date|The date when the DLC was released as ISO date: YYYY-MM-DD.|Not set/Hidden}}
 
{{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 <code>https://kerbalspaceprogram.com/kspstore/index.php?p=</code>|Not set/Hidden}}
 
{{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.|Not set/Hidden}}
Line 30: Line 33:
 
{{DLC
 
{{DLC
 
| name=Making History
 
| name=Making History
 +
| icon=Expansion-MakingHistory.png
 
| file=MakingHistory_Banner.png
 
| file=MakingHistory_Banner.png
 
| type=Expansion
 
| type=Expansion
Line 41: Line 45:
 
{{DLC
 
{{DLC
 
| name=Making History
 
| name=Making History
 +
| icon=Expansion-MakingHistory.png
 
| file=MakingHistory_Banner.png
 
| file=MakingHistory_Banner.png
 
| type=Expansion
 
| type=Expansion

Revision as of 18:38, 18 March 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
title Yes The DLC title (an icon will be displayed). Base page name
file 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. Not set/Hidden
date Yes The date when the DLC was released as ISO date: YYYY-MM-DD. Not set/Hidden
ksp No Not set/Hidden
steam Yes Link to Steam store. The appid will suffice. Not set/Hidden

Example

The DLC infoxbox for the Making History expansion will be set up as follows:

{{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
}}
Making HistoryExpansion-MakingHistory.png
Making History
Type Expansion
Release date / Version 2018-03-13 / 1.4.1
Store KSP / Steam