Changes

Template:Weapon Display

67 bytes removed, 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;"><!--- --->[[ {{#if: {{{image|}}} | {{{image}}} | File:{{{name}}}.png}}|heights = 300px | width = 300px | style = transform: rotate({{{rotationimage_size|0250x300px}}}deg)]]<!---}}---></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>* '''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>===Technical Details===
* If '''image''' and '''icon''' are not provided, they will be inferred from the '''name'''.
** '''The automatic detection for image and icon will stop working after 50 uses of this template on a single page, due to limitations with the #ifexist function that this template uses.'''
===Parameters===
|-
| 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
|}
===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---><code style | acquisition ="display: table; white-space: pre-wrap;"><!---The Emporium for 250 gems ---}}</nowiki><nowiki/code>| {| <div style="textdisplay:flex; justify-aligncontent: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 }} |}  </nowiki><!------></code>
</div>
|<div style="display: flex; justify-content: center;">
<div>
{| style="text-align:center;"
|-
|<code class="tempdoc-code-block"><nowiki>
{{Weapon Display
| name = Angelic Pavise
}}
</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 gemsAngelic Pavise }}|}</div>
</div>
|}
__NOEDITSECTION__
</noinclude>
__NOEDITSECTION__
WikiDefender, bureaucrat, administrator
736
edits