Difference between revisions of "ScoreColour"
From Sega Retro
m (Text replacement - "Category:Sega Retro templates" to "Category:Templates") |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
| {{#ifexpr: {{{1}}} < 61 | background: #F8F800 !important; color: #000000; | | {{#ifexpr: {{{1}}} < 61 | background: #F8F800 !important; color: #000000; | ||
| {{#ifexpr: {{{1}}} < 81 | background: #BEFF2F !important; color: #000000; | | {{#ifexpr: {{{1}}} < 81 | background: #BEFF2F !important; color: #000000; | ||
− | | background: # | + | | background: #50F050 !important; color: #000000 !important; }}}}}}}}</includeonly><noinclude> |
CSS for ratings. | CSS for ratings. | ||
Line 25: | Line 25: | ||
|} | |} | ||
− | [[Category: | + | [[Category:Templates]]</noinclude> |
Latest revision as of 17:07, 1 January 2022
CSS for ratings.
{{ScoreColour|XX}}
Example
{|class="prettytable" |style="{{ScoreColour|0}}"|0 |style="{{ScoreColour|25}}"|25 |style="{{ScoreColour|50}}"|50 |style="{{ScoreColour|75}}"|75 |style="{{ScoreColour|100}}"|100 |}
produces
0 | 25 | 50 | 75 | 100 |