Template:EquipmentTableFromList/doc: Difference between revisions
No edit summary |
m (Added missing steps in instructions) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Function for creating a stat table with a given list of items. Items are sent in as a | Function for creating a stat table with a given list of items. Items are sent in as one item name per parameter. An optional parameter <code>includeModifiers</code> can also be used - if <code>true</code>, then a modifiers column is also included. | ||
A script for automatically generating this template with a given search term, ran through the in-game console, can be found at [[Template:Disambiguation/doc]]. To use the script, copy and paste it into the console and change the <code>searchTerm</code> to the Equipment page you're about to create and set <code>returnEquipmentTemplate</code> to true. Upon hitting enter, the outputs will be pasted into the console while also being copied to the clipboard. There will be 3 categories and all items will be within the Armour category. Items must be manually sorted into their respective categories however the script will prioritize Weapons > Quiver items > Armours so it should be as simple to sort. Any items that are not part of the set, such as Earth Layered Shield in the Earth Wizard set, should be removed and left on a Disambiguation page. | |||
For example, {{T|EquipmentTableFromList|(G) Ancient Helmet|(G) Ancient Platebody|(G) Ancient Platelegs}} gives: | |||
{{EquipmentTableFromList|(G) Ancient Helmet|(G) Ancient Platebody|(G) Ancient Platelegs}} | {{EquipmentTableFromList|(G) Ancient Helmet|(G) Ancient Platebody|(G) Ancient Platelegs}} |
Latest revision as of 09:05, 6 June 2024
Function for creating a stat table with a given list of items. Items are sent in as one item name per parameter. An optional parameter includeModifiers
can also be used - if true
, then a modifiers column is also included.
A script for automatically generating this template with a given search term, ran through the in-game console, can be found at Template:Disambiguation/doc. To use the script, copy and paste it into the console and change the searchTerm
to the Equipment page you're about to create and set returnEquipmentTemplate
to true. Upon hitting enter, the outputs will be pasted into the console while also being copied to the clipboard. There will be 3 categories and all items will be within the Armour category. Items must be manually sorted into their respective categories however the script will prioritize Weapons > Quiver items > Armours so it should be as simple to sort. Any items that are not part of the set, such as Earth Layered Shield in the Earth Wizard set, should be removed and left on a Disambiguation page.
For example, {{EquipmentTableFromList|(G) Ancient Helmet|(G) Ancient Platebody|(G) Ancient Platelegs}}
gives:
Attack Bonus | Strength Bonus | Defence Bonus | DR/AR | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Name | DLC | Error creating thumbnail: File missing | Error creating thumbnail: File missing | Error creating thumbnail: File missing | Error creating thumbnail: File missing | Error creating thumbnail: File missing | Error creating thumbnail: File missing | Error creating thumbnail: File missing | Error creating thumbnail: File missing | Error creating thumbnail: File missing | Error creating thumbnail: File missing | Error creating thumbnail: File missing | Error creating thumbnail: File missing | Equip Req | |
(G) Ancient Helmet | 0 | 0 | 0 | -2 | -5 | 10 | 0 | 0% | 63 | 52 | -3 | Error creating thumbnail: File missing 7% | Error creating thumbnail: File missing 70 | ||
(G) Ancient Platebody | 0 | 0 | 0 | 0 | -20 | 18 | 0 | 0% | 149 | 101 | -4 | Error creating thumbnail: File missing 7% | Error creating thumbnail: File missing 70 | ||
(G) Ancient Platelegs | 0 | 0 | 0 | -2 | -25 | 13 | 0 | 0% | 106 | 79 | -5 | Error creating thumbnail: File missing 7% | Error creating thumbnail: File missing 70 |