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 ingredient base: Difference between revisions

Template page
Content added Content deleted
No edit summary
mNo edit summary
 
(13 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<onlyinclude>{| class="infobox floatright .skin-citizen-dark"
<onlyinclude>{{Navbox}}
{| class="infobox floatright .skin-citizen-dark"
| colspan="2" | [[Image:{{{image|}}}|class=infobox-image|link=]]
| colspan="2" | [[Image:Veloren_{{PAGENAME}}.png|120px|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 10: Line 11:
| colspan="2" style="height: 10px;" |
| colspan="2" style="height: 10px;" |
|-
|-
| class="infobox-texttitle" | In-game Sprite
| class="infobox-texttitle" | In-Game Sprite
| class="infobox-text" | {{{In-game sprite. Use 'none' if not available.|}}}
| class="infobox-text" | (coming soon, until we solve page with broken link)
|-
|-
| class="infobox-texttitle" | Type
| class="infobox-texttitle" | Type
| class="infobox-text" | {{{type|}}}
| class="infobox-text" | [[Ingredients_Lists#{{{type|}}}|{{{type|}}}]]
|-
|-
| class="infobox-texttitle" | [[Quality]]
| class="infobox-texttitle" | [[Quality]]
Line 37: Line 38:
| class="infobox-texttitle" | Spawn Rules
| class="infobox-texttitle" | Spawn Rules
| class="infobox-text" | {{{spawnrules|}}}
| class="infobox-text" | {{{spawnrules|}}}
|}
|}</onlyinclude>
<includeonly>
[[Category:Ingredients]]
</includeonly>
</onlyinclude>
<noinclude>
<noinclude>
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"image": {
"label": "Image",
"description": "The image of the consumable. Image is resized to 50px.",
"example": "item_honey.png",
"type": "wiki-file-name",
"default": "image.png",
"required": true
},
"title": {
"label": "Title",
"description": "The name of the consumable in English.",
"example": "Honey",
"type": "string",
"required": true
},
"description": {
"description": {
"label": "Description",
"label": "Description",
Line 66: Line 56:
},
},
"type": {
"type": {
"label": "Type",
"label": "The type of ingredient (from [[Ingredients_Lists]]): ",
"description": "Choose one of its subcategory : Animal Materials, Raw Meats, Feathers, Fibers, Vines, Miscs, Hides, Logs, Plants, Flowers, Ores, Gems, Cheese, Dishes, Drinks, Cooked Meats, Sticks, Leathers, Ingots, Potions, Textiles",
"description": "The type of consumable.",
"example": "Basic",
"example": "Drinks",
"type": "string",
"type": "string",
"autovalue": "",
"autovalue": "",
Line 119: Line 109:
"description": "A modified infobox for ingredients that doesn't have the 50px limitation on the image..",
"description": "A modified infobox for ingredients that doesn't have the 50px limitation on the image..",
"paramOrder": [
"paramOrder": [
"image",
"title",
"description",
"description",
"type",
"type",
Line 129: Line 117:
"manifest",
"manifest",
"spawnrules"
"spawnrules"
]
],
"format": "block"
}
}
</templatedata>
</templatedata>
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 16:37, 19 October 2022

Infobox ingredient base
Statistics
In-Game Sprite (coming soon, until we solve page with broken link)
Type [[Ingredients_Lists#|]]
Quality
Craftable
Technical Information
.vox File
.ron File
Sprite Manifest
Spawn Rules


A modified infobox for ingredients that doesn't have the 50px limitation on the image..

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Descriptiondescription

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

Example
"From a beehive."
Auto value
""
Stringrequired
The type of ingredient (from [[Ingredients_Lists]]): type

Choose one of its subcategory : Animal Materials, Raw Meats, Feathers, Fibers, Vines, Miscs, Hides, Logs, Plants, Flowers, Ores, Gems, Cheese, Dishes, Drinks, Cooked Meats, Sticks, Leathers, Ingots, Potions, Textiles

Example
Drinks
Auto value
Stringrequired
Qualityquality

The quality colour of the consumable.

Example
{{Common}}
Auto value
{{}}
Templaterequired
Craftablecraftable

Is this item craftable. Yes or No.

Example
Yes
Auto value
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 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
Spawn Rulesspawnrules

The link to the line in world/src/layer/scatter.rs

Unknownsuggested
Cookies help us deliver our services. By using our services, you agree to our use of cookies.