Difference between revisions of "Template:Weapon Display"
From Dungeon Defenders 2 Wiki
(Created page with "<gallery heights=200px style="transform: rotate({{{rotation|0}}}deg)"> {{#ifexist File:{{{name}}}.png | File:{{{name}}}.png | {{{image|UNKNOWN IMAGE PLACEHOLDER}}} }} </ga...") |
(Fixing mistake with if statements) |
||
Line 1: | Line 1: | ||
<gallery heights=200px style="transform: rotate({{{rotation|0}}}deg)"> | <gallery heights=200px style="transform: rotate({{{rotation|0}}}deg)"> | ||
− | {{#ifexist File:{{{name}}}.png | + | {{#ifexist: File:{{{name}}}.png |
| File:{{{name}}}.png | | File:{{{name}}}.png | ||
| {{{image|UNKNOWN IMAGE PLACEHOLDER}}} | | {{{image|UNKNOWN IMAGE PLACEHOLDER}}} | ||
}} | }} | ||
</gallery> | </gallery> | ||
− | {{#ifexist File:{{{name}}} Icon.png | + | {{#ifexist: File:{{{name}}} Icon.png |
| [[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?}}}'''<br> | ||
− | {{#if {{{shot_types|}}} | + | {{#if: {{{shot_types|}}} |
| <sub>'''''Shot type:''' {{{shot_types}}}''</sub><br> | | <sub>'''''Shot type:''' {{{shot_types}}}''</sub><br> | ||
}} | }} |
Revision as of 12:00, 12 October 2023
Acquired From:
Acquisition?
Parameters
Example
Wiki Text | Result |
---|---|
{{Weapon Display
| name = Earth Guardian's Spear
| image = File:Earth Guardian's Spear.png
| icon = File:Earth Guradian's Spear Icon.png
| acquisition = Crystal Mine Chaos 8+
}}
|