Difference between revisions of "Template:Pet Info"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
(Created page with "{| style="display: inline-table; width:30%;" |[[{{{icon|File:Miscellaneous Enemy Icon.png}}}|66px]] '''[[{{{name|Pet Name}}}]]''' - <!--- --->{{#switch: {{{rarity|}}} | Po...")
 
(Accidentally overwrote the wrong page)
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| style="display: inline-table; width:30%;"
+
{| style="flex: 0 0 33%;"
|[[{{{icon|File:Miscellaneous Enemy Icon.png}}}|66px]] '''[[{{{name|Pet Name}}}]]''' - <!---
+
|[[{{{ 1 | {{{icon|File:Miscellaneous Enemy Icon.png}}} }}}|66px]] '''[[{{{ 2 | {{{name|Pet Name}}} }}}]]''' - <!---
--->{{#switch: {{{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>
 
     | Epic      = <span style="color:#3366ff"> [[File:Epic Icon.png|18px]] Epic </span>
 
     | Epic      = <span style="color:#3366ff"> [[File:Epic Icon.png|18px]] Epic </span>
Line 26: Line 26:
 
! 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
 +
|-
 +
|<div style="display: flex; justify-content: center;"><!---
 +
---><code style="display: table; white-space: pre-wrap;"><!---
 +
    ---><nowiki>{{Pet Info | File:Purrlin icon.png | Purrlin | Powerful}}</nowiki><!---
 +
---></code>
 +
</div>
 +
|<div style="display: flex; justify-content: center;">
 +
    {{Pet Info | File:Purrlin icon.png | Purrlin | Powerful}}
 +
</div>
 
|-
 
|-
 
|<div style="display: flex; justify-content: center;"><!---
 
|<div style="display: flex; justify-content: center;"><!---
Line 40: Line 49:
 
---></code>
 
---></code>
 
</div>
 
</div>
|<div style="display: flex; justify-content: center; flex-direction: row-reverse;">
+
|<div style="display: flex; justify-content: center;">
 
     {{Pet Info  
 
     {{Pet Info  
 
     | icon = File:Purrlin icon.png
 
     | icon = File:Purrlin icon.png

Latest revision as of 23:02, 14 February 2023

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