Difference between revisions of "Template:Weapon Display"
(Created page with "<gallery heights=200px style="transform: rotate({{{rotation|0}}}deg)"> {{#ifexist File:{{{name}}}.png | File:{{{name}}}.png | {{{image|UNKNOWN IMAGE PLACEHOLDER}}} }} </ga...") |
m |
||
| (33 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | < | + | <includeonly><div style="text-align: center; flex: 0 0 25%"><!--- |
| − | {{# | + | ---><span style="transform: rotate({{{rotation|0}}}deg); display: flex; justify-content: center; align-items: center; height:300px;"><!--- |
| − | + | --->[[ {{ #if: {{{image|}}} | {{{image}}} | File:{{{name}}}.png }} | {{{image_size|250x300px}}} ]]<!--- | |
| − | + | ---></span><!--- | |
| − | + | --->{{#if: {{{icon|}}} | [[{{{icon}}}|35px]] | [[File:{{{name}}} Icon.png|35px]]}} '''{{{name|Weapon Name?}}}'''<br><!--- | |
| − | </ | + | --->{{#if: {{{note|}}} | <sub>''{{{note}}}''</sub><br>}}<!--- |
| − | {{# | + | --->{{#if: {{{shot_types|}}} | <sub>'''''Shot types:''' {{{shot_types}}}''</sub><br>}}<!--- |
| − | + | ---><sub class="currency-included">'''''Acquired From:'''<br>{{{acquisition|Standard Loot Drops}}}''</sub> | |
| − | + | </div></includeonly><noinclude> | |
| − | }} '''{{{name|Weapon Name?}}}'''<br> | + | ===Technical Details=== |
| − | {{#if {{{shot_types|}}} | + | * If '''image''' and '''icon''' are not provided, they will be inferred from the '''name'''. |
| − | |||
| − | }} | ||
| − | <sub>'''''Acquired From:'''<br>{{{acquisition| | ||
| − | <noinclude> | ||
===Parameters=== | ===Parameters=== | ||
| − | {| border="1" | + | {| border="1" class="wikitable TemplateDocumentation" |
|- | |- | ||
| − | ! Parameter !! Required !! Description | + | ! Parameter !! Required !! Description !! Default |
|- | |- | ||
| − | | name || {{yes}} || The name of the weapon. | + | | name || {{yes}} || The name of the weapon. || Weapon Name? |
|- | |- | ||
| − | | image || {{no}} || The image for the weapon. | + | | 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 |
|- | |- | ||
| − | | | + | | icon || {{no}} || The icon for the weapon. || File:{{{name}}} Icon.png |
|- | |- | ||
| − | | acquisition || {{ | + | | note || {{no}} || Additional notes about the weapon. || Nothing |
| + | |- | ||
| + | | shot_types || {{no}} || Valid shot types for the weapon. || Nothing | ||
| + | |- | ||
| + | | acquisition || {{no}} || Acquisition for the weapon. || "Standard Loot Drops" | ||
|} | |} | ||
| − | === | + | ===Examples=== |
| − | {| style="width: | + | {| 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 | ||
|- | |- | ||
| − | |< | + | |<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 | |
| − | + | | name = Protean Staff | |
| + | | rotation = 40 | ||
| + | | note = Comes with Shrinkinator Unique Enemy Kill Animation | ||
| + | | shot_types = Burst Shot | ||
| + | | acquisition = The Emporium for 250 gems | ||
| + | }} | ||
</div> | </div> | ||
| − | |<div style="display: flex; justify-content: center;"> | + | |- |
| − | {{Weapon Display | + | |<code class="tempdoc-code-block"><nowiki> |
| − | | name = | + | {{Weapon Display |
| − | + | | name = Angelic Pavise | |
| − | + | }} | |
| − | + | </nowiki></code> | |
| − | }} | + | | |
| + | <div style="display:flex; justify-content: center;"> | ||
| + | {{Weapon Display | ||
| + | | name = Angelic Pavise | ||
| + | }} | ||
</div> | </div> | ||
|} | |} | ||
| + | __NOEDITSECTION__ | ||
</noinclude> | </noinclude> | ||
| − | |||
Latest revision as of 14:28, 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
}}
|

