Difference between revisions of "Template:Weapon Display"
From Dungeon Defenders 2 Wiki
(Changing flex to be 4 items per row) |
(Adjusting image size to better accommodate different sized weapons) |
||
| Line 1: | Line 1: | ||
<includeonly><div style="text-align: center; flex: 0 0 25%"><!--- | <includeonly><div style="text-align: center; flex: 0 0 25%"><!--- | ||
| − | --->{{ | + | ---><span style="transform: rotate({{{rotation|0}}}deg); display: block;"><!--- |
| − | + | --->[[ {{ #if: {{{image|}}} | {{{image}}} | File:{{{name}}}.png }} | {{{image_size|250x300px}}} ]]<!--- | |
| − | + | ---></span><!--- | |
| − | |||
| − | |||
| − | |||
--->{{#if: {{{icon|}}} | [[{{{icon}}}|35px]] | [[File:{{{name}}} Icon.png|35px]]}} '''{{{name|Weapon Name?}}}'''<br><!--- | --->{{#if: {{{icon|}}} | [[{{{icon}}}|35px]] | [[File:{{{name}}} Icon.png|35px]]}} '''{{{name|Weapon Name?}}}'''<br><!--- | ||
--->{{#if: {{{note|}}} | <sub>''{{{note}}}''</sub><br>}}<!--- | --->{{#if: {{{note|}}} | <sub>''{{{note}}}''</sub><br>}}<!--- | ||
| Line 23: | Line 20: | ||
|- | |- | ||
| image || {{no}} || The image for the weapon. || File:{{{name}}}.png | | image || {{no}} || The image for the weapon. || File:{{{name}}}.png | ||
| + | |- | ||
| + | | image_size || {{no}} || The dimensions for the image. || 250x300px | ||
|- | |- | ||
| rotation || {{no}} || How many degrees to rotate the weapon image display by. || 0 | | rotation || {{no}} || How many degrees to rotate the weapon image display by. || 0 | ||
| Line 36: | Line 35: | ||
===Examples=== | ===Examples=== | ||
| − | {| style="width:95%;" | + | {| style="width:95%;" cellpadding="20" |
! 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 | ||
| Line 58: | Line 57: | ||
| shot_types = Burst Shot | | shot_types = Burst Shot | ||
| acquisition = The Emporium for 250 gems | | acquisition = The Emporium for 250 gems | ||
| + | }} | ||
| + | </div> | ||
| + | |- | ||
| + | |<code class="tempdoc-code-block"><nowiki> | ||
| + | {{Weapon Display | ||
| + | | name = Angelic Pavise | ||
| + | }} | ||
| + | |||
| + | </nowiki></code> | ||
| + | | | ||
| + | <div style="display:flex; justify-content: center;"> | ||
| + | {{Weapon Display | ||
| + | | name = Angelic Pavise | ||
}} | }} | ||
</div> | </div> | ||
Revision as of 12:31, 5 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
}}
|
|
{{Weapon Display
| name = Angelic Pavise
}}
|

