Template:Equipment/Recommended/doc: Difference between revisions
From Melvor Idle
(Update docs) |
(Update docs for new params) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
This template can be used by entering the following onto a relevant page. | This template can be used by entering the following onto a relevant page. | ||
The following parameters are supported: | |||
* <code>style</code> - Optional. Specifies the relevant combat style: Melee, Ranged, or Magic. | |||
* <code>imgSize</code> - Optional. Specifies the slot image's dimensions in pixels. Defaults to 36 if not specified. | |||
* <code>showDR</code> - Optional. If <code>true</code>, adds another column listing the equipments' damage reduction statistic. Only supported if at most one item of equipment is specified for each equipment slot | |||
For all other parameters, the value passed will be the name of an item of equipment by default. If required, plain text may also be passed by prefixing the value with <code>!</code>. For example, specifying <code>passive1 = !Any Master Slayer armour piece</code> will result in the text following the prefix to be displayed in the table as is. | For all other parameters, the value passed will be the name of an item of equipment by default. If required, plain text may also be passed by prefixing the value with <code>!</code>. For example, specifying <code>passive1 = !Any Master Slayer armour piece</code> will result in the text following the prefix to be displayed in the table as is. | ||
Line 12: | Line 15: | ||
<pre>{{Equipment/Recommended | <pre>{{Equipment/Recommended | ||
|style = | |style = | ||
|imgSize = | |||
|showDR = true|false | |||
|helm# = | |helm# = | ||
|neck# = | |neck# = | ||
Line 20: | Line 25: | ||
|shield# = | |shield# = | ||
|ammo# = | |ammo# = | ||
|consumable# = | |||
|gloves# = | |gloves# = | ||
|boots# = | |boots# = | ||
|ring# = | |ring# = | ||
|gem# = | |||
|passive# = | |passive# = | ||
|familiar1# = | |familiar1# = | ||
|familiar2# = | |familiar2# = | ||
|enhC# = | |||
|enhT# = | |||
|enhS# = | |||
|prayer1# = | |||
|prayer2# = | |||
}}</pre> | }}</pre> |
Latest revision as of 13:08, 12 July 2024
This template displays the recommended equipment for an activity.
Usage
This template can be used by entering the following onto a relevant page.
The following parameters are supported:
style
- Optional. Specifies the relevant combat style: Melee, Ranged, or Magic.imgSize
- Optional. Specifies the slot image's dimensions in pixels. Defaults to 36 if not specified.showDR
- Optional. Iftrue
, adds another column listing the equipments' damage reduction statistic. Only supported if at most one item of equipment is specified for each equipment slot
For all other parameters, the value passed will be the name of an item of equipment by default. If required, plain text may also be passed by prefixing the value with !
. For example, specifying passive1 = !Any Master Slayer armour piece
will result in the text following the prefix to be displayed in the table as is.
Currently there is a cap of 5 that will be rendered per slot. Anything added past that will not be shown on the table.
{{Equipment/Recommended |style = |imgSize = |showDR = true|false |helm# = |neck# = |cape# = |body# = |legs# = |weapon# = |shield# = |ammo# = |consumable# = |gloves# = |boots# = |ring# = |gem# = |passive# = |familiar1# = |familiar2# = |enhC# = |enhT# = |enhS# = |prayer1# = |prayer2# = }}