Template:效果框:修订间差异

无编辑摘要
无编辑摘要
 
(未显示2个用户的4个中间版本)
第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|{{{1}}}}}}.png|{{{1}}} icon]]<div style="font-weight: bold; font-size:smaller;">{{{en|}}}</div><div style="margin-left: 5px;">'''{{{1}}}'''
<div style="display:flex; align-items:center;" id="{{{1}}}">[[File:{{{file|{{{1}}}}}}.png|{{{1}}} icon]]<div style="margin-left: 5px;">'''{{{1}}}'''
{{plainlist|{{{modifiers}}}}}</div></div>{{#if:{{{2|}}}|<div style="font-size: 80%; font-style: italic;">{{{2}}}</div>}}</div></includeonly><noinclude>
{{plainlist|{{{modifiers}}}}}</div></div>{{#if:{{{2|}}}|<div style="font-size: 80%; font-style: italic;">{{{2}}}</div>}}</div></includeonly><noinclude>
{{template doc}}
{{template doc}}
[[Category:Infoboxes]]
[[Category:Infoboxes]]
</noinclude>
</noinclude>

2022年12月2日 (五) 19:30的最新版本

This template creates an infobox around the information about ideas, technologies, national spirits and so on.

Parameters

Parameter Description Status Default
1 name of the idea and identifier for the icon required empty
2 ingame description of the idea optional empty
modifiers effects of the idea required empty
file alternative file name optional {{{1}}}
indent indent by a number of standard indents (1.6em) optional empty

Example

The following code:

{{Effectbox|General Staff|The German General staff was responsible for the continuous study of all aspects of war, including the drawing up and reviewing of plans for mobilization or campaign. This contributed to a higher level of Organization in the army.|modifiers=*Division Organization: {{green|+5%}}
*Planning Speed: {{green|+25%}}
}}

will display:

General Staff icon
General Staff
  • Division Organization: +5%
  • Planning Speed: +25%
The German General staff was responsible for the continuous study of all aspects of war, including the drawing up and reviewing of plans for mobilization or campaign. This contributed to a higher level of Organization in the army.