Open main menu

mtgpq wiki β

Changes

Template:Color Icons

334 bytes added, 03:53, 15 February 2019
no edit summary
<noinclude>
==Usage==
Replace Given a string of 1 to 5 letters representing one or more colours with colors, produces a corresponding series of space-separated color icons.
The template parameter is a sequence of upper-case letters from the set WUBRGCL.
[[Category:Symbol templates]]
</noinclude><includeonly><!---->{{nowrap|{{replace#invoke:String|sub|{{replace{1}}}|1|1}} }}<!---->{{replace|#ifexpr:{{replace#invoke:String|len|{{{replace1}}}}} > 1|&nbsp;{{replace|{{replace#invoke:String|sub|{{{1}}}|W2|{{W2}} }} }}<!---->{{#ifexpr:{{#invoke:String|Ulen|{{U{1}}} }}> 2|&nbsp;{{ {{#invoke:String|Bsub|{{B{1}}}|3|3}} }}}}<!---->{{#ifexpr:{{#invoke:String|Rlen|{{R{1}} }}} > 3|&nbsp;{{ {{#invoke:String|Gsub|{{G{1}}}|4|4}} }} }}<!---->{{#ifexpr:{{#invoke:String|Clen|{{C{1}}} }}> 4|&nbsp;{{ {{#invoke:String|Lsub|{{L{1}}}|5|5}} }}}}<!----></includeonly>