Template:Color/sandbox: Difference between revisions
Jump to navigation
Jump to search
(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) |
No edit summary |
||
Line 1: | Line 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|}}} | <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) |
Revision as of 19:31, 26 July 2023
[[
- Category:Red Flowers|]] (e.g. for use on Sunbird Critter pages, without adding category to page) - otherwise the box will link to the Color category by default
[[
- Category:blue Clothing|]]
[[
- Category:green|]]
Why do the color boxes in the infobox on Turquoise Sunbird currently link to the generic Color category, but in this example, they link nowhere?