Difference between revisions of "Template:Pet Info"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
(Adding some margin)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| style="flex: 0 0 100%;"
+
<includeonly><div style="flex: 0 0 33%; margin: 5px 0;"><!---
| [[{{{ 1 | {{{icon|File:Miscellaneous Enemy Icon.png}}} }}}|66px]]
+
--->[[{{{ 1 | {{{icon|File:Miscellaneous Enemy Icon.png}}} }}}|66px]] '''[[{{{ 2 | {{{name|Pet Name?}}} }}}]]''' - <!---
|
 
* '''[[{{{ 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 8: Line 6:
 
     | Mythical  = <span style="color:#ff00ff"> [[File:Mythical Icon.png|18px]] Mythical </span>
 
     | Mythical  = <span style="color:#ff00ff"> [[File:Mythical Icon.png|18px]] Mythical </span>
 
     | Legendary = <span style="color:#FFF380"> [[File:Legendary Icon.png|18px]] Legendary </span>
 
     | Legendary = <span style="color:#FFF380"> [[File:Legendary Icon.png|18px]] Legendary </span>
    | Any      = [[File:Worn Icon.png|18px]] Can hatch in any rarity
 
 
     | #default  = <span style="color:#808080"> [[File:Worn Icon.png|18px]] Rarity? </span>
 
     | #default  = <span style="color:#808080"> [[File:Worn Icon.png|18px]] Rarity? </span>
 
     }}
 
     }}
* <span class="gem-cost-included"> {{{ 4 | {{{obtain|Method of obtaining this pet is not known.}}} }}} </span>
+
</div></includeonly><noinclude>
* Special Ability: '''{{{ 5 | {{{ability1|Ability?}}} }}}''' {{#if: {{{ 6 | {{{ability2|}}} }}} | or '''{{{ 6 | {{{ability2}}} }}}'''}} {{#if: {{{ 7 | {{{ability3|}}} }}} | or '''{{{ 7 | {{{ability3}}} }}}'''}}
+
===Parameters===
|}<!--
+
{| border="1" class="wikitable TemplateDocumentation"
--><noinclude>
+
! Parameter !! Required !! Description !! Default
 +
|-
 +
| icon || {{yes}} || The icon for the pet. || <code>File:Miscellaneous Enemy Icon.png</code>
 +
|-
 +
| name || {{yes}} || Name of the pet. || Pet Name?
 +
|-
 +
| rarity || {{yes}} || Rarity of the pet. || Rarity?
 +
|}
  
 +
===Example===
 +
{| style="width:95%;" cellpadding="20"
 +
! style="font-size:150%; width: 50%;" | Wiki Text
 +
! style="font-size:150%; width: 50%;" | Result
 +
|-
 +
|<code class="tempdoc-code-block"><nowiki>
 +
    {{Pet Info | File:Purrlin icon.png | Purrlin | Powerful}}
 +
</nowiki></code>
 +
|
 +
<div style="display: flex; justify-content: center;">
 +
    {{Pet Info | File:Purrlin icon.png | Purrlin | Powerful}}
 +
</div>
 +
|-
 +
|<code class="tempdoc-code-block"><nowiki>
 +
    {{Pet Info
 +
    | icon = File:Purrlin icon.png         
 +
    | name = Purrlin
 +
    | rarity = Powerful
 +
    }}
 +
</nowiki></code>
 +
|
 
<div style="display: flex; justify-content: center;">
 
<div style="display: flex; justify-content: center;">
     {{Special Pet Info
+
     {{Pet Info  
     | File:Katkarot icon.png
+
     | icon = File:Purrlin icon.png
     | Katkarot
+
     | name = Purrlin
    | Any
+
     | rarity = Powerful
    | Costs 250 gems
 
    | Metsu Gatodouken
 
     | Shinku Gatodouken
 
 
     }}
 
     }}
 
</div>
 
</div>
 +
|}
  
 +
__NOEDITSECTION__
 
</noinclude>
 
</noinclude>

Latest revision as of 15:07, 7 April 2025

Parameters

Parameter Required Description Default
icon TickGreen.png The icon for the pet. File:Miscellaneous Enemy Icon.png
name TickGreen.png Name of the pet. Pet Name?
rarity TickGreen.png Rarity of the pet. Rarity?

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