7,180
edits
Changes
no edit summary
<noinclude>
==Usage==
==Example==
The following mark-up:
<pre><nowiki>
{{Color Icons|UBR}{{Color Icons|UBR|24|sep=&thinsp;}}
</nowiki></pre>
{{Color Icons|UBR}}
{{Color Icons|UBR|24|sep= }}
== Implementation details ==
The following optimisations are applied to reduce output html size:
* Apply the inline span to the whole set of icons rather than each icon individually
* Skip the "nowrap" span if a single icon is produced
These optimisations are necessary to avoid a "Pages where template include size is exceeded" error on some large pages (e.g. elite pack contents pages).
[[Category:Symbol templates]]
</noinclude><includeonly>{{#ifeq:{{#invoke:String|sub|{{{1}}}|1|1}}|[||<!---->{{Inline|{{nowrap|<!---->{{Symbol|{{#invoke:String|sub|{{{1}}}|1|1}}|{{{2|14}}}|{{{3|}}}|{{{4|}}}|noinline=1}}<!---->{{replace#ifexpr:{{#invoke:String|len|{{replace{1}}}}} > 1|{{replace#if:{{{3|}}}|[[{{{replace3}}}|{{replace#if:{{{4|}}}|<span title="{{replace{4|}}}">{{replace{sep|}}}</span>|{{{sep|}}}}}]]|{{{sep|}}}}}<!---->{{Symbol|{{#invoke:String|sub|{{{1}}}|2|2}}|{{{2|14}}}|{{{3|}}}|{{{4|}}}|noinline=1}}}}<!---->{{#ifexpr:{{#invoke:String|len|{{{1}}}}} > 2|{{#if:{{{3|}}}|[[{{{3}}}|{{#if:{{{4|}}}|<span title="{{{4|W}}}">{{{sep|}}}</span>|{{{Wsep|}}} }}]]|{{{sep|}}}}}<!---->{{Symbol|{{#invoke:String|Usub|{{U{1}} }|3|3}}|{{{2|14}}}|{{{3|}}}|{{{4|}}}|noinline=1}}}}<!---->{{#ifexpr:{{#invoke:String|len|{{{1}}}}} > 3|{{#if:{{{3|}}}|[[{{{3}}}|{{#if:{{{4|}}}|<span title="{{{4|}}}">{{{sep|B}}}</span>|{{B{sep|}}}}}]]|{{{sep|}}} }}<!---->{{Symbol|R{{#invoke:String|sub|{{R{1}} }|4|4}}|{{{2|14}}}|{{{3|}}}|{{{4|}}}|noinline=1}}}}<!---->{{#ifexpr:{{#invoke:String|Glen|{{G{1}}} }}> 4|{{#if:{{{3|}}}|[[{{{3}}}|{{#if:{{{4|}}}|<span title="{{{4|}}}">{{{sep|}}}</span>|{{{sep|}}}}}]]|{{{sep|}}}}}<!---->{{Symbol|{{#invoke:String|Csub|{{C{1}} }|5|5}}|{{{2|14}}}|{{{3|}}}|{{{4|}}}|noinline=1}}}}<!---->|{{#ifeq:{{#invoke:String|Llen|{{L{1}}}}}|1|1}}{{{skipnowrap|}}}}}|{{{noinline|}}} }}}}</includeonly>