Content added Content deleted
No edit summary |
m (Added parameter type) |
||
(38 intermediate revisions by 3 users not shown) | |||
Line 1:
<onlyinclude>{
{| class="infobox floatright"
| colspan="2" | [[Image:Veloren_{{PAGENAME}}.png|class=infobox-image|200x200px|link=]]
|-
| colspan="2" class="infobox-title" style="font-size: 150%" | {{
|-
| 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%;" |
|-
|
| class="infobox-text" | {{{type|}}}
|-
| class="infobox-texttitle" style="padding-right:10px"|
| class="infobox-text" | {{#ifexpr: {
|-
| class="infobox-texttitle" style="padding-right:10px"|
| class="infobox-text" | {{#ifexpr: {
|-
{{#if: {{{buffduration|}}}
|
{{!}} colspan="2" class="infobox-title" style="font-size: 90%;" {{!}} Buff(s) : {{{buffduration|}}} minutes
{{!}}-
{{#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
|-
{{#if: {{{vox|}}}
|
{{!}} class="infobox-texttitle" style="padding-right:10px" {{!}} .vox File
{{!}}-
}}
{{#if: {{{ron|}}}
|
{{!}} class="infobox-texttitle" style="padding-right:10px" {{!}} .ron File
{{!}} 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>
<templatedata>
{
"params": {
"description": {
"label": "Description",
Line 65 ⟶ 95:
"label": "Type",
"description": "The type of consumable.",
"example": "
"type": "string",
"autovalue": "{{unknown}}",
"required": true,
"suggestedvalues": [
"Potions",
"Drinks",
"Breads",
"Cheeses & butter",
"Vegetables",
"Salads",
"Dishes",
"Raw Meats",
"Cooked Meats",
"Skewers",
"Cakes"
]
},
"quality": {
Line 74 ⟶ 117:
"description": "The quality colour of the consumable.",
"example": "{{Common}}",
"type": "
"autovalue": "{{unknows}}",
"required": true,
"suggestedvalues": [
"{{Low}}",
"
"{{Moderate}}",
"{{High}}",
"{{Epic}}",
"{{Legendary}}"
]
},
"vox": {
"label": ".vox File",
"description": "The file link as linked on gitlab.com/veloren/veloren
"example": "
"type": "url",
"autovalue": "
"suggested": true
},
"ron": {
"label": ".ron File",
"description": "The gitlab link to the .ron file
"example": "
"type": "
"autovalue": "
"suggested": true
},
"craftable": {
"label": "Is Craftable",
"description": "Is this item craftable
"type": "boolean",
"
"suggested": true
},
"manifest": {
Line 112 ⟶ 156:
"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]",
"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
}
Line 117 ⟶ 249:
"description": "An infobox template used for all types of consumables in Veloren.",
"paramOrder": [
"description",
"type",
"quality",
"
"craftable",
"
"buffkind1",
"buffstrength1",
"buffkind2",
"buffstrength2",
"buffkind3",
"buffstrength3",
"ron",
"ronlabel",
"recipe",
"vox",
"voxlabel",
"manifest"
],
Line 131 ⟶ 271:
}
</templatedata>
[[Category:Templates]]
</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 |