Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:ColorSecurityRating: Difference between revisions

Template page
m Change to work with anonymous parameter.
Appolomyi (talk | contribs)
No edit summary
Line 1: Line 1:
<includeonly>{{#switch: {{lc: {{#if: {{{1|}}} | {{{1}}} | {{{rating|}}} }} }}
<includeonly>
| 1
  <!-- scoped to the HTML tag’s day/light classes -->
| 1.0 = {{Color | #33F8F8 |1.0}}
  <style>
| 0.9 = {{Color | #4CF8C7 |0.9}}
    html.skin-theme-clientpref-day.skin-citizen-light .darker-rating {
| 0.8 = {{Color | #02EA46 |0.8}}
      display: inline-block;
| 0.7 = {{Color | #08E408 |0.7}}
      background-color: #020202;
| 0.6 = {{Color | #96F833 |0.6}}
      padding: 0.1em 0.3em;
| 0.5 = {{Color | #F8F802 |0.5}}
      border-radius: 0.2em;
| 0.4 = {{Color | #C3720C |0.4}}
    }
| 0.3 = {{Color | #FF6600 |0.3}}
  </style>
| 0.2 = {{Color | #F94D03 |0.2}}
 
| 0.1 = {{Color | #E03302 |0.1}}
  {{#switch: {{lc: {{#if: {{{1|}}} | {{{1}}} | {{{rating|}}} }} }}
| 0
    | 1.0 = {{Color|#33F8F8|1.0}}
| 0.0 = {{Color | #F90303 |0.0}}
    | 0.9 = {{Color|#4CF8C7|0.9}}
| -0.1 = {{Color | #F90303 |-0.1}}
    | 0.8 = {{Color|#02EA46|0.8}}
| -0.2 = {{Color | #F90303 |-0.2}}
    | 0.7 = {{Color|#08E408|0.7}}
| -0.3 = {{Color | #F90303 |-0.3}}
    | 0.6 = {{Color|#96F833|0.6}}
| -0.4 = {{Color | #F90303 |-0.4}}
    | 0.5 = <span class="darker-rating">{{Color|#F8F802|0.5}}</span>
| -0.5 = {{Color | #F90303 |-0.5}}
    | 0.4 = {{Color|#C3720C|0.4}}
| -0.6 = {{Color | #F90303 |-0.6}}
    | 0.3 = {{Color|#FF6600|0.3}}
| -0.7 = {{Color | #F90303 |-0.7}}
    | 0.2 = {{Color|#F94D03|0.2}}
| -0.8 = {{Color | #F90303 |-0.8}}
    | 0.1 = {{Color|#E03302|0.1}}
| -0.9 = {{Color | #F90303 |-0.9}}
    | 0.0 = {{Color|#F90303|0.0}}
| -1
    | -0.1 = {{Color|#F90303|-0.1}}
| -1.0 = {{Color | #F90303 |-1.0}}
    | #default = <span style="color:red">Accepted: 1.0 -1.0</span>
| #default = <span style="color:red">Accepted values: 1.0, 0.9, ... , -0.9, -1.0</span>
  }}
}}</includeonly><noinclude>
</includeonly>
{{documentation}}
<noinclude>{{documentation}}</noinclude>
</noinclude>