Difference between revisions of "Template:Pet Info"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
(Editing examples to properly reflect the template)
m
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[{{{ 1 | {{{icon|File:Miscellaneous Enemy Icon.png}}} }}}|66px]] '''[[{{{ 2 | {{{name|Pet Name}}} }}}]]''' - <!---
+
{| style="flex: 0 0 33%;"
 +
|[[{{{ 1 | {{{icon|File:Miscellaneous Enemy Icon.png}}} }}}|66px]] '''[[{{{ 2 | {{{name|Pet Name}}} }}}]]''' - <!---
 
--->{{#switch: {{{ 3 | {{{rarity|}}} }}}
 
--->{{#switch: {{{ 3 | {{{rarity|}}} }}}
 
     | Powerful  = <span style="color:#008000"> [[File:Powerful Icon.png|18px]] Powerful </span>
 
     | Powerful  = <span style="color:#008000"> [[File:Powerful Icon.png|18px]] Powerful </span>
Line 6: Line 7:
 
     | Legendary = <span style="color:#FFF380"> [[File:Legendary Icon.png|18px]] Legendary </span>
 
     | Legendary = <span style="color:#FFF380"> [[File:Legendary Icon.png|18px]] Legendary </span>
 
     | #default  = <span style="color:#808080"> [[File:Worn Icon.png|18px]] Rarity? </span>
 
     | #default  = <span style="color:#808080"> [[File:Worn Icon.png|18px]] Rarity? </span>
     }}<!--
+
     }}
 +
|}<!--
 
--><noinclude>
 
--><noinclude>
  
Line 31: Line 33:
 
</div>
 
</div>
 
|<div style="display: flex; justify-content: center;">
 
|<div style="display: flex; justify-content: center;">
     <p>{{Pet Info | File:Purrlin icon.png | Purrlin | Powerful}}</p>
+
     {{Pet Info | File:Purrlin icon.png | Purrlin | Powerful}}
 
</div>
 
</div>
 
|-
 
|-
Line 48: Line 50:
 
</div>
 
</div>
 
|<div style="display: flex; justify-content: center;">
 
|<div style="display: flex; justify-content: center;">
     <p>
+
     {{Pet Info  
        {{Pet Info  
+
    | icon = File:Purrlin icon.png
        | icon = File:Purrlin icon.png
+
    | name = Purrlin
        | name = Purrlin
+
    | rarity = Powerful
        | rarity = Powerful
+
    }}
        }}
 
    </p>
 
 
</div>
 
</div>
 
|}
 
|}
  
 +
__NOEDITSECTION__
 
</noinclude>
 
</noinclude>
__NOEDITSECTION__
 

Latest revision as of 21:06, 13 December 2024

Miscellaneous Enemy Icon.png Pet Name - Worn Icon.png Rarity?

Parameters

Parameter Description
icon The icon for the pet. File:Miscellaneous Enemy Icon.png will be used if this parameter is not set.
name Name of the pet.
rarity Rarity of the pet.

Example

Wiki Text Result
{{Pet Info | File:Purrlin icon.png | Purrlin | Powerful}}
Purrlin icon.png Purrlin - Powerful Icon.png Powerful
{{Pet Info | icon = File:Purrlin icon.png | name = Purrlin | rarity = Powerful }}
Purrlin icon.png Purrlin - Powerful Icon.png Powerful