Difference between revisions of "Template:Weapon Display"
From Dungeon Defenders 2 Wiki
(Fixing the example; Minor fix to template) |
(Cleaning up the page and adding more detail to the documentation and example) |
||
Line 1: | Line 1: | ||
+ | <includeonly> | ||
{{#tag: gallery | | {{#tag: gallery | | ||
{{#ifexist: File:{{{name}}}.png | {{#ifexist: File:{{{name}}}.png | ||
Line 12: | Line 13: | ||
| <sub>'''''Shot type:''' {{{shot_types}}}''</sub><br> | | <sub>'''''Shot type:''' {{{shot_types}}}''</sub><br> | ||
}} | }} | ||
− | <sub>'''''Acquired From:'''<br>{{{acquisition|Acquisition?}}}''</sub><noinclude> | + | <sub>'''''Acquired From:'''<br>{{{acquisition|Acquisition?}}}''</sub><!-- |
− | + | --></includeonly><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.''' | + | * '''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.'''<br> |
+ | * If '''image''' and '''icon''' are not provided, they will be inferred from the '''name'''. | ||
===Parameters=== | ===Parameters=== | ||
Line 49: | Line 51: | ||
| name = Earth Guardian's Spear | | name = Earth Guardian's Spear | ||
| image = File:Earth Guardian's Spear.png | | image = File:Earth Guardian's Spear.png | ||
+ | | rotation = 40 | ||
| icon = File:Earth Guardian's Spear Icon.jpg | | icon = File:Earth Guardian's Spear Icon.jpg | ||
| acquisition = Crystal Mine Chaos 8+ | | acquisition = Crystal Mine Chaos 8+ | ||
Line 65: | Line 68: | ||
| name = Earth Guardian's Spear | | name = Earth Guardian's Spear | ||
| image = File:Earth Guardian's Spear.png | | image = File:Earth Guardian's Spear.png | ||
+ | | rotation = 40 | ||
| icon = File:Earth Guardian's Spear Icon.jpg | | icon = File:Earth Guardian's Spear Icon.jpg | ||
| acquisition = Crystal Mine Chaos 8+ | | acquisition = Crystal Mine Chaos 8+ |
Revision as of 12:48, 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+
}}
|}
|
|