Difference between revisions of "Template:bbfaw"

From WikiCorporates
Jump to navigation Jump to search
(Created page with "<span style="color:white; background-color: {{#switch:{{{2}}} |A=#01a793; border:1px solid #01a793; <!-- Tier 1/A: #01a793 --> |B=#178a89; border:1px solid #178a89; <!-- Tier...")
 
Line 9: Line 9:
 
|#default=No such band in switch(2).
 
|#default=No such band in switch(2).
 
}}<!-- -->
 
}}<!-- -->
−
text-align:center;">&nbsp;{{{1}}}: A&nbsp;</span><noinclude>{{doc2}}</noinclude>
+
text-align:center;">&nbsp;{{{1}}}: {{{2}}}&nbsp;</span><noinclude>{{doc2}}</noinclude>

Revision as of 18:41, 22 October 2019

 {{{1}}}: {{{2}}} 

[edit] Documentation

Small template to create annual ratings for BBFAW.

BBFAW allocates 6 Tiers, each of which has a given colour. The Tiers use numerical grades, but alpha ones are more intuitive (I think). This template takes a Year, and a Tier, and returns either a numerical or alpha grade, depending on whether num=t is set or not.

Parameters

{{bbfaw
|num=t   optional
|param1  year, eg. "2017"
|param2  tier, eg. "4"

Usage

  • {{bbfaw|2017|4}} gives:  2017: 4 
  • {{bbfaw|num=t|2017|4}} gives:  2017: 4