Content added Content deleted
No edit summary |
Horblegorble (talk | contribs) No edit summary |
||
(27 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{ |
<includeonly>{{Navbox}} |
||
{| class="infobox .skin-citizen-dark floatright" |
|||
| colspan="2" class="infobox-image" | [[Image:{{#if:{{{ |
| colspan="2" class="infobox-image" | [[Image:{{#if:{{{image|}}}|{{{image|}}}|{{#invoke:weapon|getWeaponImage|{{#if:{{{override|}}}|{{{override|}}}|{{PAGENAME}}}}}}}}|class=infobox-image|290px|link=]] |
||
|- |
|- |
||
| colspan="2" class="infobox-title" style="font-size: 125%" | |
| colspan="2" class="infobox-title" style="font-size: 125%" | {{#if:{{{title|}}}|{{{title|}}}|{{#invoke:weapon|getWeaponName|{{#if:{{{override|}}}|{{{override|}}}|{{PAGENAME}}}}}}}} |
||
|- |
|- |
||
| colspan="2" class="infobox-text"" style="text-align: center; font-size: 90%;" | {{#if:{{{ |
| colspan="2" class="infobox-text"" style="text-align: center; font-size: 90%;" | {{#if:{{{desc|}}}|{{{desc|}}}|{{#invoke:weapon|getWeaponDesc|{{#if:{{{override|}}}|{{{override|}}}|{{PAGENAME}}}}}}}} |
||
|- |
|- |
||
| colspan="2" class="infobox-title" style="font-size: 90%;" | Statistics |
| colspan="2" class="infobox-title" style="font-size: 90%;" | Statistics |
||
|- |
|- |
||
| class="infobox-texttitle" | [[Quality]] |
| class="infobox-texttitle" | [[Quality]] |
||
| class="infobox-text" style="padding-left:10px" | {{#if:{{{ |
| class="infobox-text" style="padding-left:10px" | {{#if:{{{quality|}}}|{{{quality|}}}|{{#invoke:weapon|getWeaponQuality|{{#if:{{{override|}}}|{{{override|}}}|{{PAGENAME}}}}}}}} |
||
|- |
|- |
||
| class="infobox-texttitle" | |
| class="infobox-texttitle" | Rating |
||
| class="infobox-text" style="padding-left:10px" | {{#if:{{{ |
| class="infobox-text" style="padding-left:10px" | {{#if:{{{rating|}}}|{{{rating|}}}|{{#invoke:weapon|getWeaponRating|{{#if:{{{override|}}}|{{{override|}}}|{{PAGENAME}}}}}}}} |
||
|- |
|- |
||
| class="infobox-texttitle" | Power |
| class="infobox-texttitle" | Power |
||
| class="infobox-text" style="padding-left:10px" | {{#if:{{{ |
| class="infobox-text" style="padding-left:10px" | {{#if:{{{power|}}}|{{{power|}}}|{{#invoke:weapon|getWeaponDamage|{{#if:{{{override|}}}|{{{override|}}}|{{PAGENAME}}}}}}}} |
||
|- |
|- |
||
| class="infobox-texttitle" | Speed |
| class="infobox-texttitle" | Speed |
||
| class="infobox-text" style="padding-left:10px" | {{#if:{{{ |
| class="infobox-text" style="padding-left:10px" | {{#if:{{{speed|}}}|{{{speed|}}}|{{#invoke:weapon|getWeaponSpeed|{{#if:{{{override|}}}|{{{override|}}}|{{PAGENAME}}}}}}}} |
||
|- |
|- |
||
| class="infobox-texttitle" | Poise |
| class="infobox-texttitle" | Poise |
||
| class="infobox-text" style="padding-left:10px" | {{#if:{{{ |
| class="infobox-text" style="padding-left:10px" | {{#if:{{{poise|}}}|{{{poise|}}}|{{#invoke:weapon|getWeaponPoise|{{#if:{{{override|}}}|{{{override|}}}|{{PAGENAME}}}}}}}} |
||
|- |
|- |
||
| class="infobox-texttitle" | |
| class="infobox-texttitle" | Range |
||
| class="infobox-text" style="padding-left:10px" | {{#if:{{{ |
| class="infobox-text" style="padding-left:10px" | {{#if:{{{range|}}}|{{{range|}}}|{{#invoke:weapon|getWeaponRange|{{#if:{{{override|}}}|{{{override|}}}|{{PAGENAME}}}}}}}} |
||
|- |
|||
| class="infobox-texttitle" | Energy |
|||
| class="infobox-text" style="padding-left:10px" | {{#if:{{{energy|}}}|{{{energy|}}}|{{#invoke:weapon|getWeaponEnergy|{{#if:{{{override|}}}|{{{override|}}}|{{PAGENAME}}}}}}}} |
|||
|- |
|||
| class="infobox-texttitle" | Buff |
|||
| class="infobox-text" style="padding-left:10px" | {{#if:{{{buff|}}}|{{{buff|}}}|{{#invoke:weapon|getWeaponBuff|{{#if:{{{override|}}}|{{{override|}}}|{{PAGENAME}}}}}}}} |
|||
|- |
|- |
||
| colspan="2" class="infobox-title" | Technical Information |
| colspan="2" class="infobox-title" | Technical Information |
||
Line 36: | Line 43: | ||
| colspan="2" class="infobox-texttitle" style="text-align:center"| Item Path |
| colspan="2" class="infobox-texttitle" style="text-align:center"| Item Path |
||
|- |
|- |
||
| colspan="2" class="infobox-text" style="font-size: 75%; text-align:center" | {{#if:{{{ |
| colspan="2" class="infobox-text" style="font-size: 75%; text-align:center" | {{#if:{{{path|}}}|{{{path|}}}|{{#invoke:weapon|getWeaponPath|{{#if:{{{override|}}}|{{{override|}}}|{{PAGENAME}}}}}}}} |
||
|}</includeonly> |
|}</includeonly> |
||
<noinclude>[[Category:Infoboxes]][[Category:Templates]][[Category:Formatting Templates]] |
<noinclude>[[Category:Infoboxes]][[Category:Templates]][[Category:Formatting Templates]] |
||
Line 50: | Line 57: | ||
"label": "Image", |
"label": "Image", |
||
"description": "Image name and the extension.", |
"description": "Image name and the extension.", |
||
"example": " |
"example": "Veloren_Cultist_Sword.png", |
||
"type": "string", |
"type": "string", |
||
" |
"default": "{{PAGENAME}}", |
||
⚫ | |||
}, |
}, |
||
"title": { |
"title": { |
||
Line 62: | Line 70: | ||
"example": "Magical Cultist Greatsword", |
"example": "Magical Cultist Greatsword", |
||
"type": "string", |
"type": "string", |
||
" |
"default": "{{PAGENAME}}", |
||
"required": false |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
"example": "Two Handed Sword", |
|||
⚫ | |||
⚫ | |||
}, |
}, |
||
"quality": { |
"quality": { |
||
Line 77: | Line 79: | ||
"type": "wiki-template-name", |
"type": "wiki-template-name", |
||
"default": "Common", |
"default": "Common", |
||
"required": |
"required": false |
||
}, |
}, |
||
"power": { |
"power": { |
||
Line 85: | Line 87: | ||
"label": "Power", |
"label": "Power", |
||
"description": "The Power of the weapon.", |
"description": "The Power of the weapon.", |
||
"example": " |
"example": "1.75", |
||
"type": "number", |
"type": "number", |
||
"default": " |
"default": "0", |
||
"required": |
"required": false |
||
}, |
}, |
||
"speed": { |
"speed": { |
||
Line 96: | Line 98: | ||
"type": "number", |
"type": "number", |
||
"default": "1", |
"default": "1", |
||
"required": |
"required": false |
||
}, |
}, |
||
"vox": { |
"vox": { |
||
Line 115: | Line 117: | ||
"type": "string", |
"type": "string", |
||
"default": "No", |
"default": "No", |
||
"required": |
"required": false |
||
}, |
}, |
||
"ron": { |
"ron": { |
||
Line 122: | Line 124: | ||
"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 glider_snowraptor.ron]", |
||
"type": "string", |
"type": "string", |
||
"required": |
"required": false, |
||
⚫ | |||
}, |
}, |
||
" |
"poise": { |
||
"label": "Poise Strength", |
"label": "Poise Strength", |
||
"description": "The amount of Poise Damage the weapon does.", |
"description": "The amount of Poise Damage the weapon does.", |
||
"example": " |
"example": "1", |
||
"type": "number", |
"type": "number", |
||
"default": "1", |
"default": "1", |
||
"required": |
"required": false |
||
}, |
}, |
||
" |
"range": { |
||
"label": " |
"label": "Range", |
||
"description": "The |
"description": "The weapon range.", |
||
"example": " |
"example": "1", |
||
"type": "number", |
"type": "number", |
||
"default": " |
"default": "1", |
||
"required": |
"required": false |
||
}, |
}, |
||
" |
"energy": { |
||
"label": " |
"label": "Energy Efficienty", |
||
"description": "The |
"description": "The weapon Energy Efficienty.", |
||
"example": "1 |
"example": "1", |
||
"type": "number", |
"type": "number", |
||
"default": "1 |
"default": "1", |
||
"required": |
"required": false |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
"required": false |
|||
}, |
}, |
||
"description": { |
"description": { |
||
Line 153: | Line 164: | ||
"example": "This belonged to an evil cult leader.", |
"example": "This belonged to an evil cult leader.", |
||
"type": "string", |
"type": "string", |
||
"required": |
"required": false |
||
}, |
|||
"manifest": { |
|||
⚫ | |||
"description": "The link to the line in the sprite manifest.", |
|||
⚫ | |||
⚫ | |||
} |
} |
||
}, |
}, |
||
Line 167: | Line 172: | ||
"title", |
"title", |
||
"description", |
"description", |
||
⚫ | |||
"quality", |
"quality", |
||
"craftable", |
"craftable", |
||
"power", |
"power", |
||
"speed", |
"speed", |
||
" |
"poise", |
||
" |
"range", |
||
" |
"energy", |
||
⚫ | |||
"vox", |
"vox", |
||
"ron" |
"ron" |
||
"manifest" |
|||
], |
], |
||
"format": "block" |
"format": "block" |
Latest revision as of 23:56, 14 January 2024
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Image | image picture art | Image name and the extension.
| String | optional |
Title | title name | The equipments full name
| String | optional |
Description | description | The description of the weapon.
| String | optional |
Quality | quality | The quality of said equipment.
| Template | optional |
Is Craftable | craftable | Is this item craftable.
| String | optional |
Power | power damage | The Power of the weapon.
| Number | optional |
Speed | speed | The speed of the weapon.
| Number | optional |
Poise Strength | poise | The amount of Poise Damage the weapon does.
| Number | optional |
Range | range | The weapon range.
| Number | optional |
Energy Efficienty | energy | The weapon Energy Efficienty.
| Number | optional |
Buff/Debuff Strength | buff | The weapon Buff/Debuff Strength.
| Number | optional |
Vox | vox model voxel | The gitlab link to the .vox model.
| URL | suggested |
.ron File | ron | The Gitlab link for the glider's .ron file.
| String | suggested |