Template:PetIcon: Difference between revisions
From Melvor Idle
Falterfire (talk | contribs) (added overrides for Perilous Peaks and Dark Waters) |
Falterfire (talk | contribs) (Added notext argument) |
||
Line 7: | Line 7: | ||
{{T|PetIcon|Larry}} becomes {{PetIcon|Larry}} | {{T|PetIcon|Larry}} becomes {{PetIcon|Larry}} | ||
Size option allows for larger icons. {{T|PetIcon|Asura|size=50}} becomes {{PetIcon|Asura|size=50}} | Size option allows for larger icons. {{T|PetIcon|Asura|size=50|notext=true}} becomes {{PetIcon|Asura|size=50|notext=true}} | ||
<includeonly><onlyinclude>{{#vardefine:pet|{{{1}}}}}{{#vardefine:ext|}}{{#switch:{{{1}}} | <includeonly><onlyinclude>{{#vardefine:pet|{{{1}}}}}{{#vardefine:ext|}}{{#switch:{{{1}}} | ||
Line 33: | Line 33: | ||
|Mastery|Ty={{#vardefine:pet|Ty}} | |Mastery|Ty={{#vardefine:pet|Ty}} | ||
|Perilous Peaks={{#vardefine:pet|Peri}} | |Perilous Peaks={{#vardefine:pet|Peri}} | ||
|Dark Waters={{#vardefine:pet|Otto}}}}{{Icon|type=pet|{{#var:pet}}|ext={{#var:ext|svg}}|size={{{size|}}}}}</onlyinclude></includeonly> | |Dark Waters={{#vardefine:pet|Otto}}}}{{Icon|type=pet|{{#var:pet}}|ext={{#var:ext|svg}}|size={{{size|}}}|notext={{{notext|}}}}}</onlyinclude></includeonly> |
Revision as of 21:24, 8 February 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|notext=true|size=50}}
becomes