小 (试验一下) |
小 (试验一下) |
||
第1行: | 第1行: | ||
<includeonly><div style="width:{{{width|330px}}}; {{#if:{{{indent|}}}|margin-left: {{#expr:{{{indent}}}*1.6 + 0.2}}em;}}" class="eu4box eu4box-inline"> | <includeonly><div style="width:{{{width|330px}}}; {{#if:{{{indent|}}}|margin-left: {{#expr:{{{indent}}}*1.6 + 0.2}}em;}}" class="eu4box eu4box-inline"> | ||
<div style="display:flex; align-items:center;" id="{{{1}}}">[[File:{{{file|{{{en|}}}}}}.png|{{{2}}}的图标]] | <div style="display:flex; align-items:center;" id="{{{1}}}">[[File:{{{file|{{{en|}}}}}}.png|{{{2}}}的图标]] | ||
{{plainlist|{{{modifiers}}}}}</div></div>{{#if:{{{3|}}}|<div style="font-style: italic;">{{{3}}}</div>}}</div></includeonly><noinclude> | <div style="margin-left: 5px;"><div style="font-size:0.55em">{{{en|{{{1}}}}}}</div><div>'''{{{chs|{{{2}}}}}}'''</div> | ||
{{plainlist|{{{modifiers}}}}}</div> | |||
</div>{{#if:{{{3|}}}|<div style="font-style: italic;">{{{3}}}</div>}}</div></includeonly><noinclude> | |||
{{template doc}} | {{template doc}} | ||
[[Category:信息框]][[en:{{FULLPAGENAME}}]] | [[Category:信息框]][[en:{{FULLPAGENAME}}]] | ||
</noinclude> | </noinclude> |
2019年6月5日 (三) 15:00的最新版本
This template creates an infobox around the information about ideas, technologies, national spirits and so on.
参数
参数 | 描述 | 状态 | 缺省值 |
---|---|---|---|
1或en | 理念的名称并且用于图标的识别符 | 必需 | 空 |
2或chs | 中文名 | 必需 | 空 |
3 | ingame description of the idea | 可选 | 空 |
modifiers | 理念的效果 | 必需 | 空 |
file | 备选文件名 | 可选 | {{{1}}} |
indent | indent by a number of standard indents (1.6em) | 可选 | 空 |
例子
下列代码;
{{Effectbox|width=96%|file=Celtic philosophy start bonus|Chariot Culture|战车文化 |在战争中使用战车的行为可以追溯至数千年前,并且与贵族和阶级都有着很强的联系;以战车殉葬宣示着战争中赢来的荣誉。战车本身通常作为负载两三名乘员的移动平台使用。乘员在上面使用标枪或其他投掷武器来打击敌人阵列。 |modifiers=* 允许 {{icon|Chariots|24px}} “战车”单位 }}
将会显示: