Template:Infobox/equipmentStat/doc

From Ring of Brodgar
Jump to navigation Jump to search
Infobox sub-template.
Used by both "Hafen" and "Legacy" infobox templates.
Expects to be used inside some table.


Usage: {{Infobox/equipmentStat|desc=...|<name=...>|value=...|<extra=...>}}
desc: Short item-property description text. Used in the first column. (mandatory)
name: Name of the SMW-property to save the value in. (optional)
value: Value of the item. (mandatory)
extra: Some extra stuff to display or execute. (optional)
Advanced:
colspan: Columns to span for the value column. (optional)
Usually not needed. Depends on parent infobox.
Special supported parameter values:
A value of "0" is displayed as "(None)" in the infobox output.
A value of "-1", "Unknown" or a single "?" is displayed as "(Unknown)" in the infobox output.
A value of "-2" is displayed as "Yes (Value Unknown)" in the infobox output.
Used by/for:
Infobox metaobj: repwith, lift, has_quality, radius, lockable, sthp, soak.
Infobox/equipment: absorbX, absorbY, ahp, ammo*, basedmg, cskill, range, stat*.
Infobox bush: lift.
Infobox legmetaobj: basedmg, absorbX, absorbY.