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:
Presently there are 2 unnamed variables that are expected:
Variables that are expected:
# Title
# Name ({{{1}}})
# Image ({{{2}}})
# 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:

  1. Title
  2. Image
  3. (Skill Name)
  4. Rarity
  5. Type
  6. Slot
  7. 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:

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