Template:Infobox armor: Difference between revisions

Template page
Content added Content deleted
m (Neck will be recognized as type)
m (Added left-padding. Reworked links system with 2 parameters : URL + URLtext. set craftable as bolean (checkbox yes/no) and made recipe section diseaspear if the item isn't craftable. And then...Lot infobox to correct once i launch it.)
Line 10: Line 10:
|-
|-
| class="infobox-texttitle" | Type
| class="infobox-texttitle" | Type
| class="infobox-text" style="padding-left:10px" | [https://wiki.veloren.net/wiki/Armor#{{{type|}}}]
| class="infobox-text" style="padding-left:10px" | {{#switch: {{{type|}}} | ring|Ring = [https://wiki.veloren.net/wiki/Armor#Ring Ring] | necklace|Necklace|gem|Gem|pendant|Pendant|amulet|Amulet|Neck|neck = [https://wiki.veloren.net/wiki/Armor#Neck Necklace] | head|Head|hood|Hood|hat|Hat = [https://wiki.veloren.net/wiki/Armor#Head Head] | shoulders|Shoulders|guards|Guards|pauldrons|Pauldrons = [https://wiki.veloren.net/wiki/Armor#Shoulders Shoulders] | chest|Chest|shirt|Shirt|cuirass|Cuirass|chestguard|Chestguard|chestpiece|Chestpiece = [https://wiki.veloren.net/wiki/Armor#Chest Chest] | back|Back|cape|Cape|cloak|Cloak|backpack|Backpack|shawl|Shawl = [https://wiki.veloren.net/wiki/Armor#Back Back] | hand|Hand|hands|Hands|gloves|Gloves|gauntlets|Gauntlets|wraps|Wraps|wrists|Wrists|handwraps|Handwraps = [https://wiki.veloren.net/wiki/Armor#Hands Hands] | belt|Belt|girdle|Girdle|sash|Sash = [https://wiki.veloren.net/wiki/Armor#Belt Belt] | pants|Pants|legs|Legs|chausses|Chausses|leggings|Leggings|skirt|Skirt|kilt|Kilt = [https://wiki.veloren.net/wiki/Armor#Pants Pants] | foot|Foot|feet|Feet|boots|Boots|sabotans|Sabotans|shoes|Shoes|footwraps|Footwraps|spurs|Spurs = [https://wiki.veloren.net/wiki/Armor#Feet Feet] |{{{type|}}}}}
|-
|-
| class="infobox-texttitle" | [[Quality]]
| class="infobox-texttitle" | [[Quality]]
| class="infobox-text" style="padding-left:10px" | {{#switch: {{{quality|}}} | low|Low|0={{Low}} | common|Common|1={{Common}} | moderate|Moderate|2={{Moderate}} | high|High|3={{High}} | epic|Epic|4={{Epic}} | legendary|Legendary|5={{Legendary}} | admin|Admin|6={{Admin}} |{{{quality|}}}}}
| class="infobox-text" style="padding-left:10px" | {{{quality|}}}
|-
|-
| class="infobox-texttitle" | Craftable
| class="infobox-texttitle" | Craftable
| class="infobox-text" style="padding-left:10px" | {{{craftable|}}}
| class="infobox-text" style="padding-left:10px" | {{#ifexpr: {{{craftable|}}}| Yes | No }}
|-
|-
| class="infobox-texttitle" | Armor
| class="infobox-texttitle" | Armor
Line 39: Line 39:
|-
|-
| 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|}}}]
|-
| class="infobox-texttitle" | Recipe
| class="infobox-text" | {{#if: {{{recipe|}}}|[https://gitlab.com/veloren/veloren/-/blob/master/assets/common/recipe_book.ron#L{{{recipe|}}} L{{{recipe}}}]|}}
|-
|-
{{#ifexpr: {{{craftable|}}}
|
{{!}} 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|}}}]|}}
{{!}}-
}}
| class="infobox-texttitle" | Sprite Manifest
| class="infobox-texttitle" | Sprite Manifest
| class="infobox-text" | {{{manifest|}}}
| class="infobox-text" | [{{{manifest|}}} {{{manifesttext|}}}]
|}</onlyinclude>
|}</onlyinclude>
[[Category:Infoboxes]][[Category:Templates]][[Category:Formatting Templates]]
[[Category:Infoboxes]][[Category:Templates]][[Category:Formatting Templates]]
Line 60: Line 63:
"example": "Legs",
"example": "Legs",
"type": "string",
"type": "string",
"required": true
"required": true,
"suggestedvalues": [
"Head",
"Neck",
"Shoulders",
"Chests",
"Hands",
"Rings",
"Belt",
"Back",
"Leg",
"Feet"
]
},
},
"quality": {
"quality": {
Line 66: Line 81:
"description": "The quality of said equipment.",
"description": "The quality of said equipment.",
"example": "Epic",
"example": "Epic",
"type": "wiki-template-name",
"type": "string",
"default": "Common",
"required": true,
"required": true,
"autovalue": "{{}}"
"autovalue": "{{}}",
"suggestedvalues": [
"{{Low}}",
"{{Common}}",
"{{Moderate}}",
"{{Epic}}",
"{{Legendary}}"
]
},
},
"vox": {
"vox": {
Line 78: Line 99:
"label": "Vox",
"label": "Vox",
"description": "The gitlab link to the .vox model.",
"description": "The gitlab link to the .vox model.",
"example": "https://gitlab.com/veloren/veloren/-/blob/master/assets/voxygen/voxel/weapon/sword/cultist_purp_2h-0.vox cultist_purp_2h-0.vox",
"example": "https://gitlab.com/veloren/veloren/-/blob/master/assets/voxygen/voxel/weapon/sword/cultist_purp_2h-0.vox",
"type": "url",
"type": "string",
"suggested": true
"suggested": true
},
},
"craftable": {
"craftable": {
"label": "Is Craftable",
"label": "Is Craftable",
"description": "Is this item craftable.",
"description": "Is this item craftable ?",
"example": "Yes/No",
"type": "boolean",
"type": "string",
"default": "No",
"required": true
"required": true
},
},
"ron": {
"ron": {
"label": ".ron File",
"label": ".ron File",
"description": "The Gitlab link for the glider's .ron file.",
"description": "The Gitlab link for the armor's .ron file.",
"example": "[https://gitlab.com/veloren/veloren/-/blob/master/assets/common/items/glider/glider_snowraptor.ron glider_snowraptor.ron]",
"example": "https://gitlab.com/veloren/veloren/-/blob/master/assets/common/items/glider/glider_snowraptor.ron",
"type": "string",
"type": "string",
"required": true
"required": true
Line 106: Line 125:
"manifest": {
"manifest": {
"label": "Sprite Manifest",
"label": "Sprite Manifest",
"description": "The link to the line in the sprite manifest. Put it between [ ] and add a space for the text you want to display. Armor : https://gitlab.com/veloren/veloren/-/tree/master/assets/voxygen/voxel humanoid_armor Jewellerys : ???",
"description": "The link to the line in the sprite manifest. Armor : https://gitlab.com/veloren/veloren/-/tree/master/assets/voxygen/voxel humanoid_armor",
"type": "string",
"type": "string",
"suggested": true,
"suggested": true,
"example": "[https//www.veloren.net Veloren]"
"example": "https//www.veloren.net"
},
},
"armor": {
"armor": {
Line 158: Line 177:
"description": "Go to : https://gitlab.com/veloren/veloren/-/blob/master/assets/common/recipe_book.ron, search the item, and type the number of the line code (at the left side)",
"description": "Go to : https://gitlab.com/veloren/veloren/-/blob/master/assets/common/recipe_book.ron, search the item, and type the number of the line code (at the left side)",
"example": "1570"
"example": "1570"
},
"voxtext": {
"label": "The text link",
"type": "string",
"suggested": true
},
"rontext": {
"label": "The text link",
"type": "string",
"suggested": true
},
"manifesttext": {
"label": "The text link",
"type": "string",
"suggested": true
}
}
},
},
Line 174: Line 208:
"recipe",
"recipe",
"vox",
"vox",
"voxtext",
"ron",
"ron",
"manifest"
"rontext",
"manifest",
"manifesttext"
],
],
"format": "block"
"format": "block"

Revision as of 09:54, 24 July 2023

Infobox armor
Statistics
Type [1]
Quality
Craftable No
Armor
Stun Resistance
Max Energy
Energy Reward
Crit Power
Stealth
Technical Information
.vox File [ ]
.ron File [ ]
Sprite Manifest [ ]

This template will create create an infobox for a weapon in Veloren. Add information to each of the fields and the template will do the rest.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Descriptiondescription

The description of the armor.

Example
"This belonged to an evil cult leader."
Stringrequired
Typetype

The type of equipment.

Suggested values
Head Neck Shoulders Chests Hands Rings Belt Back Leg Feet
Example
Legs
Stringrequired
Qualityquality

The quality of said equipment.

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

Amount of armor it gives.

Example
12.0
Numberrequired
Stun Resistance stunres

The stun resistance of the armor.

Example
10.0
Numberrequired
Max Energymaxenergy

The amount of max energy the armor gives.

Example
25
Numberrequired
Energy Rewardenergy

The amount of energy the armor rewards.

Example
10
Numberrequired
Critical Powercritpower

The crit power the armor gives.

Example
0.2
Numberrequired
Stealthstealth

The amount of stealth the armor gives.

Example
1
Unknownrequired
Is Craftablecraftable

Is this item craftable ?

Booleanrequired
The number to the line code in the recipe bookrecipe

Go to : https://gitlab.com/veloren/veloren/-/blob/master/assets/common/recipe_book.ron, search the item, and type the number of the line code (at the left side)

Example
1570
Numbersuggested
Voxvox model voxel

The gitlab link to the .vox model.

Example
https://gitlab.com/veloren/veloren/-/blob/master/assets/voxygen/voxel/weapon/sword/cultist_purp_2h-0.vox
Stringsuggested
The text linkvoxtext

no description

Stringsuggested
.ron Fileron

The Gitlab link for the armor's .ron file.

Example
https://gitlab.com/veloren/veloren/-/blob/master/assets/common/items/glider/glider_snowraptor.ron
Stringrequired
The text linkrontext

no description

Stringsuggested
Sprite Manifestmanifest

The link to the line in the sprite manifest. Armor : https://gitlab.com/veloren/veloren/-/tree/master/assets/voxygen/voxel humanoid_armor

Example
https//www.veloren.net
Stringsuggested
The text linkmanifesttext

no description

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