Template:PetIcon: Difference between revisions
From Melvor Idle
m (Implement size parameter) |
Falterfire (talk | contribs) (added overrides for Perilous Peaks and Dark Waters) |
||
Line 31: | Line 31: | ||
|Asura|Slayer={{#vardefine:pet|Asura}}{{#vardefine:ext|png}} | |Asura|Slayer={{#vardefine:pet|Asura}}{{#vardefine:ext|png}} | ||
|Golbin={{#vardefine:pet|Golden Golbin}} | |Golbin={{#vardefine:pet|Golden Golbin}} | ||
|Mastery|Ty={{#vardefine:pet|Ty}}}}{{Icon|type=pet|{{#var:pet}}|ext={{#var:ext|svg}}|size={{{size|}}}}}</onlyinclude></includeonly> | |Mastery|Ty={{#vardefine:pet|Ty}} | ||
|Perilous Peaks={{#vardefine:pet|Peri}} | |||
|Dark Waters={{#vardefine:pet|Otto}}}}{{Icon|type=pet|{{#var:pet}}|ext={{#var:ext|svg}}|size={{{size|}}}}}</onlyinclude></includeonly> |
Revision as of 20:56, 10 January 2021
Pulls icons for pets based on either name or skill:
{{PetIcon|Smithing}}
becomes Puff, the Baby Dragon
{{PetIcon|Beavis}}
becomes Beavis
{{PetIcon|Larry}}
becomes Larry, the Lonely Lizard
Size option allows for larger icons. {{PetIcon|Asura|size=50}}
becomes Asura