Template:Weapon: Difference between revisions
From Vintage Story Wiki
MiguelBazil (talk | contribs) No edit summary |
No edit summary |
||
(29 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <noinclude><languages /></noinclude> | ||
{|border="1" cellpadding="2" cellspacing="0 | <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;" | ||
|- | |- | ||
|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}}} | ||
|PowerThrown={{#if: {{{PowerThrown|}}} | {{{PowerThrown}}} }} | |||
|Range={{{Range}}} | |Range={{{Range}}} | ||
|Tier={{#if: {{{Tier|}}} | {{{Tier}}} }} | |Tier={{#if: {{{Tier|}}} | {{{Tier}}} }} | ||
}} | }} | ||
{{#if: {{{Wood|}}}{{{Plant|}}}{{{Leaves|}}} | | |||
{{#if: {{{Wood|}}}{{{Leaves|}}} | | |||
{{Tool/MiningSpeed | {{Tool/MiningSpeed | ||
|Wood={{#if: {{{Wood|}}} | {{{Wood}}} }} | |Wood={{#if: {{{Wood|}}} | {{{Wood}}} }} | ||
|Plant={{#if: {{{Plant|}}} | {{{Plant}}} }} | |||
|Leaves={{#if: {{{Leaves|}}} | {{{Leaves}}} }} | |Leaves={{#if: {{{Leaves|}}} | {{{Leaves}}} }} | ||
}} }} | }} }} | ||
|- | |- | ||
{{#if: {{{Temp|}}} | {{#!: | |||
|bgcolor="#000000" colspan="2" class="Bloba" style="text-align:center; font-size:13.5px; border-bottom-right-radius:7px; border-bottom-left-radius:7px;"| | {{Item/Fuel | ||
|Temp={{{Temp}}} | |||
|Duration={{{Duration}}} | |||
}} | |||
}} }} | |||
|- | |||
|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>]] | |||
|}{{#if:{{{NoBreak|}}}||{{-}} }} | |}{{#if:{{{NoBreak|}}}||{{-}} }} | ||
</includeonly> | [[Category:Weapons{{#translation:}}]]</includeonly> | ||
<noinclude> | <noinclude> | ||
{{Weapon | {{Weapon | ||
|Name= | |Name=<translate><!--T:13--> Spear</translate> | ||
|Image= | |Image=File:Spear-copper.png | ||
|Durability=100 | |Durability=100 | ||
|Power=1.5 | |Power=1.5 | ||
|Range= | |PowerThrown=5.1 | ||
|Range=3.5 | |||
|Tier=3 | |Tier=3 | ||
|Wood=2.6 | |Wood=2.6 | ||
|Plant=2.5 | |||
|Leaves=2.2 | |Leaves=2.2 | ||
|Temp=600 | |||
|Duration=10 | |||
|FloatRight=yes | |||
|NoBreak=yes | |||
}} | }} | ||
<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 | |||
|- | |||
| ''PowerThrown'' || <translate><!--T:23--> Optional</translate> || 5.1 | |||
|- | |||
| ''Range'' || <translate><!--T:24--> Required</translate> || 3.5 | |||
|- | |- | ||
| '' | | ''Tier'' || <translate><!--T:25--> Optional</translate> || 3 | ||
|- | |- | ||
| '' | | ''Wood'' || <translate><!--T:26--> Optional</translate> || 2.6 | ||
|- | |- | ||
| '' | | ''Plant'' || <translate><!--T:27--> Optional</translate> || 2.5 | ||
|- | |- | ||
| '' | | ''Leaves'' || <translate><!--T:28--> Optional</translate> || 2.2 | ||
|- | |- | ||
| '' | | ''Temp'' || <translate><!--T:33--> Optional</translate> || 600 | ||
|- | |- | ||
| '' | | ''Duration'' || <translate><!--T:34--> Optional</translate> || 10 | ||
|- | |- | ||
| '' | | ''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> | |||
|- | |- | ||
| '' | | ''NoBreak'' || <translate><!--T:31--> Optional</translate> || <translate><!--T:32--> Whether or not the item box should end in a line break</translate> | ||
|} | |} | ||
[[Category:Infoboxes]] | [[Category:Infoboxes{{#translation:}}]] | ||
</noinclude> | </noinclude> |
Latest revision as of 16:24, 30 July 2023
Spear | |
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 |