Template:Bar pixel/testcases

From MOASSpedia
Jump to navigation Jump to search

Test1

{{Bar box|bars=
{{bar pixel|foo|red|30}}
{{bar pixel|bar|green|40}}
{{bar pixel|baz|blue|20}}
{{bar pixel|bla|orange|8}}
{{bar pixel|bla|teal|2|1/50}}
}}

Template:Bar pixel

foo
30
bar
40
baz
20
bla
8
bla
21/50

Template:Bar pixel/sandbox

Template:Bar box/sandbox

Test2

{{Bar box|bars=
{{bar pixel|foo|red|30|bg=LightGray|barwidth=500px}}
{{bar pixel||green|40|barwidth=500px}}
{{bar pixel|bg=LightGray|barwidth=500px|baz|blue}}
{{bar pixel|baz|blue|bg=LightGray|barwidth=500px}}
{{bar pixel|baz|blue||bg=LightGray|barwidth=500px}}
{{bar pixel|barwidth=500px|1=bla|3=8}}
{{bar pixel|bla||8|barwidth=500px}}
{{bar pixel|blah|teal|2|1/50|bg=LightGray|barwidth=500px}}
{{bar pixel|bar|indigo|40|barwidth=500px|note=This is a note}}
{{bar pixel|barbar|violet|40|bg=LightGray|barwidth=500px|note=So is this}}
}}

Template:Bar pixel

foo
30
40
baz
0
baz
0
baz
bla
8
bla
8
blah
21/50
bar
40 This is a note
barbar
40 So is this

Template:Bar pixel/sandbox

Template:Bar box/sandbox