Template:Bar

From ChoralWiki
Revision as of 17:26, 5 February 2020 by BarryJ (talk | contribs)
Jump to navigation Jump to search


 IııııiııııIııııiııııIııııiııııIııııiııııIııııiııııIııııiııııIı...:....!....:....!....:....!....:....! 
1234 new score pages this year out of 2000 goal (61.7%)

Creates a bar representing the fraction "<n> <things> <goal> <after>". The label defaults are

n=1234
things=new score pages this year
goal=2000
after=annual goal

Normally this template might be invoked with something like:

{{Bar|{{NewWorkCount}} }}
{{Bar|{{#expr: 1+ {{#time: z }}}}|goal=365|things=days elapsed out of|after=}}

These invocations produce:

 IııııiııııIııııiııııIııııiııııIııııiııııIııııiııııIııııiııııIııııiııııIııııiııııIıı..:....!....:....! 
1650 new score pages this year out of 2000 goal (82.5%)
 IııııiııııIııııiııııIııııiııııIı...:....!....:....!....:....!....:....!....:....!....:....!....:....! 
115 days elapsed out of 365 (31.506%)


{{Bar|n=977|goal=800|things=oboes available out of|after=needed}}

produces:

 IııııiııııIııııiııııIııııiııııIııııiııııIııııiııııIııııiııııIııııiııııIııııiııııIııııiııııIııııiııııIııııiııııIııııiııııIıı..:....! 
977 oboes available out of 800 needed (122.125%)

Note the green color for the 100% already attained.

{{Bar|n=37|goal=60|things=tenors recruited out of|after=positions available}}

produces:

 IııııiııııIııııiııııIııııiııııIııııiııııIııııiııııIııııiııııIı...:....!....:....!....:....!....:....! 
37 tenors recruited out of 60 positions available (61.666%)