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
Arin Mara (talk | contribs)
m Changed parameter name to "rating"
Arin Mara (talk | contribs)
m Template switch correction
Line 1: Line 1:
<includeonly>{{#switch: {{lc:{{{rating}}}}}
<includeonly>{{#switch: {{lc:{{{rating}}}}}
  | 1
  | 1
  | 1.0 = {{Color | #33F8F8 | 1}}
  | 1.0 = {{Color | #33F8F8 | 1.0}}
  | 0.9 = {{Color | #4CF8C7 | 0.9}}
  | 0.9 = {{Color | #4CF8C7 | 0.9}}
  | 0.8 = {{Color | #1BA345 | 0.8}}
  | 0.8 = {{Color | #1BA345 | 0.8}}
Line 12: Line 12:
  | 0.1 = {{Color | #E03302 | 0.1}}
  | 0.1 = {{Color | #E03302 | 0.1}}
  | 0
  | 0
  | 0.0
  | 0.0 = {{Color | #F90303 | 0.0}}
  | -0.1
  | -0.1 = {{Color | #F90303 | -0.1}}
  | -0.2
  | -0.2 = {{Color | #F90303 | -0.2}}
  | -0.3
  | -0.3 = {{Color | #F90303 | -0.3}}
  | -0.4
  | -0.4 = {{Color | #F90303 | -0.4}}
  | -0.5
  | -0.5 = {{Color | #F90303 | -0.5}}
  | -0.6
  | -0.6 = {{Color | #F90303 | -0.6}}
  | -0.7
  | -0.7 = {{Color | #F90303 | -0.7}}
  | -0.8
  | -0.8 = {{Color | #F90303 | -0.8}}
  | -0.9
  | -0.9 = {{Color | #F90303 | -0.9}}
  | -1
  | -1
  | -1.0 = {{Color | #F90303 | -1}}
  | -1.0 = {{Color | #F90303 | -1.0}}
  | #default = <span style="color:red">Accepted values: 1.0, 0.9, ... , -0.9, -1.0</span>
  | #default = <span style="color:red">Accepted values: 1.0, 0.9, ... , -0.9, -1.0</span>
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>