Template:Color: Difference between revisions

1,854 bytes added ,  23:52, 18 March 2023
Combined with Template:ColorSwatch, added support for motif and facepaint color selection
(fix link - div moved inside, so target area of link isn't a teeny tiny sliver anymore)
(Combined with Template:ColorSwatch, added support for motif and facepaint color selection)
Line 1: Line 1:
[[Category:{{{1|}}} {{{2|}}}]][[:Category:{{{1|}}} {{{2|}}}|<div class="color-swatch" style="background: {{#switch:{{{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|}}}
          <!-- Colors used for clothing & furniture filters -->
           |blue=rgb(87, 162, 244)
           |blue=rgb(87, 162, 244)
           |green=rgb(105, 214, 143)
           |green=rgb(105, 214, 143)
Line 12: Line 13:
           |gray=rgb(143, 143, 143)
           |gray=rgb(143, 143, 143)
           |none=#ccceffe8; border: 1px solid rgb(48, 48, 48)
           |none=#ccceffe8; border: 1px solid rgb(48, 48, 48)
           |#default={{{1|}}}}};"></div>]]<noinclude>[[Category:Formatting templates]]{{color|none}}{{color|blue}}{{color|green}}{{color|red}}{{color|pink|Gems}}{{color|white}}{{color|black}}{{color|yellow}}{{color|orange}}{{color|brown|Clothing}}{{color|purple|Furniture}}{{color|gray}}{{color|none}}</noinclude>
          <!-- Colors used for motifs and facepaint recoloring -->
          |1=#404040
          |2=#5b5b5b
          |3=#939393
          |4=#cacaca
          |5=#fdfdfd
          |6=#730000
          |7=#ce2222
          |8=#ff1616
          |9=#e24949
          |10=#ee7070
          |11=#ab4900
          |12=#d46816
          |13=#fa7000
          |14=#ec771c
          |15=#e9873b
          |16=#aa6f00
          |17=#daa016
          |18=#ffc62a
          |19=#ffcb53
          |20=#f5cd70
          |21=#9c8a00
          |22=#dad716
          |23=#fff316
          |24=#fcf951
          |25=#fffda1
          |26=#328000
          |27=#79b20d
          |28=#abf016
          |29=#c3fd5f
          |30=#dbff9c
          |31=#006616
          |32=#1c892e
          |33=#2aed22
          |34=#69d953
          |35=#a2ea94
          |36=#00a07c
          |37=#0db088
          |38=#22edaa
          |39=#7cf3b5
          |40=#b2ffd7
          |41=#007f90
          |42=#16acbf
          |43=#22d2ed
          |44=#7de0f6
          |45=#b0e9f6
          |46=#0d2277
          |47=#163d9f
          |48=#2251ed
          |49=#6e8ff0
          |50=#a5baf7
          |51=#260d77
          |52=#3b1ca6
          |53=#5822ed
          |54=#7c7ae9
          |55=#a9a8ec
          |56=#7a007f
          |57=#7a22a6
          |58=#aa22ed
          |59=#b37ee0
          |60=#d2b1ed
          |61=#a20d92
          |62=#bd22a1
          |63=#dc22ed
          |64=#e375eb
          |65=#efabf4
          |66=#7f001c
          |67=#dd224d
          |68=#ff4060
          |69=#f1687e
          |70=#f18282
          |71=#703200
          |72=#8e733d
          |73=#ab793b
          |74=#cf994f
          |75=#dbc9a0
           |#default={{{1|}}}}};"><span style="color:white;">{{{number|}}}</span></div>]]</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>