Template:Infobox utility: Difference between revisions

Template page
Content added Content deleted
m (Changed quality as a droplist. set craftable as bolean.)
mNo edit summary
 
(9 intermediate revisions by the same user not shown)
Line 13: Line 13:
|-
|-
| class="infobox-texttitle" | Type
| class="infobox-texttitle" | Type
| class="infobox-text" | {{{type|}}}
| class="infobox-text" style="padding-left:10px"| [[Utility#{{{type|}}}|{{{type|}}}]]
|-
|-
| class="infobox-texttitle" | [[Quality]]
| class="infobox-texttitle" | [[Quality]]
| class="infobox-text" | {{{quality|}}}
| class="infobox-text" style="padding-left:10px"| {{{quality|}}}
|-
|-
| class="infobox-texttitle" | Craftable
| class="infobox-texttitle" | Craftable
| class="infobox-text" | {{#ifexpr: {{{craftable|}}} | Yes | No}}
| class="infobox-text" style="padding-left:10px"| {{#ifexpr: {{{craftable|}}} | Yes | No}}
|-
|-
| colspan="2" style="height: 10px;" |
| colspan="2" style="height: 10px;" |
Line 26: Line 26:
|-
|-
| class="infobox-texttitle" | .vox File
| class="infobox-texttitle" | .vox File
| class="infobox-text" | {{{vox|}}}
| class="infobox-text" style="padding-left:10px" | [{{{vox|}}} {{{voxtext|}}}]
|-
|-
| class="infobox-texttitle" | .ron File
| class="infobox-texttitle" | .ron File
| class="infobox-text" | {{{ron|}}}
| class="infobox-text" style="padding-left:10px" | [{{{ron|}}} {{{rontext|}}}]
|-
|-
{{#ifexpr: {{{craftable|}}}
| class="infobox-texttitle" | Recipe
|
| class="infobox-text" | {{#if:{{{recipe|}}}|[https://gitlab.com/veloren/veloren/-/blob/master/assets/common/recipe_book.ron#L{{{recipe|}}}]|}}
{{!}} class="infobox-texttitle" {{!}} Recipe:
{{!}} class="infobox-text" style="padding-left:10px" {{!}} {{#if: {{{recipe|}}}|[https://gitlab.com/veloren/veloren/-/blob/master/assets/common/recipe_book.ron#L{{{recipe|}}} L{{{recipe|}}}]|}}
{{!}}-
}}
|}
|}
<includeonly>
<includeonly>
Line 51: Line 55:
},
},
"type": {
"type": {
"label": "Type of the item, as declared in the .ron file (kind:<Type>)",
"label": "Choose the type, as declared in the .ron file (kind:<Type>)",
"description": "The type of the utility item. Link to the wiki page if one exists.",
"description": "The type of the utility item.",
"example": "Throwable or [[Gliders]]",
"type": "string",
"type": "string",
"autovalue": "",
"autovalue": "",
"required": true
"required": true,
"suggestedvalues": [
"Bomb",
"Collar",
"Fireworks",
"Keys",
"Lanterns"
]
},
},
"quality": {
"quality": {
Line 75: Line 85:
"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 Veloren",
"type": "url",
"type": "string",
"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 94: Line 104:
"type": "boolean",
"type": "boolean",
"autovalue": "",
"autovalue": "",
"required": true
"suggested": true
},
},
"manifest": {
"manifest": {
Line 107: Line 117:
"example": "https://gitlab.com/veloren/veloren/-/blob/master/assets/common/recipe_book.ron#L350; for Plain salad's recipe type 350",
"example": "https://gitlab.com/veloren/veloren/-/blob/master/assets/common/recipe_book.ron#L350; for Plain salad's recipe type 350",
"type": "number",
"type": "number",
"suggested": true
},
"voxtext": {
"label": "The text for the URL you want to display for the VOX file",
"type": "string",
"suggested": true
},
"rontext": {
"label": "The text for the URL you want to display for the RON file",
"suggested": true
"suggested": true
}
}
Line 117: Line 136:
"craftable",
"craftable",
"vox",
"vox",
"voxtext",
"ron",
"ron",
"rontext",
"recipe",
"recipe",
"manifest"
"manifest"
]
],
"format": "block"
}
}
</templatedata>
</templatedata>

Latest revision as of 12:06, 24 July 2023

File:Veloren Infobox utility.png
Infobox utility
Statistics
Type [[Utility#|]]
Quality
Craftable No
Technical Information
.vox File [ ]
.ron File [ ]


An infobox template used for all types of utility items. Not to be confused with consumables or ingredients, this is for items that do not heal and are not used in crafting recipes.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Descriptiondescription

The description of the item as given on the tooltip when you hover over it.

Example
"A highly explosive device, demolitionists adore them!"
Auto value
""
Stringrequired
Choose the type, as declared in the .ron file (kind:<Type>)type

The type of the utility item.

Suggested values
Bomb Collar Fireworks Keys Lanterns
Auto value
Stringrequired
Qualityquality

The quality color of the item.

Suggested values
{{Low}} {{Common}} {{Moderate}} {{Epic}} {{Legendary}}
Example
{{Common}}
Auto value
Stringrequired
Craftablecraftable

Is this item craftable ?

Auto value
Booleansuggested
.vox Filevox

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

Example
www.veloren.net Veloren
Auto value
Stringsuggested
The text for the URL you want to display for the VOX filevoxtext

no description

Stringsuggested
.ron Fileron

The gitlab link to the .ron file.

Example
www.veloren.net
Auto value
Stringsuggested
The text for the URL you want to display for the RON filerontext

no description

Unknownsuggested
Number of the line of code to the reciperecipe

The link to the line of code in the recipe book : https://gitlab.com/veloren/veloren/-/blob/master/assets/common/recipe_book.ron#L*** where *** is a number

Example
https://gitlab.com/veloren/veloren/-/blob/master/assets/common/recipe_book.ron#L350; for Plain salad's recipe type 350
Numbersuggested
Sprite Manifestmanifest

The link to the line of code in the sprite manifest

Example
[https://gitlab.com/veloren/veloren/-/blob/master/assets/voxygen/voxel/sprite_manifest.ron#L2217 sprite_mani2217 beehive #2217]
Unknownsuggested
Cookies help us deliver our services. By using our services, you agree to our use of cookies.