Template:Item Infobox/doc: Difference between revisions

From The Walkscape Walkthrough
Content added Content deleted
m (Bonez565 moved page Template:Infobox Loot/Doc to Template:Item Infobox/Doc: Expand Scope)
m (Update)
Line 45: Line 45:
===Notated copy===
===Notated copy===
<pre>
<pre>
{{Item_Infobox
| Title = (Recommended)
| Title = (Recommended)
| Image = (Recommended)
| Image = (Recommended)
Line 59: Line 60:
| Type = (Optional)
| Type = (Optional)
| Slot = (Optional)
| Slot = (Optional)
}}
</pre>
</pre>


===Empty copy===
===Empty copy===
<pre>
<pre>
{{Item_Infobox
| Title =
| Title =
| Image =
| Image =
Line 77: Line 80:
| Type =
| Type =
| Slot =
| Slot =
}}
</pre>
</pre>
</pre>


Line 89: Line 92:
The formatting for [[Shovel Axe]] is as follows:
The formatting for [[Shovel Axe]] is as follows:


<pre>{{Item_Infobox
{{Infobox Loot
| Title = Shovel Axe
| Image = Shovelaxe_svg.svg
| Mining = 50
| Woodcutting = 50
| Rarity = Legendary
| Type = Loot
| Slot = Tool
| Value = 100
}}</pre>

And the result is:

{{Item_Infobox
| Title = Shovel Axe
| Title = Shovel Axe
| Image = Shovelaxe_svg.svg
| Image = Shovelaxe_svg.svg

Revision as of 09:09, 6 March 2024

Parameters

Title

The name of the item to appear at the top of the box. This value is optional but strongly recommended. If not provided, the name of the page will be used instead.

Image

The image file to represent the item. This is also strongly recommended. If a value is not provided, a file with the name of the item.png will be attempted. If that item is not found, a question mark image will appear.

Agility

The level of Agility required by the item. If left blank, the Agility skill and level will not be shown.

Carpentry

The level of Agility required by the item. If left blank, the Agility skill and level will not be shown.

Cooking

The level of Agility required by the item. If left blank, the Agility skill and level will not be shown.

Crafting

The level of Agility required by the item. If left blank, the Agility skill and level will not be shown.

Fishing

The level of Agility required by the item. If left blank, the Agility skill and level will not be shown.

Foraging

The level of Agility required by the item. If left blank, the Agility skill and level will not be shown.

Mining

The level of Agility required by the item. If left blank, the Agility skill and level will not be shown.

Smithing

The level of Agility required by the item. If left blank, the Agility skill and level will not be shown.

Woodcutting

The level of Agility required by the item. If left blank, the Agility skill and level will not be shown.

Rarity

The rarity of the item.

Type

The type of item.

Slot

The slot the item can be equipped in, if equippable.

Quick Copy

Notated copy

{{Item_Infobox
| Title = (Recommended)
| Image = (Recommended)
| Agility = (Optional)
| Carpentry = (Optional)
| Cooking = (Optional)
| Crafting = (Optional)
| Fishing = (Optional)
| Foraging = (Optional)
| Mining = (Optional)
| Smithing = (Optional)
| Woodcutting = (Optional)
| Rarity = (Optional)
| Type = (Optional)
| Slot = (Optional)
}}

Empty copy

{{Item_Infobox
| Title = 
| Image = 
| Agility = 
| Carpentry = 
| Cooking = 
| Crafting = 
| Fishing = 
| Foraging = 
| Mining = 
| Smithing = 
| Woodcutting = 
| Rarity = 
| Type = 
| Slot = 
}}

To Do

  • 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


Examples

The formatting for Shovel Axe is as follows:

{{Item_Infobox
| Title = Shovel Axe
| Image = Shovelaxe_svg.svg
| Mining = 50
| Woodcutting = 50
| Rarity = Legendary
| Type = Loot
| Slot = Tool
| Value = 100
}}

And the result is:

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