From Brotato Wiki

(→‎Weapons: italics, to differentiate it from bespoke page content)
(add options to show content for either melee/ranged)
Line 1: Line 1:
==Weapons==
<onlyinclude><includeonly><!--
-->=={{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 [[Shop]]. Weapons are primary damage dealers and most [[Characters]] can hold up to 6 weapons.''<!--
-->{{#if:{{{type|}}}|<br><br>|}}<!--
-->{{#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.''
| 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.''
}}<!--
--></includeonly></onlyinclude><noinclude>
Test template for individual [[Weapons|Weapon]] pages.
 
By default, only shows the "Weapons" text. Use the <code>type</code> option to show additional content for either [[Weapons#Melee_Weapons|Melee]] or [[Weapons#Ranged_Weapons|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.
 
{| class="wikitable"
|-
! Code
! Preview
|-
| <pre>{{Weapon}}</pre>
| {{Weapon}}
|-
| <pre>{{Weapon|type=melee}}</pre>
| {{Weapon|type=melee}}
|-
| <pre>{{Weapon|type=ranged}}</pre>
| {{Weapon|type=ranged}}
|}
 
==Previews==
 
Previews are separated by a line break.
 
<pre>{{Weapon}}</pre>
 
{{Weapon}}
 
<hr style="margin: 40px auto;">
 
<pre>{{Weapon|type=melee}}</pre>
 
{{Weapon|type=melee}}
 
<hr style="margin: 40px auto;">
 
<pre>{{Weapon|type=ranged}}</pre>
 
{{Weapon|type=ranged}}
 
<hr style="margin: 40px auto;">
 
<templatedata>
{
"params": {
"type": {
"label": "Type",
"description": "Options: melee|ranged",
"example": "melee",
"type": "string",
"suggested": true
}
}
}
</templatedata></noinclude>

Revision as of 19:30, 17 January 2023

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 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 Shop. Weapons are primary damage dealers and most Characters can hold up to 6 weapons.

Weapon is a 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.

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

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

Weapon is a 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.

Previews

Previews are separated by a line break.

{{Weapon}}

Weapon

Weapon is a weapon that can be bought from 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 Shop. Weapons are primary damage dealers and most Characters can hold up to 6 weapons.

Weapon is a 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.


{{Weapon|type=ranged}}

Weapon

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

Weapon is a 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.


No description.

Template parameters

ParameterDescriptionTypeStatus
Typetype

Options: melee|ranged

Example
melee
Stringsuggested