Difference between revisions of "Template:ColorSecurityRating"

From EVE University Wiki
Jump to: navigation, search
(Created a dictionary template that colors System Security Ratings)
 
m (Changed parameter name to "rating")
Line 1: Line 1:
<includeonly>{{#switch: {{lc:{{{system}}}}}
+
<includeonly>{{#switch: {{lc:{{{rating}}}}}
 
  | 1
 
  | 1
 
  | 1.0 = {{Color | #33F8F8 | 1}}
 
  | 1.0 = {{Color | #33F8F8 | 1}}

Revision as of 21:16, 19 February 2021

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... Accepted values: 1.0, 0.9, ... , -0.9, -1.0
{{ColorSecurityRating | 0.8}}
gives... Accepted values: 1.0, 0.9, ... , -0.9, -1.0
{{ColorSecurityRating | 0.5}}
gives... Accepted values: 1.0, 0.9, ... , -0.9, -1.0
{{ColorSecurityRating | 0.4}}
gives... Accepted values: 1.0, 0.9, ... , -0.9, -1.0
{{ColorSecurityRating | 0.1}}
gives... Accepted values: 1.0, 0.9, ... , -0.9, -1.0
{{ColorSecurityRating | 0.0}}
gives... Accepted values: 1.0, 0.9, ... , -0.9, -1.0
{{ColorSecurityRating | -0.2}}
gives... Accepted values: 1.0, 0.9, ... , -0.9, -1.0
{{ColorSecurityRating | -0.6}}
gives... Accepted values: 1.0, 0.9, ... , -0.9, -1.0
{{ColorSecurityRating | -1.0}}
gives... Accepted values: 1.0, 0.9, ... , -0.9, -1.0
See also
Visit Template:ColorSecurityRating/doc to edit this text! (How does this work?) (Refresh this text - why?)