Changes

Jump to: navigation, search

Template:Colors expand

804 bytes added, 03:41, 15 February 2019
Created page with "<noinclude> ==Usage== Expands a string containing 1 to 5 one-letter color abbreviations into a comma-separated list of the colours as words. ==Example== The following shortha..."
<noinclude>
==Usage==
Expands a string containing 1 to 5 one-letter color abbreviations into a comma-separated list of the colours as words.

==Example==
The following shorthand:
<pre><nowiki>
{{Colors expand|UBR}}
</nowiki></pre>

Produces:

{{Colors expand|UBR}}

</noinclude><includeonly><!--
-->{{Color expand|{{#invoke:String|sub|{{{1}}}|1|1}}}}<!--
-->{{#ifexpr:{{#invoke:String|len|{{{1}}}}} > 1|, {{Color expand|{{#invoke:String|sub|{{{1}}}|2|2}}}}}}<!--
-->{{#ifexpr:{{#invoke:String|len|{{{1}}}}} > 2|, {{Color expand|{{#invoke:String|sub|{{{1}}}|3|3}}}}}}<!--
-->{{#ifexpr:{{#invoke:String|len|{{{1}}}}} > 3|, {{Color expand|{{#invoke:String|sub|{{{1}}}|4|4}}}}}}<!--
-->{{#ifexpr:{{#invoke:String|len|{{{1}}}}} > 4|, {{Color expand|{{#invoke:String|sub|{{{1}}}|5|5}}}}}}<!--
--></includeonly>

Navigation menu