Template:Icon Big

From RimWorld Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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 b.png


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

{{Icon Big|steel}}
Steel b.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 b.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 b.png

See also