Toggle menu
1.3K
1.7K
705
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
m (Add templates category and automation of category on every consumable when the template is used)
(Removed image and title parameter. They are automated with {{PAGENAME}})
Line 1: Line 1:
<onlyinclude>{| class="infobox floatright"
<onlyinclude>{| class="infobox floatright"
| colspan="2" | [[Image:{{{image|}}}|class=infobox-image|link=]]
| colspan="2" | [[Image:Veloren_{{PAGENAME}}.png|class=infobox-image|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|}}}
Line 43: Line 43:
{
{
"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 121: Line 106:
"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",

Revision as of 14:52, 26 September 2022

Infobox consumable
Statistics
Type
Quality
Heals/sec
Craftable
Technical Information
.vox File
.ron File
Sprite Manifest


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.

Example
Basic
Auto value
Stringrequired
Qualityquality

The quality colour of the consumable.

Example
{{Common}}
Auto value
{{}}
Templaterequired
Heals/secheals

How much the consumable heals per second as given on the tooltip.

Example
Heals 10 [[Image:health.png]] over 10 seconds.
Auto value
[[Image:health.png]]
Unknownrequired
Is Craftablecraftable

Is this item craftable. Yes/No

Example
Yes
Booleanrequired
.vox Filevox

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.

Example
[[www.veloren.net Veloren]]
Auto value
[[]]
URLsuggested
.ron Fileron

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.

Example
[[www.veloren.net Veloren]]
Auto value
[[]]
URLsuggested
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.