Template:Infobox armor: Difference between revisions

Template page
Content added Content deleted
m (Fixed link to armor type neck)
m (The stealth parameter was not shown in the infobox)
 
(44 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<onlyinclude>{{Navbox}}
<onlyinclude>{{Navbox}}
{| class="infobox floatright .skin-citizen-dark" style="width:230px"
{| 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 9: Line 9:
| colspan="2" class="infobox-title" style="font-size: 90%;" | Statistics
| colspan="2" class="infobox-title" style="font-size: 90%;" | Statistics
|-
|-
| class="infobox-texttitle" | Type
| class="infobox-texttitle" style="padding-right:10px"| Type
| class="infobox-text" | [[ Armor#{{{type|}}} | {{{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 = [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" style="padding-right:10px"| [[Quality]]
| class="infobox-text" | {{{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-texttitle" | Craftable
| class="infobox-texttitle" style="padding-right:10px"| Craftable
| class="infobox-text" style="padding-left:10px" | {{{craftable|}}}
| class="infobox-text" | {{#ifexpr: {{{craftable|}}}| Yes | No }}
|-
| class="infobox-texttitle" | Armor
| class="infobox-text" style="padding-left:10px" | {{{armor|}}}
|-
| class="infobox-texttitle" | Stun Resistance
| class="infobox-text" style="padding-left:10px" | {{{stunres|}}}
|-
| class="infobox-texttitle" | Max Energy
| class="infobox-text" style="padding-left:10px" | {{{maxenergy|}}}
|-
| class="infobox-texttitle" | Energy Reward
| class="infobox-text" style="padding-left:10px" | {{{energy|}}}
|-
| class="infobox-texttitle" | Crit Power
| class="infobox-text" style="padding-left:10px" | {{{critpower|}}}
|-
| class="infobox-texttitle" | Stealth
| class="infobox-text" style="padding-left:10px" | {{{stealth|}}}
|-
|-
{{#if: {{{armor|}}}
|
{{!}} class="infobox-texttitle" style="padding-right:10px" {{!}} Armor
{{!}} class="infobox-text" {{!}} {{{armor|}}}
{{!}}-
}}
{{#if: {{{stunres|}}}
|
{{!}} class="infobox-texttitle" style="padding-right:10px" {{!}} Stun Resistance
{{!}} class="infobox-text" {{!}} {{{stunres|}}}
{{!}}-
}}
{{#if: {{{maxenergy|}}}
|
{{!}} class="infobox-texttitle" style="padding-right:10px" {{!}} Max Energy
{{!}} class="infobox-text" {{!}} {{{maxenergy|}}}
{{!}}-
}}
{{#if: {{{energy|}}}
|
{{!}} class="infobox-texttitle" style="padding-right:10px" {{!}} Energy Reward
{{!}} class="infobox-text" {{!}} {{{energy|}}}
{{!}}-
}}
{{#if: {{{critpower|}}}
|
{{!}} class="infobox-texttitle" style="padding-right:10px" {{!}} Critical Power
{{!}} class="infobox-text" {{!}} {{{critpower|}}}
{{!}}-
}}
{{#if: {{{stealth|}}}
|
{{!}} class="infobox-texttitle" style="padding-right:10px" {{!}} Stealth
{{!}} class="infobox-text" {{!}} {{{stealth|}}}
{{!}}-
}}
| 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|}}} {{{voxtext|}}}]
|-
| class="infobox-texttitle" | .ron File
| class="infobox-text" | {{{ron|}}}
|-
|-
| class="infobox-texttitle" | Recipe
| class="infobox-texttitle" style="padding-right:10px"| .ron File
| class="infobox-text" | {{#if: {{{recipe|}}}|[https://gitlab.com/veloren/veloren/-/blob/master/assets/common/recipe_book.ron#L{{{recipe|}}} L{{{recipe}}}]|}}
| class="infobox-text" | [{{{ron|}}} {{{rontext|}}}]
|-
|-
{{#ifexpr: {{{craftable|}}}
| class="infobox-texttitle" | Sprite Manifest
|
| class="infobox-text" | {{{manifest|}}}
{{!}} 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" style="padding-right:10px"| Sprite Manifest
| class="infobox-text" | [{{{manifest|}}} {{{manifesttext|}}}]
|}</onlyinclude>
|}</onlyinclude>
[[Category:Infoboxes]][[Category:Templates]][[Category:Formatting Templates]]
[[Category:Infoboxes]][[Category:Templates]][[Category:Formatting Templates]]
Line 58: Line 79:
"label": "Type",
"label": "Type",
"description": "The type of equipment.",
"description": "The type of equipment.",
"example": "Legs",
"type": "string",
"type": "string",
"required": true
"required": true,
"suggestedvalues": [
"Head",
"Neck",
"Shoulders",
"Chest",
"Hands",
"Ring",
"Belt",
"Back",
"Pants",
"Foot"
]
},
},
"quality": {
"quality": {
Line 66: Line 98:
"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}}",
"{{High}}",
"{{Epic}}",
"{{Legendary}}"
]
},
},
"vox": {
"vox": {
Line 78: Line 117:
"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",
"suggested": true,
"default": "No",
"autovalue": "0"
"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 144:
"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 123: Line 161:
"example": "10.0",
"example": "10.0",
"type": "number",
"type": "number",
"required": true
"suggested": true
},
},
"maxenergy": {
"maxenergy": {
Line 130: Line 168:
"example": "25",
"example": "25",
"type": "number",
"type": "number",
"required": true
"suggested": true
},
},
"energy": {
"energy": {
Line 137: Line 175:
"example": "10",
"example": "10",
"type": "number",
"type": "number",
"required": true
"suggested": true
},
},
"critpower": {
"critpower": {
Line 144: Line 182:
"example": "0.2",
"example": "0.2",
"type": "number",
"type": "number",
"required": true
"suggested": true
},
},
"stealth": {
"stealth": {
Line 150: Line 188:
"description": "The amount of stealth the armor gives.",
"description": "The amount of stealth the armor gives.",
"example": "1",
"example": "1",
"required": true
"suggested": true
},
},
"recipe": {
"recipe": {
Line 158: Line 196:
"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 227:
"recipe",
"recipe",
"vox",
"vox",
"voxtext",
"ron",
"ron",
"manifest"
"rontext",
"manifest",
"manifesttext"
],
],
"format": "block"
"format": "block"

Latest revision as of 07:16, 13 March 2024

Infobox armor
Statistics
Type
Quality
Craftable No
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 Chest Hands Ring Belt Back Pants Foot
Stringrequired
Qualityquality

The quality of said equipment.

Suggested values
{{Low}} {{Common}} {{Moderate}} {{High}} {{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
Numbersuggested
Max Energymaxenergy

The amount of max energy the armor gives.

Example
25
Numbersuggested
Energy Rewardenergy

The amount of energy the armor rewards.

Example
10
Numbersuggested
Critical Powercritpower

The crit power the armor gives.

Example
0.2
Numbersuggested
Stealthstealth

The amount of stealth the armor gives.

Example
1
Unknownsuggested
Is Craftablecraftable

Is this item craftable ?

Auto value
0
Booleansuggested
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.