Open main menu
Changes
Template:Pet Info
152 bytes added
,
7 April
Adding some margin
{|
<includeonly><div
style="
display
flex
:
inline-table
0 0 33%
;
width
margin
:
fit-content
5px 0
;"
><!---
|
--->
[[{{{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>
| Epic = <span style="color:#3366ff"> [[File:Epic Icon.png|18px]] Epic </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
tempdoc-code
-
content: center;
block
"><
!---
nowiki>
{{Pet Info | File:Purrlin icon.png | Purrlin | Powerful}}
---
</nowiki
><
/
code
>
|
<div
style="display:
table
flex
;
white
justify
-
space
content
:
pre-wrap
center
;">
<!---
---><nowiki>
{{Pet Info
|
icon =
File:Purrlin icon.png
|
name =
Purrlin
|
rarity =
Powerful
}}
</nowiki><!---
---></code>
</div>
|
-
|<code class="tempdoc-code-block"><nowiki>
{{Pet Info
| icon = File:Purrlin icon.png
| name = Purrlin
| rarity = Powerful
}}
</nowiki></code>
|
<div style="display: flex; justify-content: center;">
{{Pet Info
| icon = File:Purrlin icon.png
| name = Purrlin
| rarity = Powerful
}}
{{Pet Info | File:Purrlin icon.png | Purrlin | Powerful
}}
</div>
|}
__NOEDITSECTION__
</noinclude>
__NOEDITSECTION__
← Older edit
Hywell
WikiDefender,
bureaucrat
,
administrator
736
edits