Difference between revisions of "Template:ColorSecurityRating/doc"

From EVE University Wiki
Jump to: navigation, search
m
m (Add See also section.)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 +
; Description
 +
: This template is used to color System [[Security Rating]]s.
  
;Description
+
; Syntax
:This template is used to color System [[Security Rating]]s.
+
: {{T|ColorSecurityRating|rating}}
;Syntax
+
:; Parameters
:<pre><nowiki>{{ColorSecurityRating | rating = Security Rating}}</nowiki></pre>
+
::; rating : The System Security Rating between 1.0 and -1.0, inclusive.
; Parameters
+
:; Deprecated parameters
: <code>rating</code>
+
:: Do <em>not</em> 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.
:: The System Security Rating between 1.0 and -1.0, inclusive.
+
::; rating= : Named parameter for the rating used as rating= 0.5.
;Sample output
 
:<pre><nowiki>{{ColorSecurityRating | rating = 1.0}}</nowiki></pre>
 
::gives... {{ColorSecurityRating | rating = 1.0}}
 
:<pre><nowiki>{{ColorSecurityRating | rating = 0.8}}</nowiki></pre>
 
::gives... {{ColorSecurityRating | rating = 0.8}}
 
:<pre><nowiki>{{ColorSecurityRating | rating = 0.5}}</nowiki></pre>
 
::gives... {{ColorSecurityRating | rating = 0.5}}
 
:<pre><nowiki>{{ColorSecurityRating | rating = 0.4}}</nowiki></pre>
 
::gives... {{ColorSecurityRating | rating = 0.4}}
 
:<pre><nowiki>{{ColorSecurityRating | rating = 0.1}}</nowiki></pre>
 
::gives... {{ColorSecurityRating | rating = 0.1}}
 
:<pre><nowiki>{{ColorSecurityRating | rating = 0.0}}</nowiki></pre>
 
::gives... {{ColorSecurityRating | rating = 0.0}}
 
:<pre><nowiki>{{ColorSecurityRating | rating = -0.2}}</nowiki></pre>
 
::gives... {{ColorSecurityRating | rating = -0.2}}
 
:<pre><nowiki>{{ColorSecurityRating | rating = -0.6}}</nowiki></pre>
 
::gives... {{ColorSecurityRating | rating = -0.6}}
 
:<pre><nowiki>{{ColorSecurityRating | rating = -1.0}}</nowiki></pre>
 
::gives... {{ColorSecurityRating | rating = -1.0}}
 
  
<includeonly>[[Category:Data templates|{{PAGENAME}}]]</includeonly>
+
; Sample
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
+
:<pre><nowiki>{{ColorSecurityRating | 1.0}}</nowiki></pre>
 +
::gives... {{ColorSecurityRating | 1.0}}
 +
:<pre><nowiki>{{ColorSecurityRating | 0.8}}</nowiki></pre>
 +
::gives... {{ColorSecurityRating | 0.8}}
 +
:<pre><nowiki>{{ColorSecurityRating | 0.5}}</nowiki></pre>
 +
::gives... {{ColorSecurityRating | 0.5}}
 +
:<pre><nowiki>{{ColorSecurityRating | 0.4}}</nowiki></pre>
 +
::gives... {{ColorSecurityRating | 0.4}}
 +
:<pre><nowiki>{{ColorSecurityRating | 0.1}}</nowiki></pre>
 +
::gives... {{ColorSecurityRating | 0.1}}
 +
:<pre><nowiki>{{ColorSecurityRating | 0.0}}</nowiki></pre>
 +
::gives... {{ColorSecurityRating | 0.0}}
 +
:<pre><nowiki>{{ColorSecurityRating | -0.2}}</nowiki></pre>
 +
::gives... {{ColorSecurityRating | -0.2}}
 +
:<pre><nowiki>{{ColorSecurityRating | -0.6}}</nowiki></pre>
 +
::gives... {{ColorSecurityRating | -0.6}}
 +
:<pre><nowiki>{{ColorSecurityRating | -1.0}}</nowiki></pre>
 +
::gives... {{ColorSecurityRating | -1.0}}
 +
 
 +
; See also
 +
* {{T|SystemToSecurity}}
 +
* {{T|SystemToRegion}}
 +
 
 +
<includeonly>[[Category:Data templates]]</includeonly>
 +
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 08:41, 19 August 2023

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