Difference between revisions of "Template:Weapon Display"
From Dungeon Defenders 2 Wiki
m |
(Reworking this template to be self contained in a div) |
||
| Line 1: | Line 1: | ||
| − | <includeonly> | + | <!-- <includeonly><div style="display:flex; justify-content: center; text-align: center;"> --> |
| − | {{#tag: gallery | | + | <includeonly><div style="text-align: center;"><!--- |
| − | {{#if: {{{image|}}} | + | --->{{#tag: gallery | |
| − | + | {{#if: {{{image|}}} | |
| − | + | | {{{image}}} | |
| − | }}|heights = 200px | style = transform: rotate({{{rotation|0}}}deg) | + | | File:{{{name}}}.png |
| − | }} | + | }}|heights = 200px | style = transform: rotate({{{rotation|0}}}deg) |
| − | {{#if: {{{icon|}}} | + | }}<!--- |
| − | + | --->{{#if: {{{icon|}}} | [[{{{icon}}}|35px]] | [[File:{{{name}}} Icon.png|35px]]}} '''{{{name|Weapon Name?}}}'''<br><!--- | |
| − | + | --->{{#if: {{{note|}}} | <sub>''{{{note}}}''</sub><br>}}<!--- | |
| − | }} '''{{{name|Weapon Name?}}}'''<br> | + | --->{{#if: {{{shot_types|}}} | <sub>'''''Shot types:''' {{{shot_types}}}''</sub><br>}}<!--- |
| − | {{#if: {{{note|}}} | + | ---><sub class="currency-included">'''''Acquired From:'''<br>{{{acquisition|Standard Loot Drops}}}''</sub> |
| − | + | </div></includeonly><noinclude><!--- | |
| − | }} | + | =========================================================================================================================== |
| − | {{#if: {{{shot_types|}}} | + | --->===Technical Details=== |
| − | |||
| − | }} | ||
| − | <sub class="currency-included">'''''Acquired From:'''<br>{{{acquisition|Standard Loot Drops}}}''</sub>< | ||
| − | |||
| − | |||
* If '''image''' and '''icon''' are not provided, they will be inferred from the '''name'''. | * If '''image''' and '''icon''' are not provided, they will be inferred from the '''name'''. | ||
| − | |||
===Parameters=== | ===Parameters=== | ||
| Line 42: | Line 36: | ||
|} | |} | ||
| − | === | + | ===Examples=== |
| − | {| style="width: | + | {| style="width:95%;" |
! style="font-size:150%; width: 50%;" | Wiki Text | ! style="font-size:150%; width: 50%;" | Wiki Text | ||
! style="font-size:150%; width: 50%;" | Result | ! style="font-size:150%; width: 50%;" | Result | ||
|- | |- | ||
| − | |< | + | |<code class="tempdoc-code-block"><nowiki> |
| − | + | {{Weapon Display | |
| − | + | | name = Protean Staff | |
| − | + | | rotation = 40 | |
| − | + | | note = Comes with Shrinkinator Unique Enemy Kill Animation | |
| − | + | | shot_types = Burst Shot | |
| − | + | | acquisition = The Emporium for 250 gems | |
| − | + | }} | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | </nowiki></code> | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| | | | ||
| + | <div style="display:flex; justify-content: center;"> | ||
{{Weapon Display | {{Weapon Display | ||
| name = Protean Staff | | name = Protean Staff | ||
| Line 78: | Line 60: | ||
| acquisition = The Emporium for 250 gems | | acquisition = The Emporium for 250 gems | ||
}} | }} | ||
| − | |||
| − | |||
</div> | </div> | ||
|} | |} | ||
| + | |||
__NOEDITSECTION__ | __NOEDITSECTION__ | ||
</noinclude> | </noinclude> | ||
Revision as of 22:25, 3 April 2025
Technical Details
- If image and icon are not provided, they will be inferred from the name.
Parameters
Examples
| Wiki Text | Result |
|---|---|
{{Weapon Display
| name = Protean Staff
| rotation = 40
| note = Comes with Shrinkinator Unique Enemy Kill Animation
| shot_types = Burst Shot
| acquisition = The Emporium for 250 gems
}}
|
