Template:Adjusters table: Difference between revisions

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

Latest revision as of 18:19, 31 December 2020

[阅读] [编辑]Template-info.png 模板文档

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 #重定向 Template:绿字 #重定向 Template:绿字
HillsHills #重定向 Template:绿字