Difference between revisions of "ScoreColour"

From Sega Retro

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: #00F500 !important; color: #000000 !important; }}}}}}}}</includeonly><noinclude>
+
| background: #50F050 !important; color: #000000 !important; }}}}}}}}</includeonly><noinclude>
  
 
CSS for ratings.
 
CSS for ratings.

Revision as of 03:53, 19 August 2020


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