Template:Icon Big

From RimWorld Wiki
Jump to navigation Jump to search
Documentation icon Template documentation

Usage

This template creates a 64px icon in the middle of a 10px larger square. The size and background color can be adjusted.

The parameters are:

{{Icon Big
| <name>  (optional, type = page, default = {{PAGENAME}} )
| size =  (optional, type = integer, default = 64)
| color = (optional, type = (r,g,b), default = defined on each page or white (265,265,265) )
}}

Examples

1. Using the template as follows on the page wood with no parameters would produce:

{{Icon Big}}
Woodlog c.png


2. Using the template as follows on any page would produce:

{{Icon Big|steel}}
Steel c.png


3. Using the icon from a page with no color defined results in a white background:

{{Icon Big|Simple meal}}
Simple meal a.png


4. The background color can be set manually:

{{Icon Big|wood|color=(200,100,100)}}
Woodlog c.png


5. Using a transparent background is also possible:

{{Icon Big|Simple meal|color=}}
Simple meal a.png


6. It is also possible to vary the size of the icon:

{{Icon Big|steel|size=32}}
Steel c.png

See also