Template:Weapon Display

From Dungeon Defenders 2 Wiki
Revision as of 19:15, 12 October 2023 by Hywell (talk | contribs) (Listing Defaults for parameters in the documentation, added default for acquisition)

Jump to: navigation, search
  • 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

Parameter Required Description Default
name TickGreen.png The name of the weapon. Weapon Name?
image CrossWhite.png The image for the weapon. File:{{{name}}}.png
rotation CrossWhite.png How many degrees to rotate the weapon image display by. 0
icon CrossWhite.png The icon for the weapon. File:{{{name}}} Icon.png
shot_types CrossWhite.png Valid shot types for the weapon. Nothing
acquisition CrossWhite.png Acquisition for the weapon. "Standard Loot Drops"

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+ }} |}

35px Earth Guardian's Spear


Acquired From:
Crystal Mine Chaos 8+