Template:PetIcon: Difference between revisions

From Melvor Idle
(Added shortcuts for Finn, Puff, and Larry so the full name doesn't have to be typed.)
(Added icon for Ty, the Mastery Pet)
Line 28: Line 28:
|Monk-ey|Prayer={{#vardefine:pet|Monk-ey}}{{#vardefine:ext|png}}
|Monk-ey|Prayer={{#vardefine:pet|Monk-ey}}{{#vardefine:ext|png}}
|Asura|Slayer={{#vardefine:pet|Asura}}{{#vardefine:ext|png}}
|Asura|Slayer={{#vardefine:pet|Asura}}{{#vardefine:ext|png}}
|Golbin={{#vardefine:pet|Golden Golbin}}}}{{Icon|type=pet|{{#var:pet}}|ext={{#var:ext|svg}}}}</onlyinclude></includeonly>
|Golbin={{#vardefine:pet|Golden Golbin}}
|Mastery|Ty={{#vardefine:pet|Ty}}}}{{Icon|type=pet|{{#var:pet}}|ext={{#var:ext|svg}}}}</onlyinclude></includeonly>

Revision as of 15:48, 15 October 2020

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