Anonymous

Template:PetIcon: Difference between revisions

From Melvor Idle
Modify to accept the optional second parameter
(Allow all options provided by Template:Icon; Remove redundant extension overrides)
(Modify to accept the optional second parameter)
Line 38: Line 38:
|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}}|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|}}}}}</onlyinclude></includeonly>