Template:Pet: Difference between revisions
Template page
More actions
Add pet infobox |
m Replace infobox syntax |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{Infobox | ||
| name = {{{pet|{{PAGENAME}}}}} | |||
| image = {{#if:{{{pet_image|}}}|[[File:{{{pet_image}}}|200px|alt=Pet Image]]}} | |||
| caption = {{#if:{{{pet_image|}}}|Pet Image}} | |||
| imagestyle = text-align:center; | |||
| above = | |||
| abovestyle = | |||
| header4 = Info | |||
| label5 = Rarity | |||
| data5 = {{{rarity|}}} | |||
| label6 = Diet | |||
| data6 = {{{diet|}}} | |||
| label7 = Abilities | |||
| data7 = {{{abilities|}}} | |||
| label8 = % Chance per Egg | |||
| data8 = {{{%_chance_per_egg|}}} | |||
| label9 = Max Hunger | |||
| data9 = {{{max_hunger|}}} | |||
| label10 = Hunger Depletion Time | |||
| data10 = {{{hunger_depletion_time|}}} | |||
| label11 = Hours to mature | |||
| data11 = {{{hours_to_mature|}}} | |||
}}</includeonly> | |||
</includeonly> | |||
<includeonly>{{#ifeq: {{NAMESPACE}}|{{ns:0}}|[[Category:Pets]]}}</includeonly> | <includeonly>{{#ifeq: {{NAMESPACE}}|{{ns:0}}|[[Category:Pets]]}}</includeonly> | ||
<noinclude>{{Documentation}}</noinclude> | <noinclude>{{Documentation}}</noinclude> |
Latest revision as of 07:10, 17 October 2025
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
Description
edit sourceThis template is used to display essential information on a pet.
Syntax
edit source{{Pet | pet = | pet_image = | rarity = | diet = | abilities = | %chance_per_egg = | max_hunger = | hunger_depletion_time = | hours_to_mature = }}
Samples
edit sourcePet Image Pet Image | |
Info | |
---|---|
Rarity | Example |
Diet | Example |
Abilities | Example |
% Chance per Egg | Example |
Max Hunger | Example |
Hunger Depletion Time | Example |
Hours to mature | Example |
{{Pet | pet=Example | pet_image=Example.jpg | rarity=Example | diet=Example | abilities=Example | %_chance_per_egg=Example | max_hunger=Example | hunger_depletion_time=Example | hours_to_mature=Example }}