版本差异对比:Template:DLC

对比版本 #19916 与版本 #64546 的 MediaWiki 双栏 Wikitext 差异

+19 行-119 行
(无编辑摘要)
(已是最新版本)
第 1 行:
第 1 行:
−<includeonly>{| class="roundy a-r at-c bg-蓝" style="width: 330px; margin-left: 5px; margin-bottom: 5px;"
+<includeonly>{| class="mobilewidthfix countryboxfix roundy-6 infobox" style="font-size:88%; background-color:#f8f9fa; float:right; width:330px; height:right; clear:none; color:#000000;"
|-
|-
−| colspan="2" |
+! 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}}}}}
−{| class="roundy bg-蓝 fulltable"
|-
|-
−| class="roundy bd-蓝 textblack bgwhite" | <div style="font-size:150%; padding: 3px 0px; margin-bottom: 3px;">{{#ifexist: File:{{{header|}}}.png | [[File:{{{header|}}}.png|28px|link={{{header|}}} ]] }} {{{header|DLC}}}</div>
+| colspan="2" style="text-align:center;" | {{#if: {{{logo|}}} | [[File:{{{logo}}}|330px]]}}
−|}
|-
|-
−| colspan="2" |
+| colspan="2" style="text-align:center;" |'''概述'''
−{| class="roundy bgwhite fulltable"
|-
|-
−| class="roundy bgl-蓝 bd-蓝 textblack bgwhite" | {{#if: {{{logo|}}} | [[File:{{{logo}}}|330px]]}}
+| style="width:40%; padding:0.5em;" | {{#if: {{{type|}}} |'''类型'''}}
−|}
+| style="width:60%;| [[DLC#{{{type|}}}| {{{type|DLC}}} ]]
|-
|-
−| colspan="2" |
+| style="width:40%; padding:0.5em;" | '''发行日期 {{#if: {{{patch|}}}|/ 补丁 }}'''
−{| class="roundy bgl-蓝 bd-蓝 bw-1 fulltable"
+| style="width:60%;| {{{date|YY-MM-DD}}} {{#if: {{{patch|}}}|/ [[{{{patch|}}} 版本|{{{patch|1.XX}}}]] }}
−|-
−| class="textblack" |'''概述'''
−{| class="roundy bgwhite fulltable"
−|-
−| class="roundy bl-蓝 bgwhite bw-1" |
−'''类型'''<div style="float:right;">[[DLC#{{{type|}}}| {{{type|是什么类型的DLC?}}} ]]</div>
−----
−'''发布日期 {{#if: {{{patch|}}}|/ Patch }}'''<div style="float:right;">{{{date|YY-MM-DD}}} {{#if: {{{patch|}}}|/ [[Patch {{{patch|}}}|{{{patch|1.XX}}}]] }}</div>
−----
−'''市场:{{{type|}}}'''<div style="float:right;">[https://www.paradoxplaza.com/{{{pdx|example}}} Paradox] / [http://store.steampowered.com/app/{{{steam|example}}}/ Steam]</div>
−{{#if: {{{pdxc|}}}|
−----
−'''市场:兵模包'''<div style="float:right;">[https://www.paradoxplaza.com/{{{pdxc|example}}} Paradox] / [http://store.steampowered.com/app/{{{steamc|example}}}/ Steam]</div> }}
−{{#if: {{{pdxm|}}}|
−----
−'''市场:音乐包'''<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
+| 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]
−* 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
+| {{#if: {{{pdxc|}}}| style="width:40%; padding:0.5em;" {{!}} '''商店:兵模包'''
−| DLC type (includes link to section on [[DLC]] page). Can be either: {{MultiColumn|
+{{!}} style="width:60%;{{!}} [https://www.paradoxplaza.com/{{{pdxc|games}}} Paradox] / [http://store.steampowered.com/app/{{{steamc|236850}}}/ Steam] }}
−* Expansion
−* Immersion Pack
−* Content Pack
−* Music Pack
−* E-book |2}}
−| '''required'''
|-
|-
−| patch
+| {{#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] }}
−* Add only for gameplay affecting DLCs.
−* Only major versions - good 1.x , bad 1.x.y
−| '''optional'''
|-
|-
−| date
+| colspan="2" class="roundybottom-6 bg-黑" style="padding:0.5em;" |
−| 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'''
|}
|}
−
+</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= 扩展包
−| 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= 扩展包
−| 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>

2020年3月17日(二)19:44 的最新版本

预览右侧版本

[[ 阅读]] [[ 编辑]]Template-info.png 模板文档