Content added Content deleted
(Added utility template) |
mNo edit summary |
||
(12 intermediate revisions by 2 users not shown) | |||
Line 11: | Line 11: | ||
|- |
|- |
||
| colspan="2" style="height: 10px;" | |
| colspan="2" style="height: 10px;" | |
||
|- |
|||
⚫ | |||
| class="infobox-text" style="padding-left:10px"| [[Utility#{{{type|}}}|{{{type|}}}]] |
|||
|- |
|- |
||
| class="infobox-texttitle" | [[Quality]] |
| class="infobox-texttitle" | [[Quality]] |
||
| class="infobox-text" | {{{quality|}}} |
| class="infobox-text" style="padding-left:10px"| {{{quality|}}} |
||
|- |
|- |
||
| class="infobox-texttitle" | Craftable |
| class="infobox-texttitle" | Craftable |
||
| class="infobox-text" | {{{craftable|}}} |
| class="infobox-text" style="padding-left:10px"| {{#ifexpr: {{{craftable|}}} | Yes | No}} |
||
|- |
|- |
||
| colspan="2" style="height: 10px;" | |
| colspan="2" style="height: 10px;" | |
||
Line 23: | Line 26: | ||
|- |
|- |
||
| class="infobox-texttitle" | .vox File |
| class="infobox-texttitle" | .vox File |
||
| class="infobox-text" | {{{vox|}}} |
| class="infobox-text" style="padding-left:10px" | [{{{vox|}}} {{{voxtext|}}}] |
||
|- |
|- |
||
| class="infobox-texttitle" | .ron File |
| class="infobox-texttitle" | .ron File |
||
| class="infobox-text" | {{{ron|}}} |
| class="infobox-text" style="padding-left:10px" | [{{{ron|}}} {{{rontext|}}}] |
||
|- |
|- |
||
{{#ifexpr: {{{craftable|}}} |
|||
⚫ | |||
| |
|||
⚫ | |||
{{!}} class="infobox-texttitle" {{!}} Recipe: |
|||
⚫ | |||
{{!}}- |
|||
}} |
|||
|} |
|} |
||
<includeonly> |
<includeonly> |
||
[[Category: |
[[Category:Utility]] |
||
</includeonly> |
</includeonly> |
||
</onlyinclude> |
</onlyinclude> |
||
Line 46: | Line 53: | ||
"autovalue": "\"\"", |
"autovalue": "\"\"", |
||
"required": true |
"required": true |
||
}, |
|||
"type": { |
|||
"label": "Choose the type, as declared in the .ron file (kind:<Type>)", |
|||
"description": "The type of the utility item.", |
|||
⚫ | |||
"autovalue": "", |
|||
"required": true, |
|||
"suggestedvalues": [ |
|||
"Bomb", |
|||
"Collar", |
|||
"Fireworks", |
|||
"Keys", |
|||
"Lanterns" |
|||
] |
|||
}, |
}, |
||
"quality": { |
"quality": { |
||
"label": "Quality", |
|||
"label": "Quality. Choose and type one of them between the {{ }} : Low, Common, Moderate, High, Epic, Legendary", |
|||
"description": "The quality |
"description": "The quality color of the item.", |
||
"example": "{{Common}}", |
"example": "{{Common}}", |
||
"type": " |
"type": "string", |
||
"autovalue": " |
"autovalue": "", |
||
"required": true |
"required": true, |
||
"suggestedvalues": [ |
|||
"{{Low}}", |
|||
"{{Common}}", |
|||
"{{Moderate}}", |
|||
"{{Epic}}", |
|||
"{{Legendary}}" |
|||
] |
|||
}, |
}, |
||
"vox": { |
"vox": { |
||
"label": ".vox File", |
"label": ".vox File", |
||
"description": "The file link as linked on gitlab.com/veloren/veloren |
"description": "The file link as linked on gitlab.com/veloren/veloren.", |
||
"example": " |
"example": "www.veloren.net Veloren", |
||
"type": " |
"type": "string", |
||
"autovalue": " |
"autovalue": "", |
||
"suggested": true |
"suggested": true |
||
}, |
}, |
||
"ron": { |
"ron": { |
||
"label": ".ron File", |
"label": ".ron File", |
||
"description": "The gitlab link to the .ron file |
"description": "The gitlab link to the .ron file.", |
||
"example": " |
"example": "www.veloren.net", |
||
"type": " |
"type": "string", |
||
"autovalue": " |
"autovalue": "", |
||
"suggested": true |
"suggested": true |
||
}, |
}, |
||
"craftable": { |
"craftable": { |
||
"label": "Craftable", |
"label": "Craftable", |
||
"description": "Is this item craftable |
"description": "Is this item craftable ?", |
||
⚫ | |||
"type": "boolean", |
"type": "boolean", |
||
"autovalue": "", |
"autovalue": "", |
||
" |
"suggested": true |
||
}, |
}, |
||
"manifest": { |
"manifest": { |
||
Line 87: | Line 114: | ||
"recipe": { |
"recipe": { |
||
"label": "Number of the line of code to the recipe", |
"label": "Number of the line of code to the recipe", |
||
"description": "The link to the line of code in the recipe book : https://gitlab.com/veloren/veloren/-/blob/master/assets/common/recipe_book.ron#L |
"description": "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", |
||
"example": "https://gitlab.com/veloren/veloren/-/blob/master/assets/common/recipe_book.ron#L350; for Plain salad's recipe type 350", |
"example": "https://gitlab.com/veloren/veloren/-/blob/master/assets/common/recipe_book.ron#L350; for Plain salad's recipe type 350", |
||
"type": "number", |
"type": "number", |
||
"suggested": true |
|||
}, |
|||
"voxtext": { |
|||
"label": "The text for the URL you want to display for the VOX file", |
|||
"type": "string", |
|||
"suggested": true |
|||
}, |
|||
"rontext": { |
|||
"label": "The text for the URL you want to display for the RON file", |
|||
"suggested": true |
"suggested": true |
||
} |
} |
||
Line 96: | Line 132: | ||
"paramOrder": [ |
"paramOrder": [ |
||
"description", |
"description", |
||
"type", |
|||
"quality", |
"quality", |
||
"craftable", |
"craftable", |
||
"vox", |
"vox", |
||
"voxtext", |
|||
"ron", |
"ron", |
||
"rontext", |
|||
"recipe", |
"recipe", |
||
"manifest" |
"manifest" |
||
] |
], |
||
"format": "block" |
|||
} |
} |
||
</templatedata> |
</templatedata> |
Latest revision as of 12:06, 24 July 2023
File:Veloren Infobox utility.png | |
Infobox utility | |
Statistics | |
Type | [[Utility#|]] |
Quality | |
Craftable | No |
Technical Information | |
.vox File | [ ] |
.ron File | [ ] |
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 |
Choose the type, 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 | suggested |
.vox File | vox | The file link as linked on gitlab.com/veloren/veloren.
| String | suggested |
The text for the URL you want to display for the VOX file | voxtext | no description | String | suggested |
.ron File | ron | The gitlab link to the .ron file.
| String | suggested |
The text for the URL you want to display for the RON file | rontext | no description | Unknown | 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 |