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.)
No edit summary
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Pulls icons for pets based on either name or skill:
<includeonly><onlyinclude>{{#vardefine:pet|{{{1}}}}}{{#switch:{{{1}}}
 
|Beavis|Woodcutting={{#vardefine:pet|Beavis}}
<nowiki>{{PetIcon|Smithing}}</nowiki> becomes {{PetIcon|Smithing}}
|Pudding Duckie|Fishing={{#vardefine:pet|Pudding Duckie}}
 
|Pyro|Firemaking={{#vardefine:pet|Pyro}}
<nowiki>{{PetIcon|Beavis}}</nowiki> becomes {{PetIcon|Beavis}}
 
<nowiki>{{PetIcon|Larry}}</nowiki> becomes {{PetIcon|Larry}}
 
<includeonly><onlyinclude>{{#vardefine:pet|{{{1}}}}}{{#vardefine:ext|}}{{#switch:{{{1}}}
|Beavis|Woodcutting={{#vardefine:pet|Beavis}}{{#vardefine:ext|png}}
|Pudding Duckie|Fishing={{#vardefine:pet|Pudding Duckie}}{{#vardefine:ext|png}}
|Firemaking|Firemaking={{#vardefine:pet|Pyro}}{{#vardefine:ext|png}}
|Cooking={{#vardefine:pet|Cris}}
|Cooking={{#vardefine:pet|Cris}}
|Mining={{#vardefine:pet|Cool Rock}}
|Mining={{#vardefine:pet|Cool Rock}}
|Puff|Smithing={{#vardefine:pet|Puff, the Baby Dragon}}
|Puff|Smithing={{#vardefine:pet|Puff, the Baby Dragon}}
|Snek|Thieving={{#vardefine:pet|Snek}}{{#vardefine:ext|png}}
|Snek|Thieving={{#vardefine:pet|Snek}}
|Larry|Larry, the Lonely Lizard|Farming={{#vardefine:pet|Larry, the Lonely Lizard}}{{#vardefine:ext|png}}
|Larry|Larry, the Lonely Lizard|Farming={{#vardefine:pet|Larry, the Lonely Lizard}}
|Fletching={{#vardefine:pet|Quill}}
|Fletching={{#vardefine:pet|Quill}}
|Caaarrrlll|Crafting={{#vardefine:pet|Caaarrrlll}}{{#vardefine:ext|png}}
|Caaarrrlll|Crafting={{#vardefine:pet|Caaarrrlll}}
|Runecrafting={{#vardefine:pet|Gunter}}
|Runecrafting={{#vardefine:pet|Gunter}}
|Gronk|Herblore={{#vardefine:pet|Gronk}}{{#vardefine:ext|png}}
|Gronk|Herblore={{#vardefine:pet|Gronk}}
|Attack={{#vardefine:pet|Bruce}}
|Attack={{#vardefine:pet|Bruce}}
|Strength={{#vardefine:pet|Lil Ron}}
|Strength={{#vardefine:pet|Lil Ron}}
|Defence={{#vardefine:pet|Leonardo}}
|Defence={{#vardefine:pet|Leonardo}}
|Finn|Finn, the Cat|Hitpoints={{#vardefine:pet|Finn, the Cat}}{{#vardefine:ext|png}}
|Finn|Finn, the Cat|Hitpoints={{#vardefine:pet|Finn, the Cat}}
|Marahute|Ranged={{#vardefine:pet|Marahute}}{{#vardefine:ext|png}}
|Marahute|Ranged={{#vardefine:pet|Marahute}}
|Magic={{#vardefine:pet|Salem}}
|Magic={{#vardefine:pet|Salem}}
|Monk-ey|Prayer={{#vardefine:pet|Monk-ey}}{{#vardefine:ext|png}}
|Monk-ey|Prayer={{#vardefine:pet|Monk-ey}}
|Asura|Slayer={{#vardefine:pet|Asura}}{{#vardefine:ext|png}}
|Asura|Slayer={{#vardefine:pet|Asura}}
|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}}
|Perilous Peaks={{#vardefine:pet|Peri}}
|Ripper={{#vardefine:pet|Ripper the Reindeer}}
|Jerry={{#vardefine:pet|Jerry the Giraffe}}
|Preston={{#vardefine:pet|Preston the Platypus}}
|Dark Waters={{#vardefine:pet|Otto}}}}{{Icon|type=pet|{{#var:pet}}|{{{2|{{#var:pet}}}}}|ext={{{ext|}}}|size={{{size|}}}|qty={{{qty|}}}|img={{{img|}}}|notext={{{notext|}}}|nolink={{{nolink|}}}|noicon={{{noicon|}}}|menu={{{menu|}}}|section={{{section|}}}}}</onlyinclude></includeonly><noinclude>{{/doc}}</noinclude>

Latest revision as of 13:35, 27 March 2024

Pulls icons for pets based on either name or skill:

{{PetIcon|Smithing}} becomes

Error creating thumbnail: File missing
Puff, the Baby Dragon

{{PetIcon|Beavis}} becomes Beavis

{{PetIcon|Larry}} becomes Larry, the Lonely Lizard

Size option allows for larger icons. {{PetIcon|Asura|notext=true|size=50}} becomes Asura

For a complete list of options, please refer to Template:Icon.