Template:Color/sandbox: Difference between revisions

simplify fallback category link - category: item type, color, or just category: color if item type doesn't exist, rather than linking to "Color" category -- but still broken
(removing this space makes the preformatting go away, but also removes the functional link to the first example)
(simplify fallback category link - category: item type, color, or just category: color if item type doesn't exist, rather than linking to "Color" category -- but still broken)
Line 1: Line 1:
<includeonly>{{#if:{{{debug|}}}||{{#if:{{{2|}}}|[[Category:{{{1|}}} {{{2|}}}]]|}}}}[[{{#if:{{{link|}}}|{{{link|}}}|:Category:{{#if:{{{2|}}}|{{{1|}}} {{{2|}}}|Color}}}}|<div class="color-swatch" style="{{#if:{{{number|}}}|font-family:monospace;padding: 0 2px 4px;color: white;text-align: center;font-family: monospace;font-size: initial;text-shadow: 1px 1px 2px black;|}}background: {{#switch:{{{1|}}}
<includeonly>{{#if:{{{debug|}}}||{{#if:{{{2|}}}|[[Category:{{{1|}}} {{{2|}}}]]|}}}}[[{{#if:{{{link|}}}|{{{link|}}}|:Category:{{{1|}}} {{{2|}}} }}|<div class="color-swatch" style="{{#if:{{{number|}}}|font-family:monospace;padding: 0 2px 4px;color: white;text-align: center;font-family: monospace;font-size: initial;text-shadow: 1px 1px 2px black;|}}background: {{#switch:{{{1|}}}
           <!-- Colors used for clothing & furniture filters -->
           <!-- Colors used for clothing & furniture filters -->
           |blue=rgb(87, 162, 244)
           |blue=rgb(87, 162, 244)
moderator
26,906

edits