模板:Adjusters table/doc

这是Template:Adjusters table的模板文档
当直接浏览时,使用变量可能会失效,请不要使用硬编码来代替页面名或地址。

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%