模板:Composition bar/doc
本模板根据事物的子单位显示事物的数字组成。
范例
源代码 | 显示为 |
---|---|
{{Composition bar|50|100|red}}
|
50 / 100
|
{{Composition bar|50|100|red|color=#FFF}}
|
50 / 100
|
{{Composition bar|50|100|red|color=#FFF|background-color=#000}}
|
50 / 100
|
{{Composition bar|50|100|#99F}}
|
50 / 100
|
{{Composition bar|50|100|{{Party meta/color/保守黨 (英國)}}}}
|
50 / 100
|
{{Composition bar|50|100|rgb(255,255,16)}}
|
50 / 100
|
{{Composition bar|75|100|#FF0|width=250}}
|
75 / 100
|
{{Composition bar|40|100|#F00|width=300|per=1}}
|
40 / 100 (40%)
|
{{Composition bar|90|100|#F0F0F0|width=300|per=2|background-color=#F00}}
|
90 / 100 (90%)
|
{{Composition bar|90|100|#F0C|width=300|per=1|color=#FFF}}
|
90 / 100 (90%)
|