Template:Infobox consumable: Difference between revisions

Template page
Content added Content deleted
mNo edit summary
m (Added parameter type)
 
(8 intermediate revisions by the same user not shown)
Line 8: Line 8:
|-
|-
| colspan="2" class="infobox-title" style="font-size: 90%;" | Use
| colspan="2" class="infobox-title" style="font-size: 90%;" | Use
|-
| class="infobox-texttitle" style="padding-right:10px"| Type
| class="infobox-text" | {{{type|}}}
|-
|-
| class="infobox-texttitle" style="padding-right:10px"| In fight
| class="infobox-texttitle" style="padding-right:10px"| In fight
Line 17: Line 20:
{{#if: {{{buffduration|}}}
{{#if: {{{buffduration|}}}
|
|
{{!}} colspan="2" class="infobox-title" style="font-size: 90%;" {{!}} Buffs : {{{buffduration|}}} minutes
{{!}} colspan="2" class="infobox-title" style="font-size: 90%;" {{!}} Buff(s) : {{{buffduration|}}} minutes
{{!}}-
{{!}}-
{{#if: {{{buffkind1|}}}
{{#if: {{{buffkind1|}}}
|
|
{{!}} colspan="2" class="infobox-text" style="padding-left:10px" {{!}}* {{{buffstrength1|}}}% {{{buffkind1|}}}
{{!}} colspan="2" class="infobox-text" style="padding-left:10px" {{!}}
* {{{buffstrength1|}}}% {{{buffkind1|}}}
{{!}}-
{{!}}-
| }}
}}
{{#if: {{{buffkind2|}}}
{{#if: {{{buffkind2|}}}
|
|
{{!}} colspan="2" class="infobox-text" style="padding-left:10px" {{!}}* {{{buffstrength2|}}}% {{{buffkind2|}}}
{{!}} colspan="2" class="infobox-text" style="padding-left:10px" {{!}}
* {{{buffstrength2|}}}% {{{buffkind2|}}}
{{!}}-
{{!}}-
| }}
}}
{{#if: {{{buffkind3|}}}
{{#if: {{{buffkind3|}}}
|
|
{{!}} colspan="2" class="infobox-text" style="padding-left:10px" {{!}}* {{{buffstrength3|}}}% {{{buffkind3|}}}
{{!}} colspan="2" class="infobox-text" style="padding-left:10px" {{!}}
* {{{buffstrength3|}}}% {{{buffkind3|}}}
{{!}}-
{{!}}-
|}}
}}
|
|
{{!}} colspan="2" class="infobox-title" style="font-size: 90%;" {{!}} Buffs
{{!}} colspan="2" class="infobox-title" style="font-size: 90%;" {{!}} Buff(s)
{{!}}-
{{!}}-
{{!}} colspan="2" text-align:center;" {{!}} {{unknown}}
{{!}} colspan="2" text-align:center;" {{!}} {{unknown}}
Line 46: Line 52:
|
|
{{!}} class="infobox-texttitle" style="padding-right:10px" {{!}} .vox File
{{!}} class="infobox-texttitle" style="padding-right:10px" {{!}} .vox File
{{!}} class="infobox-text" {{!}} {{{vox|}}}
{{!}} class="infobox-text" {{!}} [{{{vox|}}} {{{voxlabel|}}}]
{{!}}-
{{!}}-
|}}
}}
{{#if: {{{ron|}}}
{{#if: {{{ron|}}}
|
|
{{!}} class="infobox-texttitle" style="padding-right:10px" {{!}} .ron File
{{!}} class="infobox-texttitle" style="padding-right:10px" {{!}} .ron File
{{!}} class="infobox-text" {{!}} {{{ron|}}}
{{!}} class="infobox-text" {{!}} [{{{ron|}}} {{{ronlabel|}}}]
{{!}}-
{{!}}-
|
|
Line 63: Line 69:
{{!}} class="infobox-text" {{!}} [https://gitlab.com/veloren/veloren/-/blob/master/assets/common/recipe_book.ron#L{{{recipe|}}} L{{{recipe|}}}]
{{!}} class="infobox-text" {{!}} [https://gitlab.com/veloren/veloren/-/blob/master/assets/common/recipe_book.ron#L{{{recipe|}}} L{{{recipe|}}}]
{{!}}-
{{!}}-
|}}
}}
{{#if: {{{manifest|}}}
{{#if: {{{manifest|}}}
|
|
Line 69: Line 75:
{{!}} class="infobox-text" {{!}} {{{manifest|}}}
{{!}} class="infobox-text" {{!}} {{{manifest|}}}
{{!}}-
{{!}}-
|}}
}}
|}

[[Category:Consumables]]
[[Category:Consumables]]


Line 125: Line 131:
"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
},
},
Line 181: Line 187:
},
},
"buffstrength1": {
"buffstrength1": {
"suggested": true
"suggested": true,
"type": "number"
},
},
"buffkind2": {
"buffkind2": {
Line 226: Line 233:
"example": "12",
"example": "12",
"type": "number",
"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 244: Line 262:
"buffstrength3",
"buffstrength3",
"ron",
"ron",
"ronlabel",
"recipe",
"recipe",
"vox",
"vox",
"voxlabel",
"manifest"
"manifest"
],
],

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.