モジュール:Wand/doc
このページは、モジュール:Wandの説明文を記述するページです。
This documentation is transcluded from Module:Wand/doc (edit).
This is a template for display of wand builds, and/or detailed information about wand stats. This new template replaces the {{Wand}}
and {{Wand Card}}
templates, duplicating and extending their functionality. The template includes a link to view and edit the wand on the Wand Simulator site, which can also export back to this template format for inclusion into wiki articles.
Spells are now specified using their ID, rather than name, which simplifies exporting/importing Wand builds to mods and other tools.
Some useful resources:
- List of spell names and ids: Special:CargoTables/Spells
- List of wand icons: Category:Wand icons
- List of legacy Wand templates (to be converted): Category:Pages with wand templates
{{SpellName}}
- map spell IDs to names
{{SpellTypeClass}}
{{SpellTypeColour}}
- spell type classes and CSS variables for styling
{{SpellCategory}}
- spell groupings based on tags
This demonstrates leaving gaps in the wand's spell listing. The spells can be formatted any way you want - whitespace is ignored.
{{Wand2
| wandPic = Wand 0413.png
| tooltips = Yes
| capacity = 16
| shuffle = No
| spellsCast = 1
| alwaysCasts = HOMING
| spells = MANA_REDUCE,MANA_REDUCE,MANA_REDUCE,,,
RECHARGE,RECHARGE,RECHARGE,RECHARGE,,,
DIVIDE_10,DAMAGE,BUCKSHOT
}}
This demonstrates leaving gaps in the wand's spell listing. The spells can be formatted any way you want - whitespace is ignored.
{{Wand2
| wandPic = Wand 0413.png
| vertical = Yes
| tooltips = Yes
| capacity = 16
| shuffle = No
| spellsCast = 1
| alwaysCasts = HOMING
| spells = MANA_REDUCE,MANA_REDUCE,MANA_REDUCE,,,
RECHARGE,RECHARGE,RECHARGE,RECHARGE,,,
DIVIDE_10,DAMAGE,BUCKSHOT
}}
Also shows use of multiple always cast spells (up to 4 are allowed).
{{Wand2
| vertical = No
| wandCard = Yes
| hideLink = No
| tooltips = No
| wandName = Second Wand of Examples
| wandPic = Wand 0413.png
| shuffle = No
| spellsCast = 2
| alwaysCasts = INFESTATION,HOMING,LASER,DAMAGE
| spells = MANA_REDUCE,
MANA_REDUCE,
MANA_REDUCE,
MANA_REDUCE,
MANA_REDUCE,
RECHARGE,
RECHARGE,
RECHARGE,
RECHARGE,
DIVIDE_10,
DAMAGE,
BUCKSHOT
| castDelay = 0.50
| rechargeTime = 1.00
| manaMax = 500
| manaCharge = 500
| capacity = 24
| spread = 0
| speed = 1
}}
Also shows use of multiple always cast spells (up to 4 are allowed).
{{Wand2
| vertical = Yes
| wandCard = Yes
| hideLink = No
| tooltips = No
| wandName = Vertical Wand of Examples
| wandPic = Wand 0413.png
| shuffle = No
| spellsCast = 2
| alwaysCasts = INFESTATION,HOMING,LASER,DAMAGE
| spells = MANA_REDUCE,
MANA_REDUCE,
MANA_REDUCE,
MANA_REDUCE,
MANA_REDUCE,
RECHARGE,
RECHARGE,
RECHARGE,
RECHARGE,
DIVIDE_10,
DAMAGE,
BUCKSHOT
| castDelay = 0.50
| rechargeTime = 1.00
| manaMax = 500
| manaCharge = 500
| capacity = 24
| spread = 0
| speed = 1
}}
Also shows use of multiple always cast spells (up to 4 are allowed).
{{Wand2
| vertical = No
| wandCard = Yes
| hideLink = No
| tooltips = No
| wandName = Ranged Wand of Examples
| wandPic = Wand 0413.png
| shuffle = No
| spellsCast = 2
| alwaysCasts = HOMING,DAMAGE
| spells = MANA_REDUCE,
MANA_REDUCE,
MANA_REDUCE,
MANA_REDUCE,
MANA_REDUCE,
RECHARGE,
RECHARGE,
RECHARGE,
RECHARGE,
DIVIDE_10,
DAMAGE,
BUCKSHOT
| castDelay = 0.50,1.2
| rechargeTime = 1.00,2.00
| manaMax = 500,7000
| manaCharge = 5,2000
| capacity = 2,16
| spread = -20,80
| speed = 1,5
}}
{{Wand2
| tooltips = No
| wandPic = Wand 0413.png
| capacity = 12
| shuffle = No
| spellsCast = 1
| alwaysCasts = INFESTATION,INFESTATION,INFESTATION,INFESTATION
| spells = MANA_REDUCE,MANA_REDUCE,MANA_REDUCE,MANA_REDUCE,MANA_REDUCE,RECHARGE,RECHARGE,RECHARGE,RECHARGE,DIVIDE_10,DAMAGE,BUCKSHOT
}}
{{Wand2
| tooltips = Yes
| wandPic = Wand 0413.png
| capacity = 12
| shuffle = No
| spellsCast = 1
| spells = MANA_REDUCE,MANA_REDUCE,MANA_REDUCE,MANA_REDUCE,MANA_REDUCE,RECHARGE,RECHARGE,RECHARGE,RECHARGE,DIVIDE_10,DAMAGE,BUCKSHOT
}}
Parameters
- All parameters are optional.
- Parameters without a default value are omitted from the output entirely.
- Both templates
{{Wand Card}}
and{{Wand}}
share the same parameter names and they may be used interchangeably. - The numbering of the
spell[X]
entries is to make them unique, and does not affect the order of spells in the wand. Spells will appear in the order they are listed, and blank spells will only appear where there is an empty entry. - Ranges for a value may be displayed by enclosing them in brackets, e.g.:
(0.17 - 0.34)
. Values with ranges will be omitted from the Wand Simulator link url.
Parameter | Default | Description |
---|---|---|
Wand configuration | ||
wandName |
Omitted | The name of the wand. If this field is blank, or missing, the wand name is omitted. [notes 1] |
wandPic |
Wand_0821.png | Specifies the wand image. Must include the filetype extension, e.g.: Wand handgun.png [notes 1]
|
shuffle |
No | Whether or not the wand is a shuffle-type wand. Can be Yes or No. |
spellsCast |
1 | The number of spells cast per cast. |
castDelay |
0.00 | The cast delay between each spell in the wand (in seconds). |
rechargeTime |
0.00 | The recharge delay between each cast (in seconds). |
manaMax |
500 | The maximum mana capacity of the wand. |
manaRecharge |
250 | The mana recharge rate of the wand (in mana per second). |
capacity |
1 | The capacity of the wand. Spell slots numbered greater than this will not be shown. |
spread |
0.0 | The spread of the wand's casts. |
speed |
1 | The speed multiplier of the wand's casts. [notes 1] |
alwaysCasts |
Omitted | The spell that the wand always casts. [notes 1] |
spell1 , spell2 ... spell(n) |
Comprises a list of the case sensitive names of the spells on the wand. The numbering must be unique, but has no effect on spell order - spells will appear on the wand in the order they're listed. However, spells numbered greater than specified wand capacity will not appear. An empty entry in the list produces an empty spell slot.
| |
Template configuration | ||
hideLink |
No | Set to Yes to hide the Wand Simulator link.
|
vertical |
Auto | Set to Yes to always display in a vertical (mobile-friendly) layout format (this is also enabled automatically on screens with width of less than 640px.) Set to No to disable the vertical mode entirely.
|