Changes

Template:Special Pet Info

1,353 bytes added, 01:23, 8 April 2025
Improving documentation and wikitext
<includeonly><div style="flex: 0 0 50%;">
{|
|[[{{trim | {{{ 1 | {{{icon|File:Miscellaneous Enemy Icon.png}}}}} }}}|66px]]
|
* '''[[{{trim | {{{ 2 | {{{name|Pet Name?}}}}} }}}]]''' - <!---
--->{{#switch: {{{ 3 | {{{rarity|}}} }}}
| Powerful = <span style="color:#008000"> [[File:Powerful Icon.png|18px]] Powerful </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>
| Any = <span style="color:#808080"> [[File:Worn IconAny Rarity.pnggif|18px]] Can hatch in any rarity </span>
| #default = <span style="color:#808080"> [[File:Worn Icon.png|18px]] Rarity? </span>
}}
* <span class="currency-included"> {{trim | {{{ 4 | {{{obtain|Method of obtaining this pet?}}} }}} }} </span>* Special Ability: <!---->'''{{trim | {{{ 5 | {{{ability1|Ability?}}} }}} }}''' <!---->{{#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" styleclass="borderwikitable TemplateDocumentation"|-collapse:collapse;"! 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?
|-
| icon obtain || The icon for {{yes}} || Method of obtaining the pet. <code>File:Miscellaneous Enemy Icon.png</code> will be used if || Method of obtaining this parameter is not set.pet?
|-
| name ability1 || Name {{yes}} || The special ability of the pet.|| Ability?
|-
| rarity ability2 || Rarity {{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.||
|}
===Example===
{| style="width:8095%;" cellpadding="20"
! style="font-size:150%; width: 50%;" | Wiki Text
! style="font-size:150%; width: 50%;" | Result
|-
|<div stylecode class="display: flex; justify-content: center;"><!-----tempdoc-><code style="display: table; white-space: pre-wrap;block"><!---nowiki> ---><nowiki>{{Special Pet Info | File:Purrlin Katkarot icon.png | Katkarot | Any | Costs 250 Gems | Purrlin Metsu Gatodouken | PowerfulShinku Gatodouken }}</nowiki><!------></code></div>||<div style="display: flex; justify-content: center;"> {{Special Pet Info | File:Purrlin Katkarot icon.png | Purrlin Katkarot | PowerfulAny | Costs 250 Gems | Metsu Gatodouken | Shinku Gatodouken }}
</div>
|-
|<div stylecode class="display: flex; justifytempdoc-content: center;"><!------><code style="display: table; white-space: pre-wrap;block"><!--- ---><nowiki>  {{Special Pet Info | icon = File:Purrlin Katkarot icon.png | name = PurrlinKatkarot | rarity = PowerfulAny | obtain = Costs 250 Gems | ability1 = Metsu Gatodouken | ability2 = Shinku Gatodouken }}  </nowiki><!------></code></div>||<div style="display: flex; justify-content: center;"> {{Special Pet Info | icon = File:Purrlin Katkarot icon.png | name = PurrlinKatkarot | rarity = PowerfulAny | obtain = Costs 250 Gems | ability1 = Metsu Gatodouken | ability2 = Shinku Gatodouken
}}
</div>
|}
__NOEDITSECTION__
</noinclude>
__NOEDITSECTION__
WikiDefender, bureaucrat, administrator
738
edits