Difference between pages "File:Dapper Ghost Cat Icon.png" and "Template:Weapon Display"

From Dungeon Defenders 2 Wiki
(Difference between pages)
Jump to: navigation, search
 
m (Enlarging image test)
 
Line 1: Line 1:
 +
<includeonly>
 +
{{#tag: gallery |
 +
{{#if: {{{image|}}}
 +
  | {{{image}}}
 +
  | File:{{{name}}}.png
 +
}}|heights = 300px | style = transform: rotate({{{rotation|0}}}deg)
 +
}}
 +
{{#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><!--
 +
--></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>
 +
* 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===
 +
{| 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 || {{no}} || How many degrees to rotate the weapon image display by. || 0
 +
|-
 +
| icon || {{no}} || 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 || {{no}} || Acquisition for the weapon. || "Standard Loot Drops"
 +
|}
 +
 +
===Example===
 +
{| style="width:80%;"
 +
! style="font-size:150%; width: 50%;" | Wiki Text
 +
! style="font-size:150%; width: 50%;" | Result
 +
|-
 +
|<div style="display: flex; justify-content: center;"><!---
 +
---><code style="display: table; white-space: pre-wrap;"><!---
 +
    ---><nowiki>
 +
 +
      {| style="text-align: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;"
 +
|-
 +
|
 +
{{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>
 +
|}
 +
 +
</noinclude>
 +
__NOEDITSECTION__

Revision as of 09:22, 17 December 2023

  • 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.
  • 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

Parameter Required Description Default
name TickGreen.png The name of the weapon. Weapon Name?
image CrossWhite.png The image for the weapon. File:{{{name}}}.png
rotation CrossWhite.png How many degrees to rotate the weapon image display by. 0
icon CrossWhite.png The icon for the weapon. File:{{{name}}} Icon.png
note CrossWhite.png Additional notes about the weapon. Nothing
shot_types CrossWhite.png Valid shot types for the weapon. Nothing
acquisition CrossWhite.png Acquisition for the weapon. "Standard Loot Drops"

Example

Wiki Text Result
{| style="text-align: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 }} |}
Protean Staff.pngProtean Staff Icon.png Protean Staff
Comes with Shrinkinator Unique Enemy Kill Animation
Shot types: Burst Shot
Acquired From:
The Emporium for 250 gems


File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current18:44, 24 October 2023Thumbnail for version as of 18:44, 24 October 202363 × 63 (10 KB)Intasa (talk | contribs)
  • You cannot overwrite this file.

The following 2 pages link to this file: