Template:Item Infobox/doc

From The Walkscape Walkthrough
Revision as of 01:19, 5 March 2024 by Bonez565 (talk | contribs) (Bonez565 moved page Templates:Infobox Loot/Doc to Template:Infobox Loot/Doc: Misspelled title)

Presently there are 2 unnamed variables that are expected:

  1. Name ({{{1}}})
  2. Image ({{{2}}})

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:

Item Infobox/doc
{{{Name}}} Sprite
Skill(s): framelesslink=Mining Mining lvl 50
framelesslink=Woodcutting Woodcutting lvl 50
Rarity:
Type: Loot
Slot: Tool
Value: 100
Properties
Tradable: Yes
Sellable: Yes
Droppable: Yes