Template:Infotable Bonuses/doc: Difference between revisions
(Created page with "{{documentation}} {{invokes|Infotable Bonuses}} Template for inserting a table of item bonuses on a page. This lists a number of equippable game items, that has some kind of relation to each other, along with their associated stats in a table layout for an easy overview. This could be items that are part of an armour set or items that fall into the same category. Pages this template is suitable for is disambiguation pages for item categories, and also for pages dedicat...") |
No edit summary Tag: Reverted |
||
Line 4: | Line 4: | ||
Template for inserting a table of item bonuses on a page. This lists a number of equippable game items, that has some kind of relation to each other, along with their associated stats in a table layout for an easy overview. This could be items that are part of an armour set or items that fall into the same category. |
Template for inserting a table of item bonuses on a page. This lists a number of equippable game items, that has some kind of relation to each other, along with their associated stats in a table layout for an easy overview. This could be items that are part of an armour set or items that fall into the same category. |
||
Pages this template is suitable for is disambiguation pages for item categories, and also for pages dedicated to an armour set. It can also be useful for item pages where its desireable to compare an item against other similar items, although the latter should probably be reserved for top-tier items. This template is ''not'' suitable for comparing weapons though, but it can nevertheless be used on disambiguation pages for weapons to provide an overview. |
Pages this template is suitable for is disambiguation mw.pages for item categories, and also for mw.pages dedicated to an armour set. It can also be useful for item mw.pages where its desireable to compare an item against other similar items, although the latter should probably be reserved for top-tier items. This template is ''not'' suitable for comparing weapons though, but it can nevertheless be used on disambiguation mw.pages for weapons to provide an overview. |
||
==Usage== |
==Usage== |
||
Line 85: | Line 85: | ||
| itemwidth || Default item column width intended for the split-totals mode. || {{NA}} || optional |
| itemwidth || Default item column width intended for the split-totals mode. || {{NA}} || optional |
||
|- |
|- |
||
| expensive || Exists only to help maintainers locate errors on wiki pages, and can be enabled site-wide by changing a default in the Lua module. Should be disabled unless doing maintenance. || false || optional, debug |
| expensive || Exists only to help maintainers locate errors on wiki mw.pages, and can be enabled site-wide by changing a default in the Lua module. Should be disabled unless doing maintenance. || false || optional, debug |
||
|- |
|- |
||
|} |
|} |
Revision as of 00:32, 17 October 2024
Template for inserting a table of item bonuses on a page. This lists a number of equippable game items, that has some kind of relation to each other, along with their associated stats in a table layout for an easy overview. This could be items that are part of an armour set or items that fall into the same category.
Pages this template is suitable for is disambiguation mw.pages for item categories, and also for mw.pages dedicated to an armour set. It can also be useful for item mw.pages where its desireable to compare an item against other similar items, although the latter should probably be reserved for top-tier items. This template is not suitable for comparing weapons though, but it can nevertheless be used on disambiguation mw.pages for weapons to provide an overview.
Usage
{{Infotable Bonuses|item1|item2|item3 ...}}
Items listed needs to match the name of a wiki page that uses Template:Infobox Bonuses. In case an item has multiple variants, one of the subvariants has to be specified by appending a '#' sign and the sub-variant's name.
If you are unsure as to which variant to list, you can use the base name of the item and turn off sorting temporary, this should present you with a list of variants to chose from. The one you want is ususally the undamaged item or otherwise the item with the highest stats. For items that can be charged, you can pick the uncharged version if the stats are the same, otherwise chose the charged one.
Pages which erroneously lists multi-variant items will be added to Category:Infotable Bonuses with multi-variant items allowing maintainers to find and fix lists with errors in them.
Examples
{{Infotable Bonuses|Verac's brassard#Undamaged|Verac's flail#Undamaged|Verac's helm#Undamaged|Verac's plateskirt#Undamaged}}
Lua error in Module:Infotable_Bonuses at line 224: Of the 4 pages requested, there is 4 missing.(Verac's flail#Undamaged Verac's brassard#Undamaged Verac's helm#Undamaged Verac's plateskirt#Undamaged ).
{{Infotable Bonuses|Bronze axe|Iron axe|Steel axe|Black axe|Mithril axe|Adamant axe|Rune axe|Dragon axe|Crystal axe#Active|order=asc|nototals=yes|sort=str}}
Lua error in Module:Infotable_Bonuses at line 224: Of the 9 pages requested, there is 1 missing.(Crystal axe#Active ) Try temporarily disabling sorting to see which items might have multiple variants..
Split totals
{{Infotable Bonuses|Lunar helm|Lunar torso|Lunar legs|Lunar gloves|Lunar boots|Lunar cape|colwidth=30px|itemwidth=110px}}
{{Infotable Bonuses|Lunar amulet|Lunar ring|Lunar staff|itemwidth=110px|colwidth=30px|noheader=yes}}
Item | Attack Bonuses | Defence Bonuses | Other | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Lunar helm | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ||
Lunar torso | 0 | 0 | 0 | 10 | -10 | 34 | 22 | 40 | 12 | 0 | 0 | 0% | 0 | 0 | 4.535 | ||
Lunar legs | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ||
Lunar gloves | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ||
Lunar boots | 0 | 0 | 0 | 2 | -1 | 1 | 2 | 2 | 2 | 0 | 0 | 0% | 0 | 0 | 0.907 | ||
Lunar cape | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ||
Totals | 0 | 0 | 0 | 12 | -11 | 35 | 24 | 42 | 14 | 0 | 0 | 0% | 0 | 0 | 5.442 | N/A |
Lunar amulet | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ||
Lunar ring | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ||
Lunar staff | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ||
Totals | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0% | 0 | 0 | 0 | N/A |
---|
Row comments
Useful when using the infotable for a tier comparison of a single equipment slot, and commentary per item is helpful.
{{Infotable Bonuses|sort=dslash |Leather gloves |comment1 = Although their crush defence bonus is better than that of [[leather vambraces]], the difference is minimal - and slash attack type is significantly more common due to scimitars and 2-handed swords. |Leather vambraces |comment2 = Considered the best free-to-play gloves without any level requirements. Since they have no attack penalties, mages can safely use these gloves and are encouraged to do so. |Green d'hide vambraces |comment3 = The best gloves available for both ranged and melee combat. }}
Item | Attack Bonuses | Defence Bonuses | Other | Comment | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Leather gloves | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 2 | 0 | 0 | 0 | 0% | 0 | 0 | 0.226 | Although their crush defence bonus is better than that of leather vambraces, the difference is minimal - and slash attack type is significantly more common due to scimitars and 2-handed swords. | ||
Leather vambraces | 0 | 0 | 0 | 0 | 4 | 2 | 2 | 1 | 0 | 0 | 0 | 0% | 0 | 0 | 0.226 | Considered the best free-to-play gloves without any level requirements. Since they have no attack penalties, mages can safely use these gloves and are encouraged to do so. | ||
Green d'hide vambraces | 0 | 0 | 0 | -10 | 8 | 1 | 2 | 2 | 2 | 0 | 0 | 0% | 0 | 0 | 0.283 | The best gloves available for both ranged and melee combat. | ||
Totals | 0 | 0 | 0 | -10 | 12 | 3 | 5 | 5 | 2 | 0 | 0 | 0% | 0 | 0 | 0.735 | N/A |
Parameters
Numbered parameters
Parameter | Description | Default | Required |
---|---|---|---|
item1, item2, item3 ... | Items to list. Items listed needs to match the name of a wiki page that uses Template:Infobox Bonuses. In case an item has multiple variants, one of the subvariants has to be specified by appending a '#' sign and the sub-variant's name. | N/A | required |
Note: Due to the way SMW is configured on this site, there is currently a limit of 16 items per list. It is unlikely that you will ever hit this restriction, but if you do, a simple fix is just to split the table.
Pages which erroneously lists multi-variant items will be added to Category:Infotable Bonuses with multi-variant items allowing maintainers to find and fix lists with errors in them.
Named parameters
Parameter | Description | Default | Required |
---|---|---|---|
comment1 commentN |
Comment for the respective item at index 1 through N. If no comments are specified, the comments column is not shown. | N/A | optional |
noheader | Set to 'yes' to omit table header. | 'no' | optional |
nototals | Set to 'yes' to omit totals. | 'no' | optional |
sort | Sorting key. Set to one or more of: 'astab', 'aslash', 'acrush', 'amagic', 'arange', 'dstab', 'dslash', 'dcrush', 'dmagic', 'drange', 'str', 'mdmg', 'rstr' and 'prayer'. Use comma as a separator between the sorting keys. | (alphabetical) | optional |
order | Sorting order. Set to one or more of: 'ascending', 'asc', 'descending', 'desc', 'reverse', 'random' and 'rand'. Use comma as a separator between the sorting orders. | 'ascending' | optional |
colwidth | Default column width intended for the split-totals mode. | N/A | optional |
itemwidth | Default item column width intended for the split-totals mode. | N/A | optional |
expensive | Exists only to help maintainers locate errors on wiki mw.pages, and can be enabled site-wide by changing a default in the Lua module. Should be disabled unless doing maintenance. | false | optional, debug |
See also