Difference between revisions of "Template:Special Pet Info"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
(Updating template with proper documentation)
Line 11: Line 11:
 
     | #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>
+
* <span class="currency-included"> {{{ 4 | {{{obtain|Method of obtaining this pet?}}} }}} </span>
 
* Special Ability: '''{{{ 5 | {{{ability1|Ability?}}} }}}''' {{#if: {{{ 6 | {{{ability2|}}} }}} | or '''{{{ 6 | {{{ability2}}} }}}'''}} {{#if: {{{ 7 | {{{ability3|}}} }}} | or '''{{{ 7 | {{{ability3}}} }}}'''}}
 
* Special Ability: '''{{{ 5 | {{{ability1|Ability?}}} }}}''' {{#if: {{{ 6 | {{{ability2|}}} }}} | or '''{{{ 6 | {{{ability2}}} }}}'''}} {{#if: {{{ 7 | {{{ability3|}}} }}} | or '''{{{ 7 | {{{ability3}}} }}}'''}}
 
|}<!--
 
|}<!--
 
--><noinclude>
 
--><noinclude>
<div style="display: flex; justify-content: center;">
+
 
     {{Special Pet Info | File:Katkarot icon.png | Katkarot | Any | Costs 250 gems | Metsu Gatodouken | Shinku Gatodouken}}
+
===Parameters===
 +
{| border="1" style="border-collapse:collapse;"
 +
! Parameter !! Description
 +
|-
 +
| icon || The icon for the pet. <code>File:Miscellaneous Enemy Icon.png</code> will be used if this parameter is not set.
 +
|-
 +
| name || Name of the pet.
 +
|-
 +
| rarity || Rarity of the pet. Use "Any" if the pet can hatch in any rarity.
 +
|-
 +
| obtain || Method of obtaining the pet. If the pet costs currency, there is no need to include an image file in this parameter, currency keywords will automatically be converted to images.
 +
|-
 +
| ability1 || The special ability of the pet.
 +
|-
 +
| ability2 || An alternate special ability of the pet, if applicable.
 +
|-
 +
| ability3 || An alternate special ability of the pet, if applicable.
 +
|}
 +
 
 +
===Example===
 +
{| style="width:100%;"
 +
! 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>{{Special Pet Info | File:Katkarot icon.png | Katkarot | Any | Costs 250 Gems | Metsu Gatodouken | Shinku Gatodouken}}</nowiki><!---
 +
---></code>
 
</div>
 
</div>
 +
|<div style="display: flex; justify-content: center;">
 +
    {{Special Pet Info | File:Katkarot icon.png | Katkarot | Any | Costs 250 Gems | Metsu Gatodouken | Shinku Gatodouken}}
 +
</div>
 +
|-
 +
|<div style="display: flex; justify-content: center;"><!---
 +
---><code style="display: table; white-space: pre-wrap;"><!---
 +
    ---><nowiki>
 +
 +
            {{Special Pet Info
 +
            | 1 = File:Katkarot icon.png
 +
            | 2 = Katkarot
 +
            | 3 = Any
 +
            | 4 = Costs 250 Gems
 +
            | 5 = Metsu Gatodouken
 +
            | 6 = Shinku Gatodouken
 +
            }}
 +
 +
        </nowiki><!---
 +
---></code>
 +
</div>
 +
|<div style="display: flex; justify-content: center;">
 +
    {{Special Pet Info
 +
    | 1 = File:Katkarot icon.png
 +
    | 2 = Katkarot
 +
    | 3 = Any
 +
    | 4 = Costs 250 Gems
 +
    | 5 = Metsu Gatodouken
 +
    | 6 = Shinku Gatodouken
 +
    }}
 +
</div>
 +
|}
 +
 
</noinclude>
 
</noinclude>
 +
__NOEDITSECTION__

Revision as of 13:28, 15 February 2023

Miscellaneous Enemy Icon.png
  • Pet Name - Worn Icon.png Rarity?
  • Method of obtaining this pet?
  • Special Ability: Ability?

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. Use "Any" if the pet can hatch in any rarity.
obtain Method of obtaining the pet. If the pet costs currency, there is no need to include an image file in this parameter, currency keywords will automatically be converted to images.
ability1 The special ability of the pet.
ability2 An alternate special ability of the pet, if applicable.
ability3 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 250 Gems
  • Special Ability: Metsu Gatodouken or Shinku Gatodouken
{{Special Pet Info | 1 = File:Katkarot icon.png | 2 = Katkarot | 3 = Any | 4 = Costs 250 Gems | 5 = Metsu Gatodouken | 6 = Shinku Gatodouken }}
Katkarot icon.png
  • Katkarot - Any Rarity.gif Can hatch in any rarity
  • Costs 250 Gems
  • Special Ability: Metsu Gatodouken or Shinku Gatodouken