Template:Expansion:修订间差异

(merge from offical wiki)
 
(16:41, 12 May 2022‎ Kami-sama)
 
(未显示同一用户的1个中间版本)
第5行: 第5行:
|smallimage={{icon|{{{1}}}|24px}}{{#if: {{{2|}}}|{{icon|{{{2}}}|24px}}}}
|smallimage={{icon|{{{1}}}|24px}}{{#if: {{{2|}}}|{{icon|{{{2}}}|24px}}}}
|textstyle={{#ifeq: {{{small|left}}} | left | font-size:85%}}
|textstyle={{#ifeq: {{{small|left}}} | left | font-size:85%}}
|text=Available only with the [[{{#Switch: {{lc:{{{1}}}}}
|text= 只可用于 [[{{#Switch: {{lc:{{{1}}}}}
|lev = Leviathans
|lev = Leviathans
|pln = Plantoids
|pln = Plantoids
第20行: 第20行:
|nem = Nemesis
|nem = Nemesis
|aqu = Aquatics
|aqu = Aquatics
| #default = <span style="color: red; font-size: 11px;">(unrecognized string "{{{1}}}" for [[Template:Expansion]])</span>}}]] DLC {{#if: {{{2|}}}|''or'' the [[{{#Switch: {{lc:{{{2}}}}}
|ovl = Overlord
| #default = <span style="color: red; font-size: 11px;"> (未识别的字符串 "{{{1}}}" 用于 [[Template:Expansion]] </span>}}]] DLC {{#if: {{{2|}}}|'' 或者'' [[{{#Switch: {{lc:{{{2}}}}}
|lev = Leviathans
|lev = Leviathans
|pln = Plantoids
|pln = Plantoids
第35行: 第36行:
|nem = Nemesis
|nem = Nemesis
|aqu = Aquatics
|aqu = Aquatics
| #default = <span style="color: red; font-size: 11px;">(unrecognized string "{{{2}}}" for [[Template:Expansion]])</span>}}]] DLC&nbsp;}}enabled.
|ovl = Overlord
| #default = <span style="color: red; font-size: 11px;"> (未识别的字符串 "{{{2}}}" 用于 [[Template:Expansion]] </span>}}]] DLC&nbsp;}} 已启用。
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{Template doc}}
{{Template doc}}
[[Category:Amboxes]]
[[Category:Amboxes]]
</noinclude>
</noinclude>

2022年5月23日 (一) 13:06的最新版本

[查看] [编辑]Template-info.png 模板文档

Expansion should be used to indicate which expansion of Europa Universalis 4 must be enabled to use the described content.

用法[编辑源代码]

This infobox may be added by copy-pasting the template as shown below at the beginning of a section.

{{Expansion|X}}

Substitute the value for X.

参数[编辑源代码]

Parameter Explanation Default Status
1 To specify which expansion must be enabled empty required
2 To specify a second expansion which can be enabled instead of the first empty optional
small as of {{Ambox}} left optional

数值[编辑源代码]

The above parameters can have the following values:

Parameter Values Explanation
1, 2
  • lev
  • pln
  • utp
  • snd
  • apc
  • dst
  • hum
  • mgc
  • anr
  • fed
  • lit
  • nec
  • nem
  • aqu
Value_Name must be enabled
small left for sections (default)
not left for articles

示例[编辑源代码]

页面通知[编辑源代码]

<-- Top of the page -->
{{Expansion|lev|small=no}}
<-- Content -->

<-- Top of the page -->

<-- Content -->

段落通知[编辑源代码]

<-- Top of the section -->
{{Expansion|lev}}
<-- Content -->

<-- Top of the section -->

<-- Content -->

多个 DLC[编辑源代码]

<-- Top of the page/section -->
{{Expansion|lev|snd}}
<-- Content -->

<-- Top of the page/section -->

<-- Content -->