From Brotato Wiki

(add options to show content for either melee/ranged)
(Fix grammar and spelling on template)
 
Line 2: Line 2:
-->=={{PAGENAME}}==
-->=={{PAGENAME}}==


''{{PAGENAME}} is a weapon that can be bought from [[Shop]]. Weapons are primary damage dealers and most [[Characters]] can hold up to 6 weapons.''<!--
''{{PAGENAME}} is a weapon that can be bought from the [[Shop]]. Weapons are primary damage dealers and most [[Characters]] can hold up to 6 weapons.''<!--
-->{{#if:{{{type|}}}|<br><br>|}}<!--
-->{{#if:{{{type|}}}|<br><br>|}}<!--
-->{{#switch: {{{type|}}}
-->{{#switch: {{{type|}}}
  | melee = ''{{PAGENAME}} is a [[Weapons#Melee_Weapons|Melee Weapon]]. Melee weapon have two different attack types, thrust and swing, both are capable of hitting multiple enemies. Melee weapons' [[Range]] only increase or decrease by half the amount of your range stat. The attack speed of melee weapons depends on their range. Increasing the range slightly decreases the [[Attack Speed]], but increases the area hit by the weapon. Negative range has the inverse effect.''
  | melee = ''{{PAGENAME}} is a [[Weapons#Melee_Weapons|Melee Weapon]]. Melee weapons have two different attack types, thrust and swing, both are capable of hitting multiple enemies. Melee weapons' [[Range]] only increases or decreases by half the amount of your Range stat. The attack speed of melee weapons depends on their range. Increasing the range slightly decreases the [[Attack Speed]], but increases the area hit by the weapon. Negative range has the inverse effect.''
  | ranged = ''{{PAGENAME}} is a [[Weapons#Ranged_Weapons|Ranged Weapon]]. Ranged weapon shoots a projectile what travels up to total [[Range]]. If the weapon has no pierce, the projectile only damages only one enemy.''
  | ranged = ''{{PAGENAME}} is a [[Weapons#Ranged_Weapons|Ranged Weapon]]. Ranged weapons shoot projectiles that travel up to the total [[Range]]. Unless the weapon has piercing, the projectiles stop at the first enemy that is hit.''
}}<!--
}}<!--
--></includeonly></onlyinclude><noinclude>
--></includeonly></onlyinclude><noinclude>

Latest revision as of 00:24, 1 February 2024

Test template for individual Weapon pages.

By default, only shows the "Weapons" text. Use the type option to show additional content for either Melee or Ranged weapons.

Options

Note: Headings are not rendered here correctly. Scroll further down to see how they'll actually look when used.

Note: "Weapon" is replaced with the name of the current page.

Code Preview
{{Weapon}}
==Weapon==

Weapon is a weapon that can be bought from the Shop. Weapons are primary damage dealers and most Characters can hold up to 6 weapons.

{{Weapon|type=melee}}
==Weapon==

Weapon is a weapon that can be bought from the Shop. Weapons are primary damage dealers and most Characters can hold up to 6 weapons.

Weapon is a Melee Weapon. Melee weapons have two different attack types, thrust and swing, both are capable of hitting multiple enemies. Melee weapons' Range only increases or decreases by half the amount of your Range stat. The attack speed of melee weapons depends on their range. Increasing the range slightly decreases the Attack Speed, but increases the area hit by the weapon. Negative range has the inverse effect.

{{Weapon|type=ranged}}
==Weapon==

Weapon is a weapon that can be bought from the Shop. Weapons are primary damage dealers and most Characters can hold up to 6 weapons.

Weapon is a Ranged Weapon. Ranged weapons shoot projectiles that travel up to the total Range. Unless the weapon has piercing, the projectiles stop at the first enemy that is hit.

Previews

Previews are separated by a line break.

{{Weapon}}

Weapon

Weapon is a weapon that can be bought from the Shop. Weapons are primary damage dealers and most Characters can hold up to 6 weapons.


{{Weapon|type=melee}}

Weapon

Weapon is a weapon that can be bought from the Shop. Weapons are primary damage dealers and most Characters can hold up to 6 weapons.

Weapon is a Melee Weapon. Melee weapons have two different attack types, thrust and swing, both are capable of hitting multiple enemies. Melee weapons' Range only increases or decreases by half the amount of your Range stat. The attack speed of melee weapons depends on their range. Increasing the range slightly decreases the Attack Speed, but increases the area hit by the weapon. Negative range has the inverse effect.


{{Weapon|type=ranged}}

Weapon

Weapon is a weapon that can be bought from the Shop. Weapons are primary damage dealers and most Characters can hold up to 6 weapons.

Weapon is a Ranged Weapon. Ranged weapons shoot projectiles that travel up to the total Range. Unless the weapon has piercing, the projectiles stop at the first enemy that is hit.


No description.

Template parameters

ParameterDescriptionTypeStatus
Typetype

Options: melee|ranged

Example
melee
Stringsuggested