Difference between revisions of "Template:Infobox/DLC"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (hard code width)
(Rewrite)
Line 1: Line 1:
 
<includeonly>{{Infobox
 
<includeonly>{{Infobox
 
|width=330
 
|width=330
|name={{#if: {{{name|}}}|{{{name}}}|{{BASEPAGENAME}}}}
+
|name={{{name|}}}
|icon={{#if: {{{icon|}}}|{{{icon}}}|Image needed.svg}}
+
|icon={{{icon|}}}
|file={{#if: {{{file|}}}|[[File:{{{file}}}|320px]]|Image needed.svg}}
+
|file={{{file|}}}
----
 
'''Type'''<div style="float:right;">{{#if: {{{type|}}}|{{{type|}}}|Expansion}} </div>
 
----
 
'''Release date {{#if: {{{version|}}}|/ Version}}'''<div style="float:right;">{{{date|YYYY-MM-DD}}} {{#if: {{{version|}}}|/ [[{{{version|}}}|{{{version|1.X}}}]]}}</div>
 
----
 
'''Store'''<div style="float:right;">[https://kerbalspaceprogram.com/kspstore/index.php?p={{{ksp|example}}} KSP] / [http://store.steampowered.com/app/{{{steam|example}}}/ Steam]</div>
 
 
|lines=
 
|lines=
 +
{{Infobox/Line|'''Type'''<div style="float:right;">{{#if: {{{type|}}}|{{{type|}}}|Expansion}} </div>}}
 +
{{Infobox/Line|'''Release date {{#if: {{{version|}}}|/ Version}}'''<div style="float:right;">{{{date|YYYY-MM-DD}}} {{#if: {{{version|}}}|/ [[{{{version|}}}|{{{version|1.X}}}]]}}</div>}}
 +
{{Infobox/Line|'''Store'''<div style="float:right;">[https://kerbalspaceprogram.com/kspstore/index.php?p={{{ksp|example}}} KSP] / [http://store.steampowered.com/app/{{{steam|example}}}/ Steam]</div>}}
 
}}</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.

Revision as of 22:33, 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
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. 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:

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