Difference between revisions of "Template:Special Pet Info"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
(Improving documentation and wikitext)
 
Line 1: Line 1:
<div style="flex: 0 0 50%;">
+
<includeonly><div style="flex: 0 0 50%;">
 
{|
 
{|
 
| [[{{trim | {{{ 1 | {{{icon|File:Miscellaneous Enemy Icon.png}}} }}} }}|66px]]
 
| [[{{trim | {{{ 1 | {{{icon|File:Miscellaneous Enemy Icon.png}}} }}} }}|66px]]
 
|
 
|
* '''[[{{trim | {{{ 2 | {{{name|Pet Name}}} }}} }}]]''' - <!---
+
* '''[[{{trim | {{{ 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 19: Line 19:
 
-->{{#if: {{{ 8 | {{{ability4|}}} }}} | or '''{{trim | {{{ 8 | {{{ability4}}} }}} }}'''}}
 
-->{{#if: {{{ 8 | {{{ability4|}}} }}} | or '''{{trim | {{{ 8 | {{{ability4}}} }}} }}'''}}
 
|}
 
|}
</div><noinclude>
+
</div></includeonly><noinclude>
 
+
===Technical Details===
 +
* For the obtain parameter, currency keywords <code>Gems, Gold, Defender Medals</code> will automatically be converted to their respective icons.
 
===Parameters===
 
===Parameters===
{| border="1" style="border-collapse:collapse;"
+
{| border="1" class="wikitable TemplateDocumentation"
! Parameter !! Description
 
 
|-
 
|-
| icon || The icon for the pet. <code>File:Miscellaneous Enemy Icon.png</code> will be used if this parameter is not set.
+
! Parameter !! Required !! Description !! Default
 
|-
 
|-
| name || Name of the pet.
+
| icon || {{yes}} || The icon for the pet. || <code>File:Miscellaneous Enemy Icon.png</code>
 
|-
 
|-
| rarity || Rarity of the pet. Use "Any" if the pet can hatch in any rarity.
+
| name || {{yes}} || Name of the pet. || Pet Name?
 
|-
 
|-
| obtain || Method of obtaining the pet. If the pet costs currency, currency keywords <code>Gems, Gold, Defender Medals</code> will automatically be converted to images.
+
| rarity || {{yes}} || Rarity of the pet. Use "Any" if the pet can hatch in any rarity. || Rarity?
 
|-
 
|-
| ability1 || The special ability of the pet.
+
| obtain || {{yes}} || Method of obtaining the pet. || Method of obtaining this pet?
 
|-
 
|-
| ability2 || An alternate special ability of the pet, if applicable.
+
| ability1 || {{yes}} || The special ability of the pet. || Ability?
 
|-
 
|-
| ability3 || An alternate special ability of the pet, if applicable.
+
| ability2 || {{no}} || An alternate special ability of the pet, if applicable. ||
 
|-
 
|-
| ability4 || An alternate special ability of the pet, if applicable.
+
| ability3 || {{no}} || An alternate special ability of the pet, if applicable. ||
 +
|-
 +
| ability4 || {{no}} || An alternate special ability of the pet, if applicable. ||
 
|}
 
|}
  
 
===Example===
 
===Example===
{| style="width:100%;"
+
{| style="width:95%;" cellpadding="20"
 
! 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 class="tempdoc-code-block"><nowiki>
---><code style="display: table; white-space: pre-wrap;"><!---
+
    {{Special Pet Info
    ---><nowiki>
+
    | File:Katkarot icon.png             
 
+
    | Katkarot  
            {{Special Pet Info
+
    | Any  
            | File:Katkarot icon.png             
+
    | Costs 250 Gems
            | Katkarot  
+
    | Metsu Gatodouken
            | Any  
+
    | Shinku Gatodouken
            | Costs 250 Gems
+
    }}
            | Metsu Gatodouken
+
</nowiki></code>
            | Shinku Gatodouken
+
|
            }}
+
<div style="display: flex; justify-content: center;">
 
 
        </nowiki><!---
 
---></code>
 
</div>
 
|<div style="display: flex; justify-content: center;">
 
 
     {{Special Pet Info  
 
     {{Special Pet Info  
 
     | File:Katkarot icon.png
 
     | File:Katkarot icon.png
Line 74: Line 71:
 
</div>
 
</div>
 
|-
 
|-
|<div style="display: flex; justify-content: center;"><!---
+
|<code class="tempdoc-code-block"><nowiki>
---><code style="display: table; white-space: pre-wrap;"><!---
+
    {{Special Pet Info
    ---><nowiki>
+
    | icon = File:Katkarot icon.png     
 
+
    | name = Katkarot  
            {{Special Pet Info
+
    | rarity = Any  
            | icon = File:Katkarot icon.png     
+
    | obtain = Costs 250 Gems
            | name = Katkarot  
+
    | ability1 = Metsu Gatodouken
            | rarity = Any  
+
    | ability2 = Shinku Gatodouken
            | obtain = Costs 250 Gems
+
    }}
            | ability1 = Metsu Gatodouken
+
</nowiki></code>
            | ability2 = Shinku Gatodouken
+
|
            }}
+
<div style="display: flex; justify-content: center;">
 
 
        </nowiki><!---
 
---></code>
 
</div>
 
|<div style="display: flex; justify-content: center;">
 
 
     {{Special Pet Info  
 
     {{Special Pet Info  
 
     | icon = File:Katkarot icon.png
 
     | icon = File:Katkarot icon.png

Latest revision as of 21:23, 7 April 2025

Technical Details

  • For the obtain parameter, currency keywords Gems, Gold, Defender Medals will automatically be converted to their respective icons.

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. Use "Any" if the pet can hatch in any rarity. Rarity?
obtain TickGreen.png Method of obtaining the pet. Method of obtaining this pet?
ability1 TickGreen.png The special ability of the pet. Ability?
ability2 CrossWhite.png An alternate special ability of the pet, if applicable.
ability3 CrossWhite.png An alternate special ability of the pet, if applicable.
ability4 CrossWhite.png An alternate special ability of the pet, if applicable.

Example

Wiki Text Result
{{Special Pet Info | File:Katkarot icon.png | Katkarot | Any | Costs 250 Gems | Metsu Gatodouken | Shinku Gatodouken }}
Katkarot icon.png
  • Katkarot - Any Rarity.gif Can hatch in any rarity
  • Costs Gem Icon.png 250
  • Special Ability: Metsu Gatodouken or Shinku Gatodouken
{{Special Pet Info | icon = File:Katkarot icon.png | name = Katkarot | rarity = Any | obtain = Costs 250 Gems | ability1 = Metsu Gatodouken | ability2 = Shinku Gatodouken }}
Katkarot icon.png
  • Katkarot - Any Rarity.gif Can hatch in any rarity
  • Costs Gem Icon.png 250
  • Special Ability: Metsu Gatodouken or Shinku Gatodouken