版本差异对比:Template:DLC
对比版本 #19912 与版本 #64546 的 MediaWiki 双栏 Wikitext 差异
+20 行-106 行
第 1 行:
第 1 行:
−<includeonly>{{infobox
+<includeonly>{| class="mobilewidthfix countryboxfix roundy-6 infobox" style="font-size:88%; background-color:#f8f9fa; float:right; width:330px; height:right; clear:none; color:#000000;"
−|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
+! colspan="2" class="roundytop-6 bg-黑" style="color:#FFFFFF; font-size:150%; padding:0.5em;" | {{#ifexist: File:{{{header|}}}.png | [[File:{{{header|}}}.png|28px|link={{{name_zh|}}} ]] }} {{{name_zh|{{PAGENAME}}}}}
−|
−* 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
+| colspan="2" style="text-align:center;" | {{#if: {{{logo|}}} | [[File:{{{logo}}}|330px]]}}
−| 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
+| colspan="2" style="text-align:center;" |'''概述'''
−|
−* Add only for gameplay affecting DLCs.
−* Only major versions - good 1.x , bad 1.x.y
−| '''optional'''
|-
|-
−| date
+| style="width:40%; padding:0.5em;" | {{#if: {{{type|}}} |'''类型'''}}
−| Release date in the format YY-MM-DD
+| style="width:60%;| [[DLC#{{{type|}}}| {{{type|DLC}}} ]]
−| '''required'''
|-
|-
−| pdx
+| style="width:40%; padding:0.5em;" | '''发行日期 {{#if: {{{patch|}}}|/ 补丁 }}'''
−|
+| style="width:60%;| {{{date|YY-MM-DD}}} {{#if: {{{patch|}}}|/ [[{{{patch|}}} 版本|{{{patch|1.XX}}}]] }}
−* Link to Paradox Interactive store.
−* Copy everything past <code>https://www.paradoxplaza.com/</code>
−| '''required'''
|-
|-
−| steam
+| style="width:40%; padding:0.5em;" | '''商店:{{#if: {{{type|}}} |{{{type|}}}|}}'''
−|
+| style="width:60%;| {{#if: {{{pdx|}}} |[https://www.paradoxplaza.com/{{{pdx|games}}} Paradox] / |}}[http://store.steampowered.com/app/{{{steam|236850}}}/ Steam]
−* Link to Steam store.
−* The ''appid'' will suffice.
−| '''required'''
|-
|-
−
+| {{#if: {{{pdxc|}}}| style="width:40%; padding:0.5em;" {{!}} '''商店:兵模包'''
−| pdxc / steamc
+{{!}} style="width:60%;{{!}} [https://www.paradoxplaza.com/{{{pdxc|games}}} Paradox] / [http://store.steampowered.com/app/{{{steamc|236850}}}/ Steam] }}
−|
−* Accompanying content for expansions (content pack).
−* Otherwise, use main parameters.
−| '''optional'''
|-
|-
−| pdxm / steamm
+| {{#if: {{{pdxm|}}}| style="width:40%; padding:0.5em;" {{!}} '''商店:音乐包'''
−|
+{{!}} style="width:60%;{{!}} [https://www.paradoxplaza.com/{{{pdxc|games}}} Paradox] / [http://store.steampowered.com/app/{{{steamc|236850}}}/ Steam] }}
−* Accompanying content for expansions (music pack).
+|-
−* Otherwise, use main parameters.
+| colspan="2" class="roundybottom-6 bg-黑" style="padding:0.5em;" |
−| '''optional'''
|}
|}
−
+</includeonly><noinclude>
−== Example ==
+{{template doc}}
−The DLC infoxbox for the ''Common Sense'' expansion will be set up as follows:
+[[Category:DLC]][[Category:信息框模板]]
−
+</noinclude>
−<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>
