Difference between revisions of "Template:Special Pet Info"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
(Improving documentation and wikitext)
 
(34 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| style="flex: 0 0 100%;"
+
<includeonly><div style="flex: 0 0 50%;">
|[[{{{ 1 {{!}} {{{icon{{!}}File:Miscellaneous Enemy Icon.png}}} }}} {{!}} 66px]]
+
{|
 +
| [[{{trim | {{{ 1 | {{{icon|File:Miscellaneous Enemy Icon.png}}} }}} }}|66px]]
 
|
 
|
* '''[[{{{ 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>
 
     | Epic      = <span style="color:#3366ff"> [[File:Epic Icon.png|18px]] Epic </span>
 
     | Epic      = <span style="color:#3366ff"> [[File:Epic Icon.png|18px]] Epic </span>
 
     | 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
+
     | Any      = [[File:Any Rarity.gif|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>
+
* <span class="currency-included"> {{trim | {{{ 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: <!--
|}<!--
+
-->'''{{trim | {{{ 5 | {{{ability1|Ability?}}} }}} }}''' <!--
--><noinclude>
+
-->{{#if: {{{ 6 | {{{ability2|}}} }}} | or '''{{trim | {{{ 6 | {{{ability2}}} }}} }}'''}} <!--
 +
-->{{#if: {{{ 7 | {{{ability3|}}} }}} | or '''{{trim | {{{ 7 | {{{ability3}}} }}} }}'''}} <!--
 +
-->{{#if: {{{ 8 | {{{ability4|}}} }}} | or '''{{trim | {{{ 8 | {{{ability4}}} }}} }}'''}}
 +
|}
 +
</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===
 +
{| border="1" class="wikitable TemplateDocumentation"
 +
|-
 +
! 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. Use "Any" if the pet can hatch in any rarity. || Rarity?
 +
|-
 +
| obtain || {{yes}} || Method of obtaining the pet. || Method of obtaining this pet?
 +
|-
 +
| ability1 || {{yes}} || The special ability of the pet. || Ability?
 +
|-
 +
| ability2 || {{no}} || 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. ||
 +
|}
  
{{Special Pet Info
+
===Example===
| File:Katkarot icon.png
+
{| style="width:95%;" cellpadding="20"
| Katkarot
+
! style="font-size:150%; width: 50%;" | Wiki Text
| Any
+
! style="font-size:150%; width: 50%;" | Result
| Costs 250 gems
+
|-
| Metsu Gatodouken
+
|<code class="tempdoc-code-block"><nowiki>
| Shinku Gatodouken
+
    {{Special Pet Info
}}
+
    | File:Katkarot icon.png          
 +
    | Katkarot  
 +
    | Any  
 +
    | Costs 250 Gems
 +
    | Metsu Gatodouken
 +
    | Shinku Gatodouken
 +
    }}
 +
</nowiki></code>
 +
|
 +
<div style="display: flex; justify-content: center;">
 +
    {{Special Pet Info
 +
    | File:Katkarot icon.png
 +
    | Katkarot
 +
    | Any
 +
    | Costs 250 Gems
 +
    | Metsu Gatodouken
 +
    | Shinku Gatodouken
 +
    }}
 +
</div>
 +
|-
 +
|<code class="tempdoc-code-block"><nowiki>
 +
    {{Special Pet Info
 +
    | icon = File:Katkarot icon.png   
 +
    | name = Katkarot
 +
    | rarity = Any
 +
    | obtain = Costs 250 Gems
 +
    | ability1 = Metsu Gatodouken
 +
    | ability2 = Shinku Gatodouken
 +
    }}
 +
</nowiki></code>
 +
|
 +
<div style="display: flex; justify-content: center;">
 +
    {{Special Pet Info
 +
    | icon = File:Katkarot icon.png
 +
    | name = Katkarot
 +
    | rarity = Any
 +
    | obtain = Costs 250 Gems
 +
    | ability1 = Metsu Gatodouken
 +
    | ability2 = Shinku Gatodouken
 +
    }}
 +
</div>
 +
|}
  
 +
__NOEDITSECTION__
 
</noinclude>
 
</noinclude>

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