Template:Item Infobox/doc: Difference between revisions
From The Walkscape Walkthrough
Content added Content deleted
m (Bonez565 moved page Templates:Infobox Loot/Doc to Template:Infobox Loot/Doc: Misspelled title) |
m (update) |
||
Line 1: | Line 1: | ||
Variables that are expected: |
|||
# Title |
|||
# Name ({{{1}}}) |
|||
# Image |
# Image |
||
# (Skill Name) |
|||
# Rarity |
|||
# Type |
|||
# Slot |
|||
# Value |
|||
These should perhaps be named in the future. |
These should perhaps be named in the future. |
||
Line 17: | Line 22: | ||
{{Infobox Loot |
{{Infobox Loot |
||
| Shovel Axe |
| Title = Shovel Axe |
||
| shovelaxe_svg.svg |
| Image = shovelaxe_svg.svg |
||
| Mining = 50 |
| Mining = 50 |
||
| Woodcutting = 50 |
| Woodcutting = 50 |
||
Line 28: | Line 33: | ||
[[Category:Documentation]] |
[[Category:Documentation]] |
||
[[Category:Templates]] |
Revision as of 01:22, 5 March 2024
Variables that are expected:
- Title
- Image
- (Skill Name)
- Rarity
- Type
- Slot
- Value
These should perhaps be named in the future. After that the Skills and Levels sections are populated by setting the skill name to the required value. If a skill does not have a value set, it will not appear in either section of the table. The rarity is from the set list of known rarities and should populate as a stylized text that reflects the in-game colors used for rarity.
TODO:
- Rarity should probably be pulled out as its own template to make it more digestible and useable elsewhere. The values should also be converted to hex values as named colors are probably not very accurate.
- Check if this works for crafted items also (I think it will) and then rename it if it does to be more ambiguous. Maybe something like Infobox Item
Example:
The formatting for Shovel Axe is as follows:
Skill(s): | ![]() ![]() |
---|---|
Rarity: | |
Type: | |
Slot: | |
Value: | ![]() |
Properties | |
Tradable: | Yes |
Sellable: | Yes |
Droppable: | Yes |