Template:Adjusters table:修订间差异

(merge from offical wiki)
 
(文本替换 - 替换“Category:Templates”为“Category:模板”)
 
第1行: 第1行:
<noinclude>{{template doc}}[[Category:Templates]]</noinclude>
<noinclude>{{template doc}}[[Category: 模板]]</noinclude>

2020年12月31日 (四) 18:19的最新版本

This template can be used to create a collapsed table of the adjusters modifiers of equipment and land units for the use in infoboxes.

Head

The table head is defined by the subtemplate {{Adjusters table/head}}.

Rows

The rows of the table should be created by the subtemplate {{Adjusters table/row}}.

Parameters

Parameter Description Status Default
1 name of the terrain required empty
mov Movement modifier optional
atk Attack modifier optional
def Defense modifier optional

End

The table end has to be added manually by |}

Example

The following code:

{{infobox
|class=eu4box-inline
|header=
|content={{Adjusters table/head}}
{{Adjusters table/row|Forest|mov={{green|+5%}}|def={{green|+25%}}}}
{{Adjusters table/row|Hills|def={{green|+10%}}}}
{{!}}}
}}

will display:


Adjusters:
Terrain Movement Attack Defense
ForestForest +5% +25%
HillsHills +10%