Template:PetIcon: Difference between revisions
From Melvor Idle
(Support 'section' parameter) |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{#vardefine:pet|{{{1}}}}}{{#switch:{{{1}}} | <includeonly><onlyinclude>{{#vardefine:pet|{{{1}}}}}{{#switch:{{{1}}} | ||
|Beavis|Woodcutting={{#vardefine:pet|Beavis}} | |Beavis|Woodcutting={{#vardefine:pet|Beavis}} | ||
Line 38: | Line 26: | ||
|Jerry={{#vardefine:pet|Jerry the Giraffe}} | |Jerry={{#vardefine:pet|Jerry the Giraffe}} | ||
|Preston={{#vardefine:pet|Preston the Platypus}} | |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> | |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
For a complete list of options, please refer to Template:Icon.