Difference between revisions of "Template:ColorSecurityRating"
From EVE University Wiki
m (Changed parameter name to "rating") |
m (Change to work with anonymous parameter.) |
||
(4 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#switch: {{lc:{{{rating}}}}} | + | <includeonly>{{#switch: {{lc: {{#if: {{{1|}}} | {{{1}}} | {{{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 | # | + | | 0.8 = {{Color | #02EA46 |0.8}} |
− | | 0.7 = {{Color | #08E408 | 0.7}} | + | | 0.7 = {{Color | #08E408 |0.7}} |
− | | 0.6 = {{Color | #96F833 | 0.6}} | + | | 0.6 = {{Color | #96F833 |0.6}} |
− | | 0.5 = {{Color | #F8F802 | 0.5}} | + | | 0.5 = {{Color | #F8F802 |0.5}} |
− | | 0.4 = {{Color | #C3720C | 0.4}} | + | | 0.4 = {{Color | #C3720C |0.4}} |
− | | 0.3 = {{Color | #FF6600 | 0.3}} | + | | 0.3 = {{Color | #FF6600 |0.3}} |
− | | 0.2 = {{Color | #F94D03 | 0.2}} | + | | 0.2 = {{Color | #F94D03 |0.2}} |
− | | 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> |
Latest revision as of 17:05, 13 October 2022
Template documentation (for the above template, sometimes hidden or invisible)
- Description
- This template is used to color System Security Ratings.
- Syntax
- {{ColorSecurityRating|<rating>}}
- Parameters
-
- rating
- The System Security Rating between 1.0 and -1.0, inclusive.
- Deprecated parameters
- Do not use for new instances of the the template. When editing a page where this parameter is used, please change to the new form. There is no need to edit a page just to change the parameter use.
- rating=
- Named parameter for the rating used as rating= 0.5.
- Sample
{{ColorSecurityRating | 1.0}}
- gives... 1.0
{{ColorSecurityRating | 0.8}}
- gives... 0.8
{{ColorSecurityRating | 0.5}}
- gives... 0.5
{{ColorSecurityRating | 0.4}}
- gives... 0.4
{{ColorSecurityRating | 0.1}}
- gives... 0.1
{{ColorSecurityRating | 0.0}}
- gives... 0.0
{{ColorSecurityRating | -0.2}}
- gives... -0.2
{{ColorSecurityRating | -0.6}}
- gives... -0.6
{{ColorSecurityRating | -1.0}}
- gives... -1.0
- See also
- {{SystemToSecurity}}
- {{SystemToRegion}}
Visit Template:ColorSecurityRating/doc to edit this text! (How does this work?) (Refresh this text - why?)