Template:Weapon: Difference between revisions

From Vintage Story Wiki
No edit summary
No edit summary
Line 1: Line 1:
<noinclude><languages /><translate><!--T:1-->
<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;"


<!--T:2-->
|-
|-
|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}}}
{{tnt|Weapon/Attack
{{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}}} }}
}}
}}


<!--T:3-->
{{#if: {{{Wood|}}}{{{Plant|}}}{{{Leaves|}}} |
{{#if: {{{Wood|}}}{{{Plant|}}}{{{Leaves|}}} |
{{tnt|Tool/MiningSpeed
{{Tool/MiningSpeed
|Wood={{#if: {{{Wood|}}} | {{{Wood}}} }}
|Wood={{#if: {{{Wood|}}} | {{{Wood}}} }}
     |Plant={{#if: {{{Plant|}}} | {{{Plant}}} }}
     |Plant={{#if: {{{Plant|}}} | {{{Plant}}} }}
Line 26: Line 24:
}} }}
}} }}


<!--T:4-->
|-
|-
 
|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>]]
<!--T:5-->
|}{{#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:}}]]
|}
 
<!--T:6-->
</includeonly>
</includeonly>


<!--T:7-->
<noinclude>
<noinclude>
Template for weapons.
{{Weapon
{{Weapon
|Name=Test
|Name=<translate>Spear</translate>
|Image=Help
|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
}}
}}


<!--T:8-->
<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>
|-
|-
| ''Name'' || Required || Sewn Linen
| ''Durability'' || <translate>Required</translate> || 100
|-
|-
| ''Image'' || Required || <nowiki>[[File:Grid Sewn Linen Armor.png]]</nowiki>
| ''Power'' || <translate>Required</translate> || 1.5
|-
|-
| ''Durability'' || Required || 100
| ''PowerThrown'' || <translate>Optional</translate> || 5.1
|-
|-
| ''Power'' || Required || 1.5
| ''Range'' || <translate>Required</translate> || 2.5
|-
|-
| ''PowerThrown'' || Optional || 5.1
| ''Tier'' || <translate>Optional</translate> || 3
|-
|-
| ''Range'' || Required || 2.5
| ''Wood'' || <translate>Optional</translate> || 2.6
|-
|-
| ''Tier'' || Optional|| 3
| ''Plant'' || <translate>Optional</translate> || 2.5
|-
|-
| ''Wood'' || Optional || 2.0
| ''Leaves'' || <translate>Optional</translate> || 2.2
|-
|-
| ''Plant'' || Optional || 2.1
| ''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>
|-
|-
| ''Leaves'' || Optional || 2.2
| ''NoBreak'' || <translate>Optional</translate> || <translate>Whether or not the item box should end in a line break</translate>
 
|}
|}


<!--T:9-->
[[Category:Infoboxes{{#translation:}}]]
[[Category:Infoboxes{{#translation:}}]]
</noinclude>
</noinclude>
<noinclude></translate></noinclude>

Revision as of 07:10, 30 July 2023

Other languages:



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