Template:Bar: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(tweak)
mNo edit summary
Line 1: Line 1:
<center>{{box|bgcolor=o|<center>{{{1|419}}} {{{things|new score pages}}} out of {{{goal|1800}}} goal ({{#expr: {{{1|419}}}*100/{{{goal|1800}}} round1 }}%)<br>
<includeonly><center>{{box|bgcolor=o|<center>{{{1|419}}} {{{things|new score pages}}} out of {{{goal|1800}}} goal ({{#expr: {{{1|419}}}*100/{{{goal|2000}}} round1 }}%)<br>
<b>{{#switch: {{#expr: floor ( {{{1|419}}} * 10 / {{{goal|1800}}} ) }}
<b>{{#switch: {{#expr: floor ( {{{1|419}}} * 10 / {{{goal|1800}}} ) }}
|0=
|0=
Line 33: Line 33:
|9=....:....!....:....!....:....!....:....!....:....!....:....!....:....!....:....!
|9=....:....!....:....!....:....!....:....!....:....!....:....!....:....!....:....!
|10=....:....!....:....!....:....!....:....!....:....!....:....!....:....!....:....!....:....!
|10=....:....!....:....!....:....!....:....!....:....!....:....!....:....!....:....!....:....!
}}</b></center>}}</center>
}}</b></center>}}</center></includeonly>
{{Bar|{{NewWorkCount}}|things=new score pages this year|goal=2000}}
<noinclude>
<noinclude>
Creates a bar representing the fraction "n" "things" out of "goal".  The label defaults are
Creates a bar representing the fraction "n" "things" out of "goal".  The label defaults are

Revision as of 23:52, 3 May 2013

1767 new score pages this year out of 2000 goal (88.4%)
ıIIIIiIIIIıIIIIiIIIIıIIIIiIIIIıIIIIiIIIIıIIIIiIIIIıIIIIiIIIIıIIIIiIIIIıIIIIiIIIIıIIIIiIII.!....:....!

Template loop detected: Template:Bar


Creates a bar representing the fraction "n" "things" out of "goal". The label defaults are

n=419
things=new score pages
goal=1800

Normally this template would be invoked with

{{Bar|{{NewWorkCount}}|goal=<some target goal, eg. 1800>|things=new score pages}}
or
{{Bar|{{NewScoreCount}}|goal=<some target goal, eg. 2400>|things=new editions}}