Template:Weapon: Difference between revisions
From Vintage Story Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<noinclude><languages / | <noinclude><languages /> | ||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
{|border="1" cellpadding="2" cellspacing="0" class="screwTemplatesMan" style="position:relative; border-radius:7px; font-size:90%; width:200px; float:right;" | {|border="1" cellpadding="2" cellspacing="0" class="screwTemplatesMan" style="position:relative; border-radius:7px; font-size:90%; width:200px; float:right;" | ||
|- | |- | ||
|bgcolor="#000000" colspan="2" style="border-top-right-radius:7px; border-top-left-radius:7px; text-align:center; font-size:13.5px;"|<font color="white">'''{{{Name}}}'''</font> | |bgcolor="#000000" colspan="2" style="border-top-right-radius:7px; border-top-left-radius:7px; text-align:center; font-size:13.5px;"|<font color="white">'''{{{Name}}}'''</font> | ||
|- | |- | ||
|bgcolor="#d3ab92" colspan=2 style="text-align: center"| {{{Image}}} | |bgcolor="#d3ab92" colspan=2 style="text-align: center"| [[{{{Image}}}|100px]] | ||
|- | |- | ||
| '''Durability''' || {{{Durability}}} | | '''<translate>Durability</translate>''' || {{{Durability}}} | ||
{{ | {{Weapon/Attack | ||
|Power={{{Power}}} | |Power={{{Power}}} | ||
|PowerThrown={{#if: {{{PowerThrown|}}} | {{{PowerThrown}}} }} | |PowerThrown={{#if: {{{PowerThrown|}}} | {{{PowerThrown}}} }} | ||
|Range={{{Range}}} | |Range={{{Range}}} <translate>m</translate> | ||
|Tier={{#if: {{{Tier|}}} | {{{Tier}}} }} | |Tier={{#if: {{{Tier|}}} | {{{Tier}}} }} | ||
}} | }} | ||
{{#if: {{{Wood|}}}{{{Plant|}}}{{{Leaves|}}} | | {{#if: {{{Wood|}}}{{{Plant|}}}{{{Leaves|}}} | | ||
{{ | {{Tool/MiningSpeed | ||
|Wood={{#if: {{{Wood|}}} | {{{Wood}}} }} | |Wood={{#if: {{{Wood|}}} | {{{Wood}}} }} | ||
|Plant={{#if: {{{Plant|}}} | {{{Plant}}} }} | |Plant={{#if: {{{Plant|}}} | {{{Plant}}} }} | ||
Line 26: | Line 24: | ||
}} }} | }} }} | ||
|- | |- | ||
|bgcolor="#000000" colspan="2" class="Bloba" style="text-align:center; font-size:13.5px; border-bottom-right-radius:7px; border-bottom-left-radius:7px;"|[[Weapons|<font color="white">'''<translate>Weapons</translate>'''</font>]] | |||
|}{{#if:{{{NoBreak|}}}||{{-}} }} | |||
|bgcolor="#000000" colspan="2" class="Bloba" style="text-align:center; font-size:13.5px; border-bottom-right-radius:7px; border-bottom-left-radius:7px;"|[[Weapons|<font color="white">'''Weapons'''</font>]] | [[Category:Weapons{{#translation:}}]] | ||
|} | |||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
{{Weapon | {{Weapon | ||
|Name= | |Name=<translate>Spear</translate> | ||
|Image= | |Image=<nowiki>File:Spear-copper.png</nowiki> | ||
|Durability=100 | |Durability=100 | ||
|Power=1.5 | |Power=1.5 | ||
Line 51: | Line 42: | ||
|Plant=2.5 | |Plant=2.5 | ||
|Leaves=2.2 | |Leaves=2.2 | ||
|FloatRight=yes | |||
|NoBreak=yes | |||
}} | }} | ||
< | <translate>Template for weapons.</translate> | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! Parameter !! Required or Optional, default if applicable !! Example | ! <translate>Parameter</translate> !! <translate>Required or Optional, default if applicable</translate> !! <translate>Example</translate> | ||
|- | |||
| ''Name'' || <translate>Required</translate> || <translate>Sewn Linen</translate> | |||
|- | |||
| ''Image'' || <translate>Required</translate> || <nowiki>[[File:Grid Sewn Linen Armor.png]]</nowiki> | |||
|- | |- | ||
| '' | | ''Durability'' || <translate>Required</translate> || 100 | ||
|- | |- | ||
| '' | | ''Power'' || <translate>Required</translate> || 1.5 | ||
|- | |- | ||
| '' | | ''PowerThrown'' || <translate>Optional</translate> || 5.1 | ||
|- | |- | ||
| '' | | ''Range'' || <translate>Required</translate> || 2.5 | ||
|- | |- | ||
| '' | | ''Tier'' || <translate>Optional</translate> || 3 | ||
|- | |- | ||
| '' | | ''Wood'' || <translate>Optional</translate> || 2.6 | ||
|- | |- | ||
| '' | | ''Plant'' || <translate>Optional</translate> || 2.5 | ||
|- | |- | ||
| '' | | ''Leaves'' || <translate>Optional</translate> || 2.2 | ||
|- | |- | ||
| '' | | ''FloatRight'' || <translate>Optional</translate> || <translate>Whether or not the box should float on the right side of the page | ||
(so you don't have to use a <div></div> tag)</translate> | |||
|- | |- | ||
| '' | | ''NoBreak'' || <translate>Optional</translate> || <translate>Whether or not the item box should end in a line break</translate> | ||
|} | |} | ||
[[Category:Infoboxes{{#translation:}}]] | [[Category:Infoboxes{{#translation:}}]] | ||
</noinclude> | </noinclude> | ||
Revision as of 07:10, 30 July 2023
Spear | |
[[File:Spear-copper.png|100px]] | |
Durability | 100 |
Attack | |
Power | 1.5 hp |
Power (Thrown) | 5.1 hp |
Range | 2.5 m |
Tier | 3 |
Mining Speed | |
Wood | 2.6x |
Plant | 2.5x |
Leaves | 2.2x |
Weapons |
Template for weapons.
Parameter | Required or Optional, default if applicable | Example |
---|---|---|
Name | Required | Sewn Linen |
Image | Required | [[File:Grid Sewn Linen Armor.png]] |
Durability | Required | 100 |
Power | Required | 1.5 |
PowerThrown | Optional | 5.1 |
Range | Required | 2.5 |
Tier | Optional | 3 |
Wood | Optional | 2.6 |
Plant | Optional | 2.5 |
Leaves | Optional | 2.2 |
FloatRight | Optional | Whether or not the box should float on the right side of the page (so you don't have to use a tag) |
NoBreak | Optional | Whether or not the item box should end in a line break |