Template:Icon/doc

From War Commander Wiki
Jump to navigation Jump to search
Description
Creates an Icon.
Syntax
{{Icon|icon graphic}}

The icon graphic will link to [[File:<icon graphic>.png|size=32]].

Example
{{Icon|Techicon-Anti-Infantry|size=64}}

Update: Now the named parameter size can also be assigned without size=, but it should be after the icon file name.

Result
Techicon-Anti-Infantry.png

Advanced parameters

There is an advanced, named parameter not listed above and strongly not recommended for general use:

|ext=
file extension of the icon itself (if not .png)

Advanced examples

{{Icon|Raptor_-|ext=.JPG|size=189}} any extension
Raptor -.JPG