Changes

Jump to: navigation, search

Template:Color Icons

153 bytes added, 11:05, 11 March 2019
no edit summary
Given a string of 1 to 5 letters representing colors, produces a corresponding series of space-separated color icons.
The template first parameter is a sequence of upper-case letters from the set WUBRGCL. The second parameter (optional) is the size of the icons (default = 15).
==Example==
The following mark-up:
<pre><nowiki>
{{Color Icons|UBR|24}}
</nowiki></pre>
Produces:
{{Color Icons|UBR|24}}
[[Category:Symbol templates]]
</noinclude><includeonly><!--
-->{{nowrap|{{ Symbol|{{#invoke:String|sub|{{{1}}}|1|1}}|{{{2|15}}} }}<!---->{{#ifexpr:{{#invoke:String|len|{{{1}}}}} > 1|&thinsp;{{ Symbol|{{#invoke:String|sub|{{{1}}}|2|2}}|{{{2|15}}} }} }}<!---->{{#ifexpr:{{#invoke:String|len|{{{1}}}}} > 2|&thinsp;{{ Symbol|{{#invoke:String|sub|{{{1}}}|3|3}}|{{{2|15}}} }} }}<!---->{{#ifexpr:{{#invoke:String|len|{{{1}}}}} > 3|&thinsp;{{ Symbol|{{#invoke:String|sub|{{{1}}}|4|4}}|{{{2|15}}} }} }}<!---->{{#ifexpr:{{#invoke:String|len|{{{1}}}}} > 4|&thinsp;{{ Symbol|{{#invoke:String|sub|{{{1}}}|5|5}}|{{{2|15}}} }} }}<!--
-->}}</includeonly>

Navigation menu