Difference between revisions of "Template:Weapon Display"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
(Fixing gallery tag issues)
(Fixing the example; Minor fix to template)
Line 12: Line 12:
 
   | <sub>'''''Shot type:''' {{{shot_types}}}''</sub><br>
 
   | <sub>'''''Shot type:''' {{{shot_types}}}''</sub><br>
 
}}
 
}}
<sub>'''''Acquired From:'''<br>{{{acquisition|Acquisition?}}}''</sub>
+
<sub>'''''Acquired From:'''<br>{{{acquisition|Acquisition?}}}''</sub><noinclude>
<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.'''
  
 
===Parameters===
 
===Parameters===
Line 42: Line 43:
 
     ---><nowiki>
 
     ---><nowiki>
  
            {{Weapon Display
+
      {| style="text-align:center;"
            | name = Earth Guardian's Spear
+
      |-
            | image = File:Earth Guardian's Spear.png
+
      |
            | icon = File:Earth Guardian's Spear Icon.jpg
+
      {{Weapon Display
            | acquisition = Crystal Mine Chaos 8+
+
      | name = Earth Guardian's Spear
            }}
+
      | image = File:Earth Guardian's Spear.png
 +
      | icon = File:Earth Guardian's Spear Icon.jpg    
 +
      | acquisition = Crystal Mine Chaos 8+
 +
      }}
 +
      |}
  
 
         </nowiki><!---
 
         </nowiki><!---
Line 53: Line 58:
 
</div>
 
</div>
 
|<div style="display: flex; justify-content: center;">
 
|<div style="display: flex; justify-content: center;">
 +
<div>
 +
{| style="text-align:center;"
 +
|-
 +
|
 
{{Weapon Display
 
{{Weapon Display
 
| name = Earth Guardian's Spear
 
| name = Earth Guardian's Spear
Line 59: Line 68:
 
| acquisition = Crystal Mine Chaos 8+
 
| acquisition = Crystal Mine Chaos 8+
 
}}
 
}}
 +
|}
 +
</div>
 
</div>
 
</div>
 
|}
 
|}

Revision as of 12:40, 12 October 2023

Miscellaneous Enemy Icon.png Weapon Name?

Acquired From:
Acquisition?

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.

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 | icon = File:Earth Guardian's Spear Icon.jpg | acquisition = Crystal Mine Chaos 8+ }} |}

35px Earth Guardian's Spear


Acquired From:
Crystal Mine Chaos 8+