Template:Color/sandbox: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly>{{#if:{{{debug|}}}||{{#if:{{{2|}}}|[[Category:{{{1|}}} {{{2|}}}]]|}}}}: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|}}} <!-- Colors used for clothing & furniture filters --> |blue=rgb(87, 162, 244)...") |
(totally broken) |
||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{debug|}}}||{{#if:{{{2|}}}|[[Category:{{{1|}}} {{{2|}}}]]|}}}}[[: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:{{#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|}}} | ||
<!-- Colors used for clothing & furniture filters --> | <!-- Colors used for clothing & furniture filters --> | ||
|blue=rgb(87, 162, 244) | |blue=rgb(87, 162, 244) | ||
Line 166: | Line 166: | ||
|#default={{{1|}}}}};"><span style="color:white;">{{{number|}}}</span></div>]]</includeonly><noinclude> | |#default={{{1|}}}}};"><span style="color:white;">{{{number|}}}</span></div>]]</includeonly><noinclude> | ||
{{color| | {{color/sandbox|yellow|link=Critters}} | ||
{{color| | {{color/sandbox|red|link=: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 | ||
{{color| | {{color/sandbox|blue|Clothing}} | ||
{{color/sandbox|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? | |||
</noinclude> | </noinclude> |
Revision as of 16:48, 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:Color|]]
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?