Template:Weapon: Difference between revisions

From Vintage Story Wiki
No edit summary
No edit summary
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude><languages /><translate>
<noinclude><languages /></noinclude>
<!--T:1-->
<includeonly>{|border="1" cellpadding="2" cellspacing="0" style="position:relative; border-radius:7px; font-size:90%; width:200px; float:right; margin-left:5px; margin-bottom: 5px;"
<includeonly>
{|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><!--T:10--> Durability</translate>''' || {{{Durability}}}
{{Weapon/Attack
{{Weapon/Attack
|Power={{{Power}}}
|Power={{{Power}}}
Line 17: Line 13:
|Tier={{#if: {{{Tier|}}} | {{{Tier}}} }}
|Tier={{#if: {{{Tier|}}} | {{{Tier}}} }}
}}
}}
<!--T:3-->
{{#if: {{{Wood|}}}{{{Plant|}}}{{{Leaves|}}} |
{{#if: {{{Wood|}}}{{{Plant|}}}{{{Leaves|}}} |
{{Tool/MiningSpeed
{{Tool/MiningSpeed
Line 25: Line 19:
|Leaves={{#if: {{{Leaves|}}} | {{{Leaves}}} }}
|Leaves={{#if: {{{Leaves|}}} | {{{Leaves}}} }}
}} }}
}} }}
<!--T:4-->
|-
|-
 
{{#if: {{{Temp|}}} | {{#!:
<!--T:5-->
{{Item/Fuel
|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>]]
|Temp={{{Temp}}}
|}
|Duration={{{Duration}}}
 
}}
<!--T:6-->
}} }}
</includeonly>
|-
 
|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><!--T:12--> Weapons</translate>'''</font>]]
<!--T:7-->
|}{{#if:{{{NoBreak|}}}||{{-}} }}
[[Category:Weapons{{#translation:}}]]</includeonly>
<noinclude>
<noinclude>
Template for weapons.
{{Weapon
{{tnt|Weapon
|Name=<translate><!--T:13--> Spear</translate>
|Name=Test
|Image=File:Spear-copper.png
|Image=Help
|Durability=100
|Durability=100
|Power=1.5
|Power=1.5
|PowerThrown=5.1
|PowerThrown=5.1
|Range=2.5
|Range=3.5
|Tier=3
|Tier=3
|Wood=2.6
|Wood=2.6
|Plant=2.5
|Plant=2.5
|Leaves=2.2
|Leaves=2.2
|Temp=600
|Duration=10
|FloatRight=yes
|NoBreak=yes
}}
}}


<!--T:8-->
<translate><!--T:14--> Template for weapons.</translate>
 
{| class="wikitable"
{| class="wikitable"
|-
|-
! Parameter !! Required or Optional, default if applicable !! Example
! <translate><!--T:15--> Parameter</translate> !! <translate><!--T:16--> Required or Optional, default if applicable</translate> !! <translate><!--T:17--> Example</translate>
|-
| ''Name'' || <translate><!--T:18--> Required</translate> || <translate><!--T:19--> Spear</translate>
|-
| ''Image'' || <translate><!--T:20--> Required</translate> || <nowiki>File:Spear-copper.png</nowiki>
|-
| ''Durability'' || <translate><!--T:21--> Required</translate> || 100
|-
| ''Power'' || <translate><!--T:22--> Required</translate> || 1.5
|-
|-
| ''Name'' || Required || Sewn Linen
| ''PowerThrown'' || <translate><!--T:23--> Optional</translate> || 5.1
|-
|-
| ''Image'' || Required || <nowiki>[[File:Grid Sewn Linen Armor.png]]</nowiki>
| ''Range'' || <translate><!--T:24--> Required</translate> || 3.5
|-
|-
| ''Durability'' || Required || 100
| ''Tier'' || <translate><!--T:25--> Optional</translate> || 3
|-
|-
| ''Power'' || Required || 1.5
| ''Wood'' || <translate><!--T:26--> Optional</translate> || 2.6
|-
|-
| ''PowerThrown'' || Optional || 5.1
| ''Plant'' || <translate><!--T:27--> Optional</translate> || 2.5
|-
|-
| ''Range'' || Required || 2.5
| ''Leaves'' || <translate><!--T:28--> Optional</translate> || 2.2
|-
|-
| ''Tier'' || Optional|| 3
| ''Temp'' || <translate><!--T:33--> Optional</translate> || 600
|-
|-
| ''Wood'' || Optional || 2.0
| ''Duration'' || <translate><!--T:34--> Optional</translate> || 10
|-
|-
| ''Plant'' || Optional || 2.1
| ''FloatRight'' || <translate><!--T:29--> Optional</translate> || <translate><!--T:30-->
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><!--T:31--> Optional</translate> || <translate><!--T:32--> 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>

Latest revision as of 16:24, 30 July 2023

Other languages:


Spear
Spear-copper.png
Durability 100
Attack
Power 1.5 hp
Power (Thrown) 5.1 hp
Range 3.5 m
Tier 3
Mining Speed
Wood 2.6x
Plant 2.5x
Leaves 2.2x
Fuel
Temperature 600°C
Duration 10 s
Weapons


Template for weapons.

Parameter Required or Optional, default if applicable Example
Name Required Spear
Image Required File:Spear-copper.png
Durability Required 100
Power Required 1.5
PowerThrown Optional 5.1
Range Required 3.5
Tier Optional 3
Wood Optional 2.6
Plant Optional 2.5
Leaves Optional 2.2
Temp Optional 600
Duration Optional 10
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