Difference between revisions of "Template:Weapon Display"
From Dungeon Defenders 2 Wiki
(Replacing unknown weapon placeholder text with an image) |
(Listing Defaults for parameters in the documentation, added default for acquisition) |
||
Line 13: | Line 13: | ||
| <sub>'''''Shot type:''' {{{shot_types}}}''</sub><br> | | <sub>'''''Shot type:''' {{{shot_types}}}''</sub><br> | ||
}} | }} | ||
− | <sub>'''''Acquired From:'''<br>{{{acquisition| | + | <sub>'''''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 19: | Line 19: | ||
===Parameters=== | ===Parameters=== | ||
− | {| border="1" | + | {| border="1" class="TemplateDocumentation" |
|- | |- | ||
− | ! Parameter !! Required !! Description | + | ! Parameter !! Required !! Description !! Default |
|- | |- | ||
− | | name || {{yes}} || The name of the weapon. | + | | name || {{yes}} || The name of the weapon. || Weapon Name? |
|- | |- | ||
− | | image || {{no}} || The image for the weapon. | + | | image || {{no}} || The image for the weapon. || File:{{{name}}}.png |
|- | |- | ||
− | | rotation || {{no}} || How many degrees to rotate the weapon image display by. | + | | rotation || {{no}} || How many degrees to rotate the weapon image display by. || 0 |
|- | |- | ||
− | | icon || {{no}} || The icon for the weapon. | + | | icon || {{no}} || The icon for the weapon. || File:{{{name}}} Icon.png |
|- | |- | ||
− | | shot_types || {{no}} || Valid shot types for the weapon. | + | | shot_types || {{no}} || Valid shot types for the weapon. || Nothing |
|- | |- | ||
− | | acquisition || {{ | + | | acquisition || {{no}} || Acquisition for the weapon. || "Standard Loot Drops" |
|} | |} | ||
Revision as of 18:15, 12 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 = Earth Guardian's Spear
| image = File:Earth Guardian's Spear.png
| rotation = 40
| icon = File:Earth Guardian's Spear Icon.jpg
| acquisition = Crystal Mine Chaos 8+
}}
|}
|
|