Content added Content deleted
No edit summary |
m (Added parameter type) |
||
(38 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude>{ |
<onlyinclude>{{Navbox}} |
||
{| class="infobox floatright" |
|||
| colspan="2" | [[Image:{{{image|}}}|class=infobox-image|link=]] |
|||
| colspan="2" | [[Image:Veloren_{{PAGENAME}}.png|class=infobox-image|200x200px|link=]] |
|||
|- |
|- |
||
| colspan="2" class="infobox-title" style="font-size: 150%" | {{ |
| colspan="2" class="infobox-title" style="font-size: 150%" | {{PAGENAME}} |
||
|- |
|- |
||
| colspan="2" class="infobox-text"" style="text-align: center; font-weight: normal; font-size: 90%; font-style: italic;" | {{{description|}}} |
| colspan="2" class="infobox-text"" style="text-align: center; font-weight: normal; font-size: 90%; font-style: italic;" | {{{description|}}} |
||
|- |
|- |
||
| colspan="2" class="infobox-title" style="font-size: 90%;" | |
| colspan="2" class="infobox-title" style="font-size: 90%;" | Use |
||
|- |
|- |
||
| |
| class="infobox-texttitle" style="padding-right:10px"| Type |
||
|- |
|||
| class="infobox-texttitle" | Type |
|||
| class="infobox-text" | {{{type|}}} |
| class="infobox-text" | {{{type|}}} |
||
|- |
|- |
||
| class="infobox-texttitle" | |
| class="infobox-texttitle" style="padding-right:10px"| In fight |
||
| class="infobox-text" | {{{ |
| class="infobox-text" | {{#ifexpr: {{{infight|}}} | Yes | No }} |
||
|- |
|- |
||
| class="infobox-texttitle" | |
| class="infobox-texttitle" style="padding-right:10px"| Craftable |
||
| class="infobox-text" | {{{ |
| class="infobox-text" | {{#ifexpr: {{{craftable|}}}| Yes | No}} |
||
|- |
|- |
||
{{#if: {{{buffduration|}}} |
|||
| class="infobox-texttitle" | Craftable |
|||
| |
|||
| class="infobox-text" | {{{craftable|}}} |
|||
{{!}} colspan="2" class="infobox-title" style="font-size: 90%;" {{!}} Buff(s) : {{{buffduration|}}} minutes |
|||
|- |
|||
{{!}}- |
|||
| colspan="2" style="height: 10px;" | |
|||
{{#if: {{{buffkind1|}}} |
|||
| |
|||
{{!}} colspan="2" class="infobox-text" style="padding-left:10px" {{!}} |
|||
* {{{buffstrength1|}}}% {{{buffkind1|}}} |
|||
{{!}}- |
|||
}} |
|||
{{#if: {{{buffkind2|}}} |
|||
| |
|||
{{!}} colspan="2" class="infobox-text" style="padding-left:10px" {{!}} |
|||
* {{{buffstrength2|}}}% {{{buffkind2|}}} |
|||
{{!}}- |
|||
}} |
|||
{{#if: {{{buffkind3|}}} |
|||
| |
|||
{{!}} colspan="2" class="infobox-text" style="padding-left:10px" {{!}} |
|||
* {{{buffstrength3|}}}% {{{buffkind3|}}} |
|||
{{!}}- |
|||
}} |
|||
| |
|||
{{!}} colspan="2" class="infobox-title" style="font-size: 90%;" {{!}} Buff(s) |
|||
{{!}}- |
|||
{{!}} colspan="2" text-align:center;" {{!}} {{unknown}} |
|||
{{!}}- |
|||
}} |
|||
|- |
|- |
||
| colspan="2" class="infobox-title" | Technical Information |
| colspan="2" class="infobox-title" | Technical Information |
||
|- |
|- |
||
{{#if: {{{vox|}}} |
|||
| class="infobox-texttitle" | .vox File |
|||
| |
|||
| class="infobox-text" | {{{vox|}}} |
|||
{{!}} class="infobox-texttitle" style="padding-right:10px" {{!}} .vox File |
|||
|- |
|||
{{!}} class="infobox-text" {{!}} [{{{vox|}}} {{{voxlabel|}}}] |
|||
{{!}}- |
|||
| class="infobox-text" | {{{ron|}}} |
|||
}} |
|||
|- |
|||
{{#if: {{{ron|}}} |
|||
| class="infobox-texttitle" | Sprite Manifest |
|||
| |
|||
| class="infobox-text" | {{{manifest|}}} |
|||
{{!}} class="infobox-texttitle" style="padding-right:10px" {{!}} .ron File |
|||
|}</onlyinclude> |
|||
{{!}} class="infobox-text" {{!}} [{{{ron|}}} {{{ronlabel|}}}] |
|||
{{!}}- |
|||
| |
|||
{{!}} colspan="2" style="text-align:center" {{!}} {{unknown}} |
|||
{{!}}- |
|||
}} |
|||
{{#if: {{{recipe|}}} |
|||
| |
|||
{{!}} class="infobox-texttitle" style="padding-right:10px" {{!}} Recipe |
|||
{{!}} class="infobox-text" {{!}} [https://gitlab.com/veloren/veloren/-/blob/master/assets/common/recipe_book.ron#L{{{recipe|}}} L{{{recipe|}}}] |
|||
{{!}}- |
|||
}} |
|||
{{#if: {{{manifest|}}} |
|||
| |
|||
{{!}} class="infobox-texttitle" style="padding-right:10px" {{!}} Sprite Manifest |
|||
{{!}} class="infobox-text" {{!}} {{{manifest|}}} |
|||
{{!}}- |
|||
}} |
|||
|} |
|||
[[Category:Consumables]] |
|||
</onlyinclude> |
|||
<noinclude> |
<noinclude> |
||
<templatedata> |
<templatedata> |
||
{ |
{ |
||
"params": { |
"params": { |
||
"image": { |
|||
"label": "Image", |
|||
"description": "The image of the consumable. Image is resized to 50px.", |
|||
"example": "apple.png", |
|||
"type": "wiki-file-name", |
|||
"default": "image.png", |
|||
"required": true |
|||
}, |
|||
"title": { |
|||
"label": "Title", |
|||
"description": "The name of the consumable in English.", |
|||
"example": "Apple", |
|||
"type": "string", |
|||
"required": true |
|||
}, |
|||
"description": { |
"description": { |
||
"label": "Description", |
"label": "Description", |
||
Line 65: | Line 95: | ||
"label": "Type", |
"label": "Type", |
||
"description": "The type of consumable.", |
"description": "The type of consumable.", |
||
"example": " |
"example": "Drinks", |
||
"type": "string", |
"type": "string", |
||
"autovalue": "", |
"autovalue": "{{unknown}}", |
||
"required": true |
"required": true, |
||
"suggestedvalues": [ |
|||
"Potions", |
|||
"Drinks", |
|||
"Breads", |
|||
"Cheeses & butter", |
|||
"Vegetables", |
|||
"Salads", |
|||
"Dishes", |
|||
"Raw Meats", |
|||
"Cooked Meats", |
|||
"Skewers", |
|||
"Cakes" |
|||
] |
|||
}, |
}, |
||
"quality": { |
"quality": { |
||
Line 74: | Line 117: | ||
"description": "The quality colour of the consumable.", |
"description": "The quality colour of the consumable.", |
||
"example": "{{Common}}", |
"example": "{{Common}}", |
||
"type": " |
"type": "string", |
||
"autovalue": "{{}}", |
"autovalue": "{{unknows}}", |
||
"required": true |
"required": true, |
||
"suggestedvalues": [ |
|||
}, |
|||
"{{Low}}", |
|||
"heals": { |
|||
" |
"{{Common}}", |
||
"{{Moderate}}", |
|||
"description": "How much the consumable heals per second as given on the tooltip.", |
|||
"{{High}}", |
|||
"example": "Heals 10 [[Image:health.png]] over 10 seconds.", |
|||
"{{Epic}}", |
|||
"autovalue": "[[Image:health.png]]", |
|||
"{{Legendary}}" |
|||
"required": true |
|||
] |
|||
}, |
}, |
||
"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", |
||
"type": "url", |
"type": "url", |
||
"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": "Is Craftable", |
"label": "Is Craftable", |
||
"description": "Is this item craftable |
"description": "Is this item craftable ?", |
||
"example": "Yes", |
|||
"type": "boolean", |
"type": "boolean", |
||
" |
"autovalue": "0", |
||
"suggested": true |
|||
}, |
}, |
||
"manifest": { |
"manifest": { |
||
Line 112: | Line 156: | ||
"description": "The link to the line in the sprite manifest.", |
"description": "The link to the line in the sprite manifest.", |
||
"example": "[https://gitlab.com/veloren/veloren/-/blob/master/assets/voxygen/voxel/sprite_manifest.ron#L458 #L458]", |
"example": "[https://gitlab.com/veloren/veloren/-/blob/master/assets/voxygen/voxel/sprite_manifest.ron#L458 #L458]", |
||
"suggested": true |
|||
}, |
|||
"infight": { |
|||
"label": "Can we use it during a battle ?", |
|||
"type": "boolean", |
|||
"suggested": true, |
|||
"autovalue": "0" |
|||
}, |
|||
"recipe": { |
|||
"label": "The line of code to the recipe (number only)", |
|||
"description": "The code where we can find the recipe in number", |
|||
"example": "315", |
|||
"type": "number", |
|||
"suggested": true |
|||
}, |
|||
"buffkind1": { |
|||
"label": "Select the buff type :", |
|||
"type": "string", |
|||
"suggestedvalues": [ |
|||
"atk speed", |
|||
"crit chance", |
|||
"energy regen", |
|||
"max HP", |
|||
"max MP", |
|||
"poise", |
|||
"power", |
|||
"strength" |
|||
], |
|||
"suggested": true |
|||
}, |
|||
"buffstrength1": { |
|||
"suggested": true, |
|||
"type": "number" |
|||
}, |
|||
"buffkind2": { |
|||
"label": "Select the buff type :", |
|||
"type": "string", |
|||
"suggestedvalues": [ |
|||
"atk speed", |
|||
"crit chance", |
|||
"energy regen", |
|||
"max HP", |
|||
"max MP", |
|||
"poise", |
|||
"power", |
|||
"strength" |
|||
], |
|||
"suggested": true |
|||
}, |
|||
"buffstrength2": { |
|||
"type": "number", |
|||
"suggested": true |
|||
}, |
|||
"buffkind3": { |
|||
"label": "Select the buff type :", |
|||
"type": "string", |
|||
"suggestedvalues": [ |
|||
"atk speed", |
|||
"crit chance", |
|||
"energy regen", |
|||
"max HP", |
|||
"max MP", |
|||
"poise", |
|||
"power", |
|||
"strength" |
|||
], |
|||
"suggested": true |
|||
}, |
|||
"buffstrength3": { |
|||
"type": "number", |
|||
"suggested": true |
|||
}, |
|||
"buffduration": { |
|||
"label": "Duration of the buffs (in minute and only number)", |
|||
"description": "How long those buff last ?", |
|||
"example": "12", |
|||
"type": "number", |
|||
"suggested": true |
|||
}, |
|||
"voxlabel": { |
|||
"label": "The label for the Gitlab link of the VOX file", |
|||
"type": "string", |
|||
"suggested": true |
|||
}, |
|||
"ronlabel": { |
|||
"label": "The label for the Gitlab link of the RON file", |
|||
"example": "dwarven_cheese.ron", |
|||
"type": "string", |
|||
"suggested": true |
"suggested": true |
||
} |
} |
||
Line 117: | Line 249: | ||
"description": "An infobox template used for all types of consumables in Veloren.", |
"description": "An infobox template used for all types of consumables in Veloren.", |
||
"paramOrder": [ |
"paramOrder": [ |
||
"image", |
|||
"title", |
|||
"description", |
"description", |
||
"type", |
"type", |
||
"quality", |
"quality", |
||
" |
"infight", |
||
"craftable", |
"craftable", |
||
" |
"buffduration", |
||
"buffkind1", |
|||
"buffstrength1", |
|||
"buffkind2", |
|||
"buffstrength2", |
|||
"buffkind3", |
|||
"buffstrength3", |
|||
"ron", |
"ron", |
||
"ronlabel", |
|||
"recipe", |
|||
"vox", |
|||
"voxlabel", |
|||
"manifest" |
"manifest" |
||
], |
], |
||
Line 131: | Line 271: | ||
} |
} |
||
</templatedata> |
</templatedata> |
||
[[Category:Templates]] |
|||
</noinclude> |
</noinclude> |
Latest revision as of 13:30, 9 August 2023
![]() | |
Infobox consumable | |
Use | |
Type | |
In fight | No |
Craftable | No |
Buff(s) | |
Unknown edit | |
Technical Information | |
Unknown edit |
An infobox template used for all types of consumables in Veloren.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Description | description | The description of the consumable as given on the tooltip when you hover over it. Place it in " ".
| String | required |
Type | type | The type of consumable.
| String | required |
Quality | quality | The quality colour of the consumable.
| String | required |
Can we use it during a battle ? | infight | no description
| Boolean | suggested |
Is Craftable | craftable | Is this item craftable ?
| Boolean | suggested |
Duration of the buffs (in minute and only number) | buffduration | How long those buff last ?
| Number | suggested |
Select the buff type : | buffkind1 | no description
| String | suggested |
buffstrength1 | buffstrength1 | no description | Number | suggested |
Select the buff type : | buffkind2 | no description
| String | suggested |
buffstrength2 | buffstrength2 | no description | Number | suggested |
Select the buff type : | buffkind3 | no description
| String | suggested |
buffstrength3 | buffstrength3 | no description | Number | suggested |
.ron File | ron | The gitlab link to the .ron file.
| String | suggested |
The label for the Gitlab link of the RON file | ronlabel | no description
| String | suggested |
The line of code to the recipe (number only) | recipe | The code where we can find the recipe in number
| Number | suggested |
.vox File | vox | The file link as linked on gitlab.com/veloren/veloren.
| URL | suggested |
The label for the Gitlab link of the VOX file | voxlabel | no description | String | suggested |
Sprite Manifest | manifest | The link to the line in the sprite manifest.
| Unknown | suggested |