mNo edit summary |
m (Changed parameters type and quality to suggested value. Removed consumable. So the infobox display a drop list of values. Put parameter craftable as Bolean (checkbox with yes/no)) |
||
Line 19: | Line 19: | ||
|- |
|- |
||
| class="infobox-texttitle" | Craftable |
| class="infobox-texttitle" | Craftable |
||
| class="infobox-text" | {{{craftable|}}} |
| class="infobox-text" | {{#ifexpr : {{{craftable|}}} | Yes | No}} |
||
|- |
|- |
||
| colspan="2" style="height: 10px;" | |
| colspan="2" style="height: 10px;" | |
||
Line 55: | Line 55: | ||
"type": { |
"type": { |
||
"label": "The type of ingredient (sub from Ingredients Lists): ", |
"label": "The type of ingredient (sub from Ingredients Lists): ", |
||
"description": "Choose one of its subcategory : |
"description": "Choose one of its subcategory :", |
||
"example": " |
"example": "Hides", |
||
"type": "string", |
"type": "string", |
||
"autovalue": "", |
"autovalue": "", |
||
"required": true |
"required": true, |
||
"suggestedvalues": [ |
|||
"Animal Materials", |
|||
"Feathers, Fibers, Vines", |
|||
"Logs", |
|||
"Plants", |
|||
"Flowers", |
|||
"Ores", |
|||
"Gems", |
|||
"Ingots", |
|||
"Leathers", |
|||
"Hides", |
|||
"Textiles" |
|||
] |
|||
}, |
}, |
||
"quality": { |
"quality": { |
||
⚫ | |||
"label": "Quality. Choose and type one of them between the {{ }} : Low, Common, Moderate, High, Epic, Legendary", |
|||
"description": "The quality colour of the |
"description": "The quality colour of the ingredient :", |
||
"example": "{{Common}}", |
"example": "{{Common}}", |
||
"type": " |
"type": "string", |
||
"autovalue": "{{}}", |
"autovalue": "{{unknown}}", |
||
"required": true |
"required": true, |
||
"suggestedvalues": [ |
|||
"{{Low}}", |
|||
"{{Common}}", |
|||
"{{Moderate}}", |
|||
"{{High}}", |
|||
"{{Epic}}", |
|||
"{{Legendary}}" |
|||
] |
|||
}, |
}, |
||
"vox": { |
"vox": { |
||
Line 87: | Line 108: | ||
"craftable": { |
"craftable": { |
||
"label": "Craftable", |
"label": "Craftable", |
||
"description": "Is this item craftable |
"description": "Is this item craftable ?", |
||
⚫ | |||
"type": "boolean", |
"type": "boolean", |
||
"autovalue": "", |
"autovalue": "0", |
||
"required": true |
"required": true |
||
}, |
}, |
Revision as of 07:38, 23 July 2023
Infobox ingredient | |
Statistics | |
Type | [[Ingredients_Lists#|]] |
Quality | |
Craftable | {{#ifexpr : | Yes | No}} |
Technical Information | |
.vox File | |
.ron File | |
Recipe | |
Sprite Manifest |
An infobox template used for all types of ingredients. Not to be confused with consumables, this is for items that do not heal but are used on crafting recipes.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Description | description | The description of the ingredient as given on the tooltip when you hover over it. Place it in " ".
| String | required |
The type of ingredient (sub from Ingredients Lists): | type | Choose one of its subcategory :
| String | required |
Quality | quality | The quality colour of the ingredient :
| 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 |
Spawn Rules | spawnrules | The link to the line in world/src/layer/scatter.rs | Unknown | suggested |