Template:Bar

From ChoralWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


   IııııiııııIııııiııııIııııiııııIııııiııııIııııiııııIııııiııııIı...:....!....:....!....:....!....:....!   
1232 newly created score pages this year: 2300 goal (53.565%)

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

n=1232
things=newly created score pages this year
goal=2300
after=annual goal

Normally this template might be invoked with something like:

{{Bar|{{NewScoreCount}}|goal=4500|things=score pages with new editions: |after=goal}}

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

These invocations produce:

   IııııiııııIııııiııııIııııiııııIııııi....!....:....!....:....!....:....!....:....!....:....!....:....!   
1575 score pages with new editions: 4500 goal (35%)


   IııııiııııIııııiııııIııııiıııı!....:....!....:....!....:....!....:....!....:....!....:....!....:....!   
109 days elapsed out of 365 (29.863%)


{{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%)