Difference between revisions of "Template:Weapon Display"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
(Cleaning up the page and adding more detail to the documentation and example)
(Removing extra break)
Line 9: Line 9:
 
   | [[File:{{{name}}} Icon.png|35px]]
 
   | [[File:{{{name}}} Icon.png|35px]]
 
   | [[{{{icon|File:Miscellaneous Enemy Icon.png}}}|35px]]
 
   | [[{{{icon|File:Miscellaneous Enemy Icon.png}}}|35px]]
}} '''{{{name|Weapon Name?}}}'''<br>
+
}} '''{{{name|Weapon Name?}}}'''
 
{{#if: {{{shot_types|}}}
 
{{#if: {{{shot_types|}}}
 
   | <sub>'''''Shot type:''' {{{shot_types}}}''</sub><br>
 
   | <sub>'''''Shot type:''' {{{shot_types}}}''</sub><br>

Revision as of 14:01, 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

Parameter Required Description
name TickGreen.png The name of the weapon.
image CrossWhite.png The image for the weapon.
rotation CrossWhite.png How many degrees to rotate the weapon image display by.
icon CrossWhite.png The icon for the weapon.
shot_types CrossWhite.png Valid shot types for the weapon.
acquisition TickGreen.png Acquisition for the weapon.

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+