Template:Icon

From Sons of the Forest Wiki
Jump to navigation Jump to search
Template-info.svg Documentation

Usage: {{Icon|icon-name|size}}

Result: By default the size is set to 50px: Clothing Icon.png or custom size: Health Icon.png

This template allows you to easily insert icons by specifying the icon name and optionally the size.

Keep in mind that this template needs to be used as shown in Usage, otherwise it won't work.

For creating anchors to images or icons, check this template: Template:ImgAnchor

Example[edit source]

Here is how you can use the `Icon` template:

Basic usage[edit source]

Some text before the icon.
{{Icon|Clothing}}
Some text after the icon.

Result:

Some text before the icon. Clothing Icon.png Some text after the icon.

Specifying the size[edit source]

Some text before the icon.
{{Icon|Health|16px}}
Some text after the icon.

Result:

Some text before the icon. Health Icon.png Some text after the icon.

Combined with other templates[edit source]

Some text before the icon.
{{ImgAnchor|Blazer|{{Icon|Clothing}}}}
Some text after the icon.

Result:

Some text before the icon. Clothing Icon.png Some text after the icon.