Difference between revisions of "Template:Pet Info"
From Dungeon Defenders 2 Wiki
(Attempting to make the back end wikitext more readable) |
(Finalizing the template, added ability to use anonymous parameters) |
||
| Line 26: | Line 26: | ||
! style="font-size:150%; width: 50%;" | Wiki Text | ! style="font-size:150%; width: 50%;" | Wiki Text | ||
! style="font-size:150%; width: 50%;" | Result | ! style="font-size:150%; width: 50%;" | Result | ||
| + | |- | ||
| + | |<div style="display: flex; justify-content: center;"><!--- | ||
| + | ---><code style="display: table; white-space: pre-wrap;"><!--- | ||
| + | ---><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="display: flex; justify-content: center;"><!--- | |<div style="display: flex; justify-content: center;"><!--- | ||
| Line 45: | Line 54: | ||
| name = Purrlin | | name = Purrlin | ||
| rarity = Powerful | | rarity = Powerful | ||
| − | |||
| − | |||
}} | }} | ||
</div> | </div> | ||
Revision as of 21:49, 13 February 2023
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. |
Example
| Wiki Text | Result |
|---|---|
{{Pet Info | File:Purrlin icon.png | Purrlin | Powerful}}
|
|
{{Pet Info
| icon = File:Purrlin icon.png
| name = Purrlin
| rarity = Powerful
}}
|