Jump to content

Template:Weapon: Difference between revisions

From Drifters Almanac
m Protected "Template:Weapon" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
No edit summary
Line 1: Line 1:
<!--
<div class="weapon-template">
== Usage == Copy/Paste from "{{Weapon" to the closing brackets "}}" and fill in the variables


'''{{{name|{{PAGENAME}}}}}'''


{{Weapon
[[File:{{{tooltip_image|WeaponPlaceholder.png}}}|thumb|{{{name}}} Tooltip]]
|item name=Sturdy Copper Mace
|tooltip image file=Sturdy Copper Mace.png
|weapon type=1H Mace
|durability=
|min damage=
|max damage=
|range value=
|angle value=
|OHAC=
|front positional value=
|front positional attribute=
|front positional percentage=
|side positional value=
|side positional attribute=
|side positional percentage=
|rear positional value=
|rear positional attribute=
|rear positional percentage=
|additional stat value 1=
|additional stat category 1=
|additional stat value 2=
|additional stat category 2=
|additional stat value 3=
|additional stat category 3=
|additional stat value 4=
|additional stat category 4=
|additional stat value 5=
|additional stat category 5=
|level requirement=
|class requirement=[[Defender]], [[Supporter]], [[Striker]]]
|how to acquire=[[Shoat|Shoat (Newhaven Valley)]]
|recipe=*
|crafting profession=
|crafting components=:-
|sale price=75 Copper
|model image file=[[File:Sturdy Copper Mace Model.png]]
}}


-->
<!-- ========================== -->
[[File:{{{tooltip image file}}}|thumb|{{{item name}}} Tooltip]]
<!--          STATS          -->
<!-- ========================== -->
<div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Stats</div>
<hr style="border: 0; border-top: 1px solid #555;" />
<div style="margin-left: 1em;">
{{#if:{{{weapon_type|}}}|'''Weapon Type''': [[:Category:{{{weapon_type}}}|{{{weapon_type}}}]]<br />}}
{{#if:{{{durability|}}}|'''Durability''': {{{durability}}}<br />}}
{{#if:{{{damage_min|}}}|'''Damage''': {{{damage_min}}} - {{{damage_max}}}<br />}}
{{#if:{{{delay|}}}|'''Delay''': {{{delay}}}s<br />}}
{{#if:{{{range|}}}|'''Range''': {{{range}}}m<br />}}
{{#if:{{{angle|}}}|'''Angle''': {{{angle}}}<br />}}
{{#if:{{{OHAC|}}}|'''OHAC''': {{{OHAC}}}<br />}}
</div>


<h2> Stats </h2>
<!-- ========================== -->
:Equipment Type: [[:Category:{{{weapon type}}}|{{{weapon type}}}]]
<!--    ADDITIONAL STATS      -->
:Durability: {{{durability}}}
<!-- ========================== -->
:Damage: {{{min damage}}}-{{{max damage}}}
{{#if:{{{stat1_name|}}}{{{stat2_name|}}}{{{stat3_name|}}}{{{stat4_name|}}}{{{stat5_name|}}}|
:Range: {{{range value}}}m
<div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Additional Stats</div>
:Angle: {{{angle value}}}&deg;
<hr style="border: 0; border-top: 1px solid #555;" />
{{#if: {{{OHAC}}}
{{AdditionalStats
|:OHAC: {{{OHAC}}}%
| stat1_name  = {{{stat1_name|}}}
| stat1_value = {{{stat1_value|}}}
| stat2_name  = {{{stat2_name|}}}
| stat2_value = {{{stat2_value|}}}
| stat3_name  = {{{stat3_name|}}}
| stat3_value = {{{stat3_value|}}}
| stat4_name  = {{{stat4_name|}}}
| stat4_value = {{{stat4_value|}}}
| stat5_name  = {{{stat5_name|}}}
| stat5_value = {{{stat5_value|}}}
}}
}}
{{#if: {{{front positional value}}} |:Front Positional: {{{front positional value}}} {{{front positional attribute}}} + {{{front positional percentage}}}% Positional}}{{#if: {{{side positional value}}}|:Side Positional: {{{side positional value}}} {{{side positional attribute}}} + {{{side positional percentage}}}% Positional}}{{#if: {{{rear positional value}}}
|:Rear Positional: {{{rear positional value}}} {{{rear positional attribute}}} + {{{rear positional percentage}}}% Positional}}
:Requirements: Level {{{level requirement}}} {{{class requirement}}}
{{#if: {{{additional stat category 1}}}
|{{Additional Stats
|stat value 1={{{additional stat value 1}}}
|stat category 1={{{additional stat category 1}}}
|stat value 2={{{additional stat value 2}}}
|stat category 2={{{additional stat category 2}}}
|stat value 3={{{additional stat value 3}}}
|stat category 3={{{additional stat category 3}}}
|stat value 4={{{additional stat value 4}}}
|stat category 4={{{additional stat category 4}}}
|stat value 5={{{additional stat value 5}}}
|stat category 5={{{additional stat category 5}}}
}}
}}
<!-- ========================== -->
<!--    POSITIONAL BONUSES    -->
<!-- ========================== -->
<div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Positional Bonuses</div>
<hr style="border: 0; border-top: 1px solid #555;" />
<div style="margin-left: 1em;">
{{#if:{{{front_value|}}}|'''Front''': {{{front_value}}} {{{front_type}}} +{{{front_percentage}}}% Positional<br />}}
{{#if:{{{side_value|}}}|'''Side''': {{{side_value}}} {{{side_type}}} +{{{side_percentage}}}% Positional<br />}}
{{#if:{{{rear_value|}}}|'''Rear''': {{{rear_value}}} {{{rear_type}}} +{{{rear_percentage}}}% Positional<br />}}
</div>
<!-- ========================== -->
<!--        REQUIREMENTS        -->
<!-- ========================== -->
<div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Requirements</div>
<hr style="border: 0; border-top: 1px solid #555;" />
<div style="margin-left: 1em;">
{{#if:{{{level_requirement|}}}|'''Level Requirement''': {{{level_requirement}}}<br />}}
{{#if:{{{class_requirement1|}}}|'''Class Requirement''': [[{{{class_requirement1}}}]]}}{{#if:{{{class_requirement2|}}}|, [[{{{class_requirement2}}}]]}}{{#if:{{{class_requirement3|}}}|, [[{{{class_requirement3}}}]]}}
</div>
<!-- ========================== -->
<!--        ACQUISITION        -->
<!-- ========================== -->
<div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Acquisition</div>
<hr style="border: 0; border-top: 1px solid #555;" />
<div style="margin-left: 1em;">
{{#if:{{{how_to_acquire|}}}|'''How to Acquire''': {{{how_to_acquire}}}<br />}}
</div>
<!-- ========================== -->
<!--        SALE PRICE        -->
<!-- ========================== -->
<div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Sale Price</div>
<hr style="border: 0; border-top: 1px solid #555;" />
<div style="margin-left: 1em;">
{{#if:{{{is_soulbound|}}}|'''This item is Soulbound and cannot be sold or traded.'''<br />}}
{{#if:{{{sale_price|}}}|'''Sale Price''': {{{sale_price}}}<br />}}
</div>
<!-- ========================== -->
<!--          GALLERY          -->
<!-- ========================== -->
{{#if:{{{model_image1|}}}{{{model_image2|}}}{{{model_image3|}}}|
<div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Gallery</div>
<hr style="border: 0; border-top: 1px solid #555;" />
}}
}}
{{#if: {{{recipe}}}
{{#if:{{{model_image1|}}}|[[File:{{{model_image1}}}|frameless|200px]] }}
|<h2> Recipe </h2>
{{#if:{{{model_image2|}}}|[[File:{{{model_image2}}}|frameless|200px]] }}
{{{recipe}}} using:
{{#if:{{{model_image3|}}}|[[File:{{{model_image3}}}|frameless|200px]] }}
{{{crafting components}}}
 
{{#if: {{{crafting profession}}}
[[Category:Weapons]]
|[[Category:{{{crafting profession}}}]]
{{#if:{{{weapon_type|}}}|[[Category:{{{weapon_type}}}]]}}
}}
}}
{{#if: {{{how to acquire}}}
|<h2> How to Acquire </h2>
{{{how to acquire}}}
}}
<h2> Sale Price </h2>
<!-- X Gold Y Silver Z Copper -->
:{{{sale price}}}
<h2> Gallery </h2>
<!-- Figure out how to create gallery array -->
<!-- Right now multiple image files can be input as the parameter and it "works" -->
{{{model image file}}}


[[Category:Weapons]][[Category:{{{weapon type}}}]]
</div>

Revision as of 15:29, 22 April 2025

Weapon

File:WeaponPlaceholder.png
{{{name}}} Tooltip
Stats





Positional Bonuses


Requirements


Acquisition

Sale Price