m (Changed infobox format display as block.) |
m (Created automated link for types and a drop list.) |
||
Line 13: | Line 13: | ||
|- |
|- |
||
| class="infobox-texttitle" | Type |
| class="infobox-texttitle" | Type |
||
| class="infobox-text" | {{{type|}}} |
| class="infobox-text" | [[Utility#{{{type|}}}|{{{type|}}}]] |
||
|- |
|- |
||
| class="infobox-texttitle" | [[Quality]] |
| class="infobox-texttitle" | [[Quality]] |
||
Line 52: | Line 52: | ||
"type": { |
"type": { |
||
"label": "Type of the item, as declared in the .ron file (kind:<Type>)", |
"label": "Type of the item, as declared in the .ron file (kind:<Type>)", |
||
"description": "The type of the utility item |
"description": "The type of the utility item.", |
||
"example": "Throwable or [[Gliders]]", |
|||
"type": "string", |
"type": "string", |
||
"autovalue": "", |
"autovalue": "", |
||
"required": true |
"required": true, |
||
"suggestedvalues": [ |
|||
"Bomb", |
|||
"Collar", |
|||
"Fireworks" |
|||
] |
|||
}, |
}, |
||
"quality": { |
"quality": { |
Revision as of 16:17, 23 July 2023
File:Veloren Infobox utility.png | |
Infobox utility | |
Statistics | |
Type | [[Utility#|]] |
Quality | |
Craftable | No |
Technical Information | |
.vox File | |
.ron File | |
Recipe |
An infobox template used for all types of utility items. Not to be confused with consumables or ingredients, this is for items that do not heal and are not used in crafting recipes.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Description | description | The description of the item as given on the tooltip when you hover over it.
| String | required |
Type of the item, as declared in the .ron file (kind:<Type>) | type | The type of the utility item.
| String | required |
Quality | quality | The quality color of the item.
| String | required |
Craftable | craftable | Is this item craftable ?
| Boolean | required |
.vox File | vox | The file link as linked on gitlab.com/veloren/veloren. Place the link in the [ ] and add a space after the url with the text you want to display in the infobox.
| URL | suggested |
.ron File | ron | The gitlab link to the .ron file. Place the url in the [ ] with a space after the text. Then add what you want to show in the infobox.
| URL | suggested |
Number of the line of code to the recipe | recipe | The link to the line of code in the recipe book : https://gitlab.com/veloren/veloren/-/blob/master/assets/common/recipe_book.ron#L*** where *** is a number
| Number | suggested |
Sprite Manifest | manifest | The link to the line of code in the sprite manifest
| Unknown | suggested |