Toggle menu
1.3K
1.7K
703
23.9K
Veloren Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox consumable: Difference between revisions

Template page
Content added Content deleted
No edit summary
m (Added parameter type)
 
(38 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<onlyinclude>{| class="infobox floatright"
<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%" | {{{title|}}}
| 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%;" | Statistics
| colspan="2" class="infobox-title" style="font-size: 90%;" | Use
|-
|-
| colspan="2" style="height: 10px;" |
| class="infobox-texttitle" style="padding-right:10px"| Type
|-
| class="infobox-texttitle" | Type
| class="infobox-text" | {{{type|}}}
| class="infobox-text" | {{{type|}}}
|-
|-
| class="infobox-texttitle" | [[Quality]]
| class="infobox-texttitle" style="padding-right:10px"| In fight
| class="infobox-text" | {{{quality|}}}
| class="infobox-text" | {{#ifexpr: {{{infight|}}} | Yes | No }}
|-
|-
| class="infobox-texttitle" | Heals/sec
| class="infobox-texttitle" style="padding-right:10px"| Craftable
| class="infobox-text" | {{{heals|}}}
| 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-texttitle" | .ron 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": "Basic",
"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": "wiki-template-name",
"type": "string",
"autovalue": "{{}}",
"autovalue": "{{unknows}}",
"required": true
"required": true,
"suggestedvalues": [
},
"{{Low}}",
"heals": {
"label": "Heals/sec",
"{{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. Place the link in the [[]] and add a space after the url with the text you want to display in the infobox.",
"description": "The file link as linked on gitlab.com/veloren/veloren.",
"example": "[[www.veloren.net Veloren]]",
"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. Place the url in the [[]] with a space after the text. Then add what you want to show in the infobox.",
"description": "The gitlab link to the .ron file.",
"example": "[[www.veloren.net Veloren]]",
"example": "www.veloren.net",
"type": "url",
"type": "string",
"autovalue": "[[]]",
"autovalue": "",
"suggested": true
"suggested": true
},
},
"craftable": {
"craftable": {
"label": "Is Craftable",
"label": "Is Craftable",
"description": "Is this item craftable. Yes/No",
"description": "Is this item craftable ?",
"example": "Yes",
"type": "boolean",
"type": "boolean",
"required": true
"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",
"heals",
"infight",
"craftable",
"craftable",
"vox",
"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.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Descriptiondescription

The description of the consumable as given on the tooltip when you hover over it. Place it in " ".

Example
"Red and Juicy"
Auto value
""
Stringrequired
Typetype

The type of consumable.

Suggested values
Potions Drinks Breads Cheeses & butter Vegetables Salads Dishes Raw Meats Cooked Meats Skewers Cakes
Example
Drinks
Auto value
{{unknown}}
Stringrequired
Qualityquality

The quality colour of the consumable.

Suggested values
{{Low}} {{Common}} {{Moderate}} {{High}} {{Epic}} {{Legendary}}
Example
{{Common}}
Auto value
{{unknows}}
Stringrequired
Can we use it during a battle ?infight

no description

Auto value
0
Booleansuggested
Is Craftablecraftable

Is this item craftable ?

Auto value
0
Booleansuggested
Duration of the buffs (in minute and only number)buffduration

How long those buff last ?

Example
12
Numbersuggested
Select the buff type :buffkind1

no description

Suggested values
atk speed crit chance energy regen max HP max MP poise power strength
Stringsuggested
buffstrength1buffstrength1

no description

Numbersuggested
Select the buff type :buffkind2

no description

Suggested values
atk speed crit chance energy regen max HP max MP poise power strength
Stringsuggested
buffstrength2buffstrength2

no description

Numbersuggested
Select the buff type :buffkind3

no description

Suggested values
atk speed crit chance energy regen max HP max MP poise power strength
Stringsuggested
buffstrength3buffstrength3

no description

Numbersuggested
.ron Fileron

The gitlab link to the .ron file.

Example
www.veloren.net
Auto value
Stringsuggested
The label for the Gitlab link of the RON fileronlabel

no description

Example
dwarven_cheese.ron
Stringsuggested
The line of code to the recipe (number only)recipe

The code where we can find the recipe in number

Example
315
Numbersuggested
.vox Filevox

The file link as linked on gitlab.com/veloren/veloren.

Example
www.veloren.net
Auto value
URLsuggested
The label for the Gitlab link of the VOX filevoxlabel

no description

Stringsuggested
Sprite Manifestmanifest

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]
Unknownsuggested
Cookies help us deliver our services. By using our services, you agree to our use of cookies.