Template:Infobox ingredient: Difference between revisions

Template page
Content added Content deleted
mNo edit summary
mNo edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude>{| class="infobox floatright .skin-citizen-dark"
<onlyinclude>{{Navbox}}
{| class="infobox floatright .skin-citizen-dark" style="width:200px"
| colspan="2" class="infobox-image" | [[Image:Veloren_{{PAGENAME}}.png|class=infobox-image|200x200px|link=]]
| colspan="2" class="infobox-image" | [[Image:Veloren_{{PAGENAME}}.png|class=infobox-image|200x200px|link=]]
|-
|-
Line 10: Line 11:
| colspan="2" style="height: 10px;" |
| colspan="2" style="height: 10px;" |
|-
|-
| class="infobox-texttitle" | Type
| class="infobox-texttitle" style="padding-right:10px"| Type
| class="infobox-text" | [[Ingredients_Lists#{{{type|}}}|{{{type|}}}]]
| class="infobox-text" | [[Ingredients_Lists#{{{type|}}}|{{{type|}}}]]
|-
|-
| class="infobox-texttitle" | [[Quality]]
| class="infobox-texttitle" style="padding-right:10px"| [[Quality]]
| class="infobox-text" | {{{quality|}}}
| class="infobox-text" | {{{quality|}}}
|-
|-
| class="infobox-texttitle" | Craftable
| class="infobox-texttitle" style="padding-right:10px"| Craftable
| class="infobox-text" | {{{craftable|}}}
| class="infobox-text" | {{#ifexpr: {{{craftable|}}} | Yes | No}}
|-
|-
| colspan="2" style="height: 10px;" |
| colspan="2" style="height: 10px;" |
Line 23: Line 24:
| colspan="2" class="infobox-title" | Technical Information
| colspan="2" class="infobox-title" | Technical Information
|-
|-
| class="infobox-texttitle" | .vox File
| class="infobox-texttitle" style="padding-right:10px"| .vox File
| class="infobox-text" | {{{vox|}}}
| class="infobox-text" | [{{{vox|}}}]
|-
|-
| class="infobox-texttitle" | .ron File
| class="infobox-texttitle" style="padding-right:10px"| .ron File
| class="infobox-text" | {{{ron|}}}
| class="infobox-text" | [{{{ron|}}}]
|-
|-
{{#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" style="padding-right:10px"{{!}} Recipe:
|-
{{!}} class="infobox-text" {{!}} {{#if: {{{recipe|}}}|[https://gitlab.com/veloren/veloren/-/blob/master/assets/common/recipe_book.ron#L{{{recipe|}}} L{{{recipe|}}}]|}}
| class="infobox-texttitle" | Sprite Manifest
{{!}}-
}}
| class="infobox-texttitle" style="padding-right:10px"| Sprite Manifest
| class="infobox-text" | {{{manifest|}}}
| class="infobox-text" | {{{manifest|}}}
|}
|}
<includeonly>
[[Category:Ingredients]]
[[Category:Ingredients]]
</includeonly>
</onlyinclude>
</onlyinclude>
<noinclude>
<noinclude>
Line 53: Line 55:
"type": {
"type": {
"label": "The type of ingredient (sub from Ingredients Lists): ",
"label": "The type of ingredient (sub 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": "Choose one of its subcategory :",
"example": "Drinks",
"example": "Hides",
"type": "string",
"type": "string",
"autovalue": "",
"autovalue": "",
"required": true
"required": true,
"suggestedvalues": [
"Animal Materials",
"Feathers, Fibers, Vines",
"Logs",
"Plants",
"Flowers",
"Ores",
"Gems",
"Ingots",
"Leathers",
"Hides",
"Textiles"
]
},
},
"quality": {
"quality": {
"label": "Quality",
"label": "Quality. Choose and type one of them between the {{ }} : Low, Common, Moderate, High, Epic, Legendary",
"description": "The quality colour of the consumable.",
"description": "The quality colour of the ingredient :",
"example": "{{Common}}",
"example": "{{Common}}",
"type": "wiki-template-name",
"type": "string",
"autovalue": "{{}}",
"autovalue": "{{unknown}}",
"required": true
"required": true,
"suggestedvalues": [
"{{Low}}",
"{{Common}}",
"{{Moderate}}",
"{{High}}",
"{{Epic}}",
"{{Legendary}}"
]
},
},
"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": "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 Veloren",
"type": "url",
"type": "url",
"autovalue": "[ ]",
"autovalue": "",
"suggested": true
"suggested": true
},
},
"craftable": {
"craftable": {
"label": "Craftable",
"label": "Craftable",
"description": "Is this item craftable. Yes or No.",
"description": "Is this item craftable ?",
"example": "Yes",
"type": "boolean",
"type": "boolean",
"autovalue": "",
"autovalue": "0",
"required": true
"required": true
},
},
Line 121: Line 143:
"manifest",
"manifest",
"spawnrules"
"spawnrules"
]
],
"format": "block"
}
}
</templatedata>
</templatedata>
</noinclude>

[[Category:Infoboxes]][[Category:Templates]][[Category:Formatting Templates]]
[[Category:Infoboxes]][[Category:Templates]][[Category:Formatting Templates]]
</noinclude>

Latest revision as of 16:33, 29 July 2023

Infobox ingredient
Statistics
Type [[Ingredients_Lists#|]]
Quality
Craftable No
Technical Information
.vox File []
.ron File []
Sprite Manifest


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

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 (sub from Ingredients Lists): type

Choose one of its subcategory :

Suggested values
Animal Materials Feathers, Fibers, Vines Logs Plants Flowers Ores Gems Ingots Leathers Hides Textiles
Example
Hides
Auto value
Stringrequired
Qualityquality

The quality colour of the ingredient :

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

Is this item craftable ?

Auto value
0
Booleanrequired
.vox Filevox

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

Example
www.veloren.net
Auto value
Stringsuggested
.ron Fileron

The gitlab link to the .ron file.

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