Difference between revisions of "Template:WeaponGeneralInfo"

From Albion Online Wiki
Jump to navigation Jump to search
(put the default back in, and ucfirst the default)
Line 14: Line 14:
 
|holystaff = Holy Staff
 
|holystaff = Holy Staff
 
|cursestaff = Cursed Staff
 
|cursestaff = Cursed Staff
|{{#var:wgi weaponTree}}
+
|{{ucfirst:{{#var:wgi weaponTree}} }}
 
}} }}<!--
 
}} }}<!--
  
 
# Determine the weapon level based on the variant
 
# Determine the weapon level based on the variant
 
-->{{#vardefine:weapon_level|{{#expr: {{#var:wgi tier}} + {{#switch:{{#var:Etype|}}|UNDEAD=1|MORGANA=1|HELL=2|KEEPER=3|AVALON=3|ROYAL=1|0}} }} }}<!--
 
-->{{#vardefine:weapon_level|{{#expr: {{#var:wgi tier}} + {{#switch:{{#var:Etype|}}|UNDEAD=1|MORGANA=1|HELL=2|KEEPER=3|AVALON=3|ROYAL=1|0}} }} }}<!--
-->{{#ifeq: {{#var:wgi weaponTree}}|crossbow|{{#vardefine:weapon_level|{{#expr: {{#var:wgi tier}}+{{#switch:{{#var:Etype|}}|UNDEAD=1|HELL=2|MORGANA=3|AVALON=3|ROYAL=1|0}} }} }} }}<!--
+
-->{{#ifeq: {{#var:wgi weaponTree}}|Crossbow|{{#vardefine:weapon_level|{{#expr: {{#var:wgi tier}}+{{#switch:{{#var:Etype|}}|UNDEAD=1|HELL=2|MORGANA=3|AVALON=3|ROYAL=1|0}} }} }} }}<!--
-->{{#ifeq: {{#var:wgi weaponTree}}|mace|{{#vardefine:weapon_level|{{#expr: {{#var:wgi tier}}+{{#switch:{{#var:Etype|}}|KEEPER=1|HELL=2|MORGANA=3|AVALON=3|ROYAL=1|0}} }} }} }}<!--
+
-->{{#ifeq: {{#var:wgi weaponTree}}|Mace|{{#vardefine:weapon_level|{{#expr: {{#var:wgi tier}}+{{#switch:{{#var:Etype|}}|KEEPER=1|HELL=2|MORGANA=3|AVALON=3|ROYAL=1|0}} }} }} }}<!--
-->{{#ifeq: {{#var:wgi weaponTree}}|sword|{{#vardefine:weapon_level|{{#expr: {{#var:wgi tier}}+{{#switch:{{#var:Etype|}}|MORGANA=1|HELL=2|UNDEAD=3|AVALON=3|ROYAL=1|0}} }} }} }}<!--
+
-->{{#ifeq: {{#var:wgi weaponTree}}|Sword|{{#vardefine:weapon_level|{{#expr: {{#var:wgi tier}}+{{#switch:{{#var:Etype|}}|MORGANA=1|HELL=2|UNDEAD=3|AVALON=3|ROYAL=1|0}} }} }} }}<!--
-->{{#ifeq: {{#var:wgi weaponTree}}|dagger|{{#vardefine:weapon_level|{{#expr: {{#var:wgi tier}}+{{#switch:{{#var:Etype|}}|MORGANA=1|HELL=2|UNDEAD=3|AVALON=3|ROYAL=1|0}} }} }} }}<!--
+
-->{{#ifeq: {{#var:wgi weaponTree}}|Dagger|{{#vardefine:weapon_level|{{#expr: {{#var:wgi tier}}+{{#switch:{{#var:Etype|}}|MORGANA=1|HELL=2|UNDEAD=3|AVALON=3|ROYAL=1|0}} }} }} }}<!--
 
-->{{#ifeq: {{#var:wgi weaponTree}}|Nature Staff|{{#vardefine:Etype | {{#explode:{{PAGENAME}}| |1}} }}{{#vardefine:weapon_level|{{#expr: {{#var:wgi tier}}+{{#switch:{{#var:Etype|}}|Druidic=1|Blight=2|Rampant=3|Ironroot=3|ROYAL=1|0}} }} }} }} <!--
 
-->{{#ifeq: {{#var:wgi weaponTree}}|Nature Staff|{{#vardefine:Etype | {{#explode:{{PAGENAME}}| |1}} }}{{#vardefine:weapon_level|{{#expr: {{#var:wgi tier}}+{{#switch:{{#var:Etype|}}|Druidic=1|Blight=2|Rampant=3|Ironroot=3|ROYAL=1|0}} }} }} }} <!--
-->{{#ifeq: {{#var:wgi weaponTree}}|spear|{{#vardefine:weapon_level|{{#expr: {{#var:wgi tier}}+{{#switch:{{#var:Etype|}}|KEEPER=1|HELL=2|UNDEAD=3|AVALON=3|ROYAL=1|0}} }} }} }}<!--
+
-->{{#ifeq: {{#var:wgi weaponTree}}|Spear|{{#vardefine:weapon_level|{{#expr: {{#var:wgi tier}}+{{#switch:{{#var:Etype|}}|KEEPER=1|HELL=2|UNDEAD=3|AVALON=3|ROYAL=1|0}} }} }} }}<!--
 
-->{{#ifeq: {{#var:wgi weaponTree}}|Arcane Staff|{{#vardefine:weapon_level|{{#expr: {{#var:wgi tier}}+{{#switch:{{#var:Etype|}}|UNDEAD=1|HELL=2|MORGANA=3|AVALON=3|ROYAL=1|0}} }} }} }}<!--
 
-->{{#ifeq: {{#var:wgi weaponTree}}|Arcane Staff|{{#vardefine:weapon_level|{{#expr: {{#var:wgi tier}}+{{#switch:{{#var:Etype|}}|UNDEAD=1|HELL=2|MORGANA=3|AVALON=3|ROYAL=1|0}} }} }} }}<!--
 
-->{{#ifeq: {{#var:wgi weaponTree}}|Frost Staff|{{#vardefine:weapon_level|{{#expr: {{#var:wgi tier}}+{{#switch:{{#var:Etype|}}|KEEPER=1|HELL=2|UNDEAD=3|AVALON=3|ROYAL=1|0}} }} }} }}<!--
 
-->{{#ifeq: {{#var:wgi weaponTree}}|Frost Staff|{{#vardefine:weapon_level|{{#expr: {{#var:wgi tier}}+{{#switch:{{#var:Etype|}}|KEEPER=1|HELL=2|UNDEAD=3|AVALON=3|ROYAL=1|0}} }} }} }}<!--
Line 34: Line 34:
 
-->{{#vardefine:Wtext | There are {{#ifexpr: {{#var:weapon_level}} > 5 |five|{{#ifexpr: {{#var:weapon_level}} = 5|four|three}} }} options for the W spell slot: }}<!--
 
-->{{#vardefine:Wtext | There are {{#ifexpr: {{#var:weapon_level}} > 5 |five|{{#ifexpr: {{#var:weapon_level}} = 5|four|three}} }} options for the W spell slot: }}<!--
 
-->{{#vardefine:PassiveText | There are {{#ifexpr: {{#var:weapon_level}} > 5 |four|three }} options for the passive slot: }}
 
-->{{#vardefine:PassiveText | There are {{#ifexpr: {{#var:weapon_level}} > 5 |four|three }} options for the passive slot: }}
The '''{{PAGENAME}}''' is a Tier {{#var:tier}} [[{{ucfirst:{{#var:wgi weaponTree}}}}]] which may be obtained by crafting or via the [[Market Place]].
+
The '''{{PAGENAME}}''' is a Tier {{#var:tier}} [[{{#var:wgi weaponTree}}]] which may be obtained by crafting or via the [[Market Place]].
  
 
{{ #switch:{{#var:wgi weaponTree}}
 
{{ #switch:{{#var:wgi weaponTree}}
Line 104: Line 104:
  
 
|<!-- Sword Info -->
 
|<!-- Sword Info -->
sword={{#var:Q2text}} [[Has spell::Heroic Strike]] and [[Has spell::Heroic Cleave]]
+
Sword={{#var:Q2text}} [[Has spell::Heroic Strike]] and [[Has spell::Heroic Cleave]]
  
 
{{#vardefine:Wtext | There are {{#ifexpr: {{#var:weapon_level}} > 5 |five|{{#ifexpr: {{#var:weapon_level}} = 5|four|three}} }} options for the W spell slot: }}<!--
 
{{#vardefine:Wtext | There are {{#ifexpr: {{#var:weapon_level}} > 5 |five|{{#ifexpr: {{#var:weapon_level}} = 5|four|three}} }} options for the W spell slot: }}<!--
Line 189: Line 189:
  
 
|<!-- Spear Info -->
 
|<!-- Spear Info -->
spear={{#var:Q2text}} [[Has spell::Lunging Strike]] and [[Has spell::Spirit Spear]]
+
Spear={{#var:Q2text}} [[Has spell::Lunging Strike]] and [[Has spell::Spirit Spear]]
  
 
{{#vardefine:Wtext | There are {{#ifexpr: {{#var:weapon_level}} > 5 |six|{{#ifexpr: {{#var:weapon_level}} = 5|four|three}} }} options for the W spell slot: }}<!--
 
{{#vardefine:Wtext | There are {{#ifexpr: {{#var:weapon_level}} > 5 |six|{{#ifexpr: {{#var:weapon_level}} = 5|four|three}} }} options for the W spell slot: }}<!--

Revision as of 15:50, 19 October 2021

Documentation

Usage

Page dynamic with no parameters:

{{WeaponGeneralInfo}}


The WeaponGeneralInfo is a Tier [[]] which may be obtained by crafting or via the Market Place.

No known weapon trees were supplied so cannot show the spells for this item.

The WeaponGeneralInfo may have different Item Quality ranging from Normal to Masterpiece

The WeaponGeneralInfo Item Quality may be increased at a Repair Station for a fee


{{WeaponGeneralInfo|tier=4|weapon_tree=sword|type=Claymore}}


The WeaponGeneralInfo is a Tier Sword which may be obtained by crafting or via the Market Place.

There are two options for the Q spell slot: Heroic Strike and Heroic Cleave

There are three options for the W spell slot: Interrupt, Iron Will and Hamstring

There is one option for the E spell slot:

There are three options for the passive slot: Deep Cuts, Weakening, and Heroic Fighting

The WeaponGeneralInfo may have different Item Quality ranging from Normal to Masterpiece

The WeaponGeneralInfo Item Quality may be increased at a Repair Station for a fee

No description.

Template parameters

ParameterDescriptionTypeStatus
Weapon Treeweapon_tree

shop sub category of the weapon to describe

Default
shop_sub_category
Example
sword, axe, crossbow
Stringoptional
Tiertier

Tier of the weapon to discribe

Example
4, 5, 6, 7, 8
Numberoptional
Weapon Typetype

The type of weapon within its family

Example
SWORD (for base swords), MORGANA, UNDEAD, ROYAL, AVALON
Stringoptional