版本差异对比:Template:DLC
对比版本 #16848 与版本 #19912 的 MediaWiki 双栏 Wikitext 差异
+115 行-1 行
第 1 行:
第 1 行:
−#重定向 [[Template:Expansion]]
+<includeonly>{{infobox
+|width=330px
+|float=right
+|clear=right
+|header=<div style="font-size:150%; padding: 3px 0px; margin-bottom: 3px;">{{#ifexist: File:{{{header|}}}.png | [[File:{{{header|}}}.png|28px|link={{{header|}}} ]] }} {{{header|DLC}}}</div>
+|content=
+{{#if: {{{logo|}}} | [[File:{{{logo}}}|330px]]
+----}}
+'''Type'''<div style="float:right;">[[Downloadable content#{{{type|}}}s| {{{type|What type of DLC is it?}}} ]]</div>
+----
+'''Release date {{#if: {{{patch|}}}|/ Patch }}'''<div style="float:right;">{{{date|YY-MM-DD}}} {{#if: {{{patch|}}}|/ [[Patch {{{patch|}}}|{{{patch|1.XX}}}]] }}</div>
+----
+'''Store: {{{type|}}}'''<div style="float:right;">[https://www.paradoxplaza.com/{{{pdx|example}}} Paradox] / [http://store.steampowered.com/app/{{{steam|example}}}/ Steam]</div>
+{{#if: {{{pdxc|}}}|
+----
+'''Store: Content Pack'''<div style="float:right;">[https://www.paradoxplaza.com/{{{pdxc|example}}} Paradox] / [http://store.steampowered.com/app/{{{steamc|example}}}/ Steam]</div> }}
+{{#if: {{{pdxm|}}}|
+----
+'''Store: Music Pack'''<div style="float:right;">[https://www.paradoxplaza.com/{{{pdxm|example}}} Paradox] / [http://store.steampowered.com/app/{{{steamm|example}}}/ Steam]</div> }}
+}}</includeonly><noinclude>
+The template's main purpose is to provide store links while also linking to related information on the DLC in question.
+
+== Parameters ==
+{| class="wikitable"
+! Parameter !! Notes !! Status
+|-
+| header
+|
+* DLC title (expansions will also display the in-game icon).
+* Expansion icons can be found in [[:Category:Expansion icons]].
+| '''required'''
+|-
+| logo
+|
+* DLC banner/header (usually from Steam for size consistency).
+* DLC banners can be found in [[:Category:DLC banners]].
+| '''optional'''
+|-
+| type
+| DLC type (includes link to section on [[DLC]] page). Can be either: {{MultiColumn|
+* Expansion
+* Immersion Pack
+* Content Pack
+* Music Pack
+* E-book |2}}
+| '''required'''
+|-
+| patch
+|
+* Add only for gameplay affecting DLCs.
+* Only major versions - good 1.x , bad 1.x.y
+| '''optional'''
+|-
+| date
+| Release date in the format YY-MM-DD
+| '''required'''
+|-
+| pdx
+|
+* Link to Paradox Interactive store.
+* Copy everything past <code>https://www.paradoxplaza.com/</code>
+| '''required'''
+|-
+| steam
+|
+* Link to Steam store.
+* The ''appid'' will suffice.
+| '''required'''
+|-
+
+| pdxc / steamc
+|
+* Accompanying content for expansions (content pack).
+* Otherwise, use main parameters.
+| '''optional'''
+|-
+| pdxm / steamm
+|
+* Accompanying content for expansions (music pack).
+* Otherwise, use main parameters.
+| '''optional'''
+|}
+
+== Example ==
+The DLC infoxbox for the ''Common Sense'' expansion will be set up as follows:
+
+<pre>
+{{DLC
+| header= Common Sense
+| logo= Common Sense banner.jpg
+| type= Expansion
+| patch= 1.12
+| date= 2015-06-09
+| pdx= europa-universalis-iv-common-sense/EUEU04ESK0000005.html
+| steam= 338163
+| pdxc= europa-universalis-iv-common-sense-content-pack/EUEU04DSK0000023.html
+| steamc= 373150
+}}
+</pre>
+
+{{DLC
+| header= Common Sense
+| logo= Common Sense banner.jpg
+| type= Expansion
+| patch= 1.12
+| date= 2015-06-09
+| pdx= europa-universalis-iv-common-sense/EUEU04ESK0000005.html
+| steam= 338163
+| pdxc= europa-universalis-iv-common-sense-content-pack/EUEU04DSK0000023.html
+| steamc= 373150
+}}
+
+[[Category:DLC]]
+[[Category:Infoboxes]]
+[[Category:Templates]]</noinclude>
2017年9月13日(三)07:06 的版本
预览右侧版本The template's main purpose is to provide store links while also linking to related information on the DLC in question.
Parameters
Parameter |
Notes |
Status |
|---|---|---|
header |
|
required |
logo |
|
optional |
type |
DLC type (includes link to section on DLC page). Can be either:
|
required |
patch |
|
optional |
date |
Release date in the format YY-MM-DD |
required |
pdx |
|
required |
steam |
|
required |
pdxc / steamc |
|
optional |
pdxm / steamm |
|
optional |
Example
The DLC infoxbox for the Common Sense expansion will be set up as follows:
