Changes

Template:Weapon Display

772 bytes added, 5 April
m
no edit summary
<includeonly><div style="text-align: center; flex: 0 0 25%"><!------><span style="transform: rotate({{#tag{rotation|0}}}deg); display: flex; justify-content: center; align-items: center; height: gallery |300px;"><!--- --->[[ {{#ifexist: Fileif:{{{nameimage|}}}.png | File:{{{nameimage}}}.png | File:{{{image|UNKNOWN IMAGE PLACEHOLDERname}}}.png }}|heights = 200px | style = transform: rotate({{{rotationimage_size|0250x300px}}}deg)]]<!---}}---></span><!------>{{#ifexist: Fileif:{{{nameicon|}}} Icon.png | [[File:{{{nameicon}}} Icon.png|35px]] | [[File:{{{icon|File:Miscellaneous Enemy name}}} Icon.png}}}|35px]]}} '''{{{name|Weapon Name?}}}'''<br><!------>{{#if: {{{note|}}} | <sub>''{{{note}}}''</sub><br>}}<!------>{{#if: {{{shot_types|}}} | <sub>'''''Shot typetypes:''' {{{shot_types}}}''</sub><br>}}<!------><subclass="currency-included">'''''Acquired From:'''<br>{{{acquisition|Acquisition?Standard Loot Drops}}}''</sub></div></includeonly><noinclude>===Technical Details===* If '''image''' and '''icon''' are not provided, they will be inferred from the '''name'''.
===Parameters===
{| border="1" class="wikitable TemplateDocumentation"
|-
! Parameter !! Required !! Description!! Default
|-
| name || {{yes}} || The name of the weapon.|| Weapon Name?
|-
| image || {{no}} || The image for the weapon.|| File:{{{name}}}.png
|-
| rotation image_size || {{no}} || How many degrees to rotate The dimensions for the weapon image display by.|| 250x300px
|-
| icon rotation || {{no}} || The icon for How many degrees to rotate the weaponimage display by.|| 0
|-
| shot_types icon || {{no}} || Valid shot types The icon for the weapon.|| File:{{{name}}} Icon.png
|-
| note || {{no}} || Additional notes about the weapon. || Nothing|-| shot_types || {{no}} || Valid shot types for the weapon. || Nothing|-| acquisition || {{yesno}} || Acquisition for the weapon.|| "Standard Loot Drops"
|}
===ExampleExamples==={| style="width:8095%;" cellpadding="20"
! style="font-size:150%; width: 50%;" | Wiki Text
! style="font-size:150%; width: 50%;" | Result
|-
|<div stylecode class="display: flex; justifytempdoc-code-content: center;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: tableflex; whitejustify-spacecontent: pre-wrapcenter;"><!--- ---><nowiki>  {{Weapon Display | name = Earth Guardian's SpearProtean Staff | rotation = 40 | image note = File:Earth Guardian's Spear.pngComes with Shrinkinator Unique Enemy Kill Animation | icon shot_types = File:Earth Guardian's Spear Icon.jpgBurst Shot | acquisition = Crystal Mine Chaos 8+The Emporium for 250 gems }}  </nowiki><!------></code>
</div>
|-|<code class="tempdoc-code-block"><nowiki> {{Weapon Display | name = Angelic Pavise }}</nowiki></code>|<div style="display: flex; justify-content: center;"> {{Weapon Display | name = Earth Guardian's Spear| image = File:Earth Guardian's Spear.png| icon = File:Earth Guardian's Spear Icon.jpg| acquisition = Crystal Mine Chaos 8+Angelic Pavise }}
</div>
|}
__NOEDITSECTION__
</noinclude>
__NOEDITSECTION__
WikiDefender, bureaucrat, administrator
736
edits