Template:PetIcon: Difference between revisions

Added notext argument
(added overrides for Perilous Peaks and Dark Waters)
(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>