Template:PetIcon: Difference between revisions

no edit summary
(Modify to accept the optional second parameter)
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Pulls icons for pets based on either name or skill:
{{T|PetIcon|Smithing}} becomes {{PetIcon|Smithing}}
{{T|PetIcon|Beavis}} becomes {{PetIcon|Beavis}}
{{T|PetIcon|Larry}} becomes {{PetIcon|Larry}}
Size option allows for larger icons. {{T|PetIcon|Asura|size=50|notext=true}} becomes {{PetIcon|Asura|size=50|notext=true}}
For a complete list of options, please refer to [[Template:Icon]].
<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|}}}}}</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>
2,875

edits