Open main menu
Changes
Template:Pet Info
173 bytes removed
,
7 April
Improving documentation and wikitext
{|
<includeonly><div
style="flex: 0 0 33%;"
><!---
|
--->
[[{{{ 1 | {{{icon|File:Miscellaneous Enemy Icon.png}}} }}}|66px]] '''[[{{{ 2 | {{{name|Pet Name
?
}}} }}}]]''' - <!---
--->{{#switch: {{{ 3 | {{{rarity|}}} }}}
| Powerful = <span style="color:#008000"> [[File:Powerful Icon.png|18px]] Powerful </span>
| #default = <span style="color:#808080"> [[File:Worn Icon.png|18px]] Rarity? </span>
}}
|}
<
!--
--
/div></includeonly
><noinclude>
===Parameters===
{| border="1"
style
class
="
border-collapse:collapse;
wikitable TemplateDocumentation
"! Parameter
!! Required
!! Description
!! Default
|-
| icon
|| {{yes}}
|| The icon for the pet.
||
<code>File:Miscellaneous Enemy Icon.png</code>
will be used if this parameter is not set.
|-
| name
|| {{yes}}
|| Name of the pet.
|| Pet Name?
|-
| rarity
|| {{yes}}
|| Rarity of the pet.
|| Rarity?
|}
===Example===
{| style="width:
80
95
%;
" cellpadding="20
"
! style="font-size:150%; width: 50%;" | Wiki Text
! style="font-size:150%; width: 50%;" | Result
|-
|<
div style
code class
="
display: flex; justify-content: center;"><!---
--
tempdoc
-
><
code
style="display: table; white-space: pre
-
wrap;
block
"><
!---
nowiki>
---><nowiki>
{{Pet Info | File:Purrlin icon.png | Purrlin | Powerful}}</nowiki
><!---
---
></code>
</div>
|
|
<div style="display: flex; justify-content: center;">
{{Pet Info | File:Purrlin icon.png | Purrlin | Powerful}}
</div>
|-
|<
div style
code class
="
display: flex; justify-content: center;"><!---
--
tempdoc
-
><
code
style="display: table; white
-
space: pre-wrap;
block
"
><!---
---
><nowiki>
{{Pet Info
| icon = File:Purrlin icon.png
| name = Purrlin
| rarity = Powerful
}}
</nowiki
><!---
---
></code>
</div>
|
|
<div style="display: flex; justify-content: center;">
{{Pet Info
| icon = File:Purrlin icon.png
← Older edit
Newer edit →
Hywell
WikiDefender,
bureaucrat
,
administrator
736
edits