Difference between revisions of "Template:Weapon Display"
From Dungeon Defenders 2 Wiki
(Listing Defaults for parameters in the documentation, added default for acquisition) |
(Added "note" parameter, applied "currency-included" class to "acquisition" parameter, and changed the example to better showcase all the parameters) |
||
Line 10: | Line 10: | ||
| [[{{{icon|File:Miscellaneous Enemy Icon.png}}}|35px]] | | [[{{{icon|File:Miscellaneous Enemy Icon.png}}}|35px]] | ||
}} '''{{{name|Weapon Name?}}}'''<br> | }} '''{{{name|Weapon Name?}}}'''<br> | ||
+ | {{#if: {{{note|}}} | ||
+ | | <sub>''{{{note}}}''</sub><br> | ||
+ | }} | ||
{{#if: {{{shot_types|}}} | {{#if: {{{shot_types|}}} | ||
− | | <sub>'''''Shot | + | | <sub>'''''Shot types:''' {{{shot_types}}}''</sub><br> |
}} | }} | ||
− | <sub>'''''Acquired From:'''<br>{{{acquisition|Standard Loot Drops}}}''</sub><!-- | + | <sub class="currency-included">'''''Acquired From:'''<br>{{{acquisition|Standard Loot Drops}}}''</sub><!-- |
--></includeonly><noinclude> | --></includeonly><noinclude> | ||
* '''This Template may not produce the desired output if not placed in a table with text align set to center. Refer to weapons pages such as [[Polearms]] for examples.'''<br> | * '''This Template may not produce the desired output if not placed in a table with text align set to center. Refer to weapons pages such as [[Polearms]] for examples.'''<br> | ||
Line 30: | Line 33: | ||
|- | |- | ||
| icon || {{no}} || The icon for the weapon. || File:{{{name}}} Icon.png | | icon || {{no}} || The icon for the weapon. || File:{{{name}}} Icon.png | ||
+ | |- | ||
+ | | note || {{no}} || Additional notes about the weapon. || Nothing | ||
|- | |- | ||
| shot_types || {{no}} || Valid shot types for the weapon. || Nothing | | shot_types || {{no}} || Valid shot types for the weapon. || Nothing | ||
Line 49: | Line 54: | ||
| | | | ||
{{Weapon Display | {{Weapon Display | ||
− | | name = | + | | name = Protean Staff |
− | |||
| rotation = 40 | | rotation = 40 | ||
− | | | + | | note = Comes with Shrinkinator Unique Enemy Kill Animation |
− | | acquisition = | + | | shot_types = Burst Shot |
+ | | acquisition = The Emporium for 250 gems | ||
}} | }} | ||
|} | |} | ||
Line 66: | Line 71: | ||
| | | | ||
{{Weapon Display | {{Weapon Display | ||
− | | name = | + | | name = Protean Staff |
− | |||
| rotation = 40 | | rotation = 40 | ||
− | | | + | | note = Comes with Shrinkinator Unique Enemy Kill Animation |
− | | acquisition = | + | | shot_types = Burst Shot |
+ | | acquisition = The Emporium for 250 gems | ||
}} | }} | ||
|} | |} |
Revision as of 13:47, 13 October 2023
- This Template may not produce the desired output if not placed in a table with text align set to center. Refer to weapons pages such as Polearms for examples.
- If image and icon are not provided, they will be inferred from the name.
Parameters
Example
Wiki Text | Result |
---|---|
{| style="text-align:center;"
|-
|
{{Weapon Display
| name = Protean Staff
| rotation = 40
| note = Comes with Shrinkinator Unique Enemy Kill Animation
| shot_types = Burst Shot
| acquisition = The Emporium for 250 gems
}}
|}
|