Difference between revisions of "Template:Weapon Display"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
m (test)
m (Test)
Line 4: Line 4:
 
   | {{{image}}}
 
   | {{{image}}}
 
   | File:{{{name}}}.png
 
   | File:{{{name}}}.png
}}|width = 900px | style = transform: rotate({{{rotation|0}}}deg)
+
}}|widths = 300px | style = transform: rotate({{{rotation|0}}}deg)
 
}}
 
}}
 
{{#if: {{{icon|}}}
 
{{#if: {{{icon|}}}

Revision as of 09:50, 17 December 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.
    • The automatic detection for image and icon will stop working after 50 uses of this template on a single page, due to limitations with the #ifexist function that this template uses.

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
note CrossWhite.png Additional notes about the weapon. Nothing
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 = Protean Staff | rotation = 40 | note = Comes with Shrinkinator Unique Enemy Kill Animation | shot_types = Burst Shot | acquisition = The Emporium for 250 gems }} |}

Protean Staff Icon.png Protean Staff
Comes with Shrinkinator Unique Enemy Kill Animation
Shot types: Burst Shot
Acquired From:
The Emporium for 250 gems