Difference between revisions of "Template:Weapon Display"
From Dungeon Defenders 2 Wiki
(Replacing unknown weapon placeholder text with an image) |
|||
Line 3: | Line 3: | ||
{{#ifexist: File:{{{name}}}.png | {{#ifexist: File:{{{name}}}.png | ||
| File:{{{name}}}.png | | File:{{{name}}}.png | ||
− | | {{{image| | + | | {{{image|File:Unknown Weapon.png}}} |
}}|heights = 200px | style = transform: rotate({{{rotation|0}}}deg) | }}|heights = 200px | style = transform: rotate({{{rotation|0}}}deg) | ||
}} | }} |
Revision as of 14:34, 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+
}}
|}
|
|