Editing Template:Icon Big

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
<includeonly>{{#vardefine:name| {{{1|{{PAGENAME}}}}} }}<div style='position: static; width: {{#expr:{{{size|64}}}+10}}px; height: {{#expr:{{{size|64}}}+10}}px; margin: 0 !important; background-color: rgb{{{color|{{#show: {{#var:name}} | ?color | default=(265,265,265) }} }}} !important; border: 1px solid #000 !important; padding: 4px'>
+
<div style='position: static; width: 74px; height: 74px; margin: 0 !important; background-color: rgb{{#show: {{{1|Wood}}} | ?color }} !important; border: 1px solid #000 !important; padding: 4px'>
<div style='margin: 5px'>[[{{#show: {{#var:name}} | ?image | link = none}}|none|{{{size|64}}}px|link={{#var:name}}]]</div>
+
<div style='margin: 5px'>[[{{#show: {{{1|Wood}}} | ?image | link = none}}|none|64px|link={{{1|Wood}}}]]</div>
</div></includeonly><noinclude>{{Documentation|content=
+
</div>
== Usage ==
+
<noinclude>{{Documentation wanted}}[[Category:Icon templates]]</noinclude>
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:
 
<pre>
 
{{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) )
 
}}
 
</pre>
 
 
 
== Examples ==
 
1. Using the template as follows on the page [[wood]] with no parameters would produce:
 
<pre>{{Icon Big}}</pre>
 
{{Icon Big|wood}}
 
 
 
 
 
2. Using the template as follows on any page would produce:
 
<pre>{{Icon Big|steel}}</pre>
 
{{Icon Big|steel}}
 
 
 
 
 
3. Using the icon from a page with no color defined results in a white background:
 
<pre>{{Icon Big|Simple meal}}</pre>
 
{{Icon Big|Simple meal}}
 
 
 
 
 
4. The background color can be set manually:
 
<pre>{{Icon Big|wood|color=(200,100,100)}}</pre>
 
{{Icon Big|wood|color=(200,100,100)}}
 
 
 
 
 
5. Using a transparent background is also possible:
 
<pre>{{Icon Big|Simple meal|color=}}</pre>
 
{{Icon Big|Simple meal|color=}}
 
 
 
 
 
6. It is also possible to vary the size of the icon:
 
<pre>{{Icon Big|steel|size=32}}</pre>
 
{{Icon Big|steel|size=32}}
 
 
 
== See also ==
 
* [[Template:Icon Small]] - for inline icons.
 
 
 
[[Category:Icon templates]]
 
}}</noinclude>
 

Please note that all contributions to RimWorld Wiki are considered to be released under the CC BY-SA 3.0 (see RimWorld Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)