Template:Adjusters table

Pokewiz讨论 | 贡献2020年12月31日 (四) 18:19的版本 (文本替换 - 替换“Category:Templates”为“Category:模板”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

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%