Difference between revisions of "Template:Battle-rating"

From War Thunder Wiki
Jump to: navigation, search
(Additions)
(No longer requires manual input for correct formatting)
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#switch: {{{1|}}}|1=with a battle rating of {{specs|br|ab}} (AB/RB/SB)|2=with a battle rating of {{specs|br|ab}} (AB), {{specs|br|rb}} (RB), and {{specs|br|sb}} (SB)|3=with a battle rating of {{specs|br|ab}} (AB/RB) and {{specs|br|sb}} (SB)|4=with a battle rating of {{specs|br|ab}} (AB/SB) and {{specs|br|rb}} (RB)|5=with a battle rating of {{specs|br|ab}} (AB) and {{specs|br|rb}} (RB/SB)|''(Error - please see '''Template:Battle-rating''' for details)''}}<!--
+
<includeonly>
To use on regular wiki page:
+
{{#switch: 1
* {{Battle-rating|1}} will output ''with a battle rating of X.X (AB/RB/SB)''
+
| {{#expr: {{Specs|br|ab}} = {{Specs|br|rb}} and {{Specs|br|rb}} = {{Specs|br|sb}}}} = with a battle rating of {{specs|br|ab}} (AB/RB/SB)
* {{Battle-rating|2}} will output ''with a battle rating of X.X (AB), X.X (RB), and X.X (SB)''
+
| {{#expr: {{Specs|br|ab}} = {{Specs|br|rb}}}} = with a battle rating of {{specs|br|ab}} (AB/RB) and {{specs|br|sb}} (SB)
* {{Battle-rating|3}} will output ''with a battle rating of X.X (AB/RB) and X.X (SB)''
+
| {{#expr: {{Specs|br|ab}} = {{Specs|br|sb}}}} = with a battle rating of {{specs|br|ab}} (AB/SB) and {{specs|br|rb}} (RB)
* {{Battle-rating|4}} will output ''with a battle rating of X.X (AB/SB) and X.X (RB)''
+
| {{#expr: {{Specs|br|rb}} = {{Specs|br|sb}}}} = with a battle rating of {{specs|br|ab}} (AB) and {{specs|br|rb}} (RB/SB)  
* {{Battle-rating|5}} will output ''with a battle rating of X.X (AB) and X.X (RB/SB)''
+
|#default = with a battle rating of {{specs|br|ab}} (AB), {{specs|br|rb}} (RB), and {{specs|br|sb}} (SB)}}</includeonly><noinclude>
* {{Battle-rating}}, {{Battle-rating|6}} or any other variation will output: ''(Error - please see '''Template:Battle-rating''' for details)''
+
{{Doc}}
-->
+
[[Category:Templates]]
 +
</noinclude>

Latest revision as of 07:26, 4 March 2019

Description

The Template:Battle-rating is applied to input battle-rating data in the system onto pages in a set format.

Use

{{Battle-rating}}