"फलकम्:Composition bar/doc" इत्यस्य संस्करणे भेदः

{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> This template displays ... नवीनं पृष्ठं निर्मितमस्ति
(भेदः नास्ति)

१०:१९, ११ जुलै २०१३ इत्यस्य संस्करणं

This template displays the numeric composition of a thing in terms of its sub-units. For example, it is frequently used as part of {{Infobox political party}} to show the number of seats a given political party holds in a legislature.

Usage

{{Composition bar|amount|total|color}}
  • amount is the number of sub-units
  • total is the total number of sub-units possible
  • color is a valid web color, which can be specified either by name, as a hex triplet (#rrbbgg), or hex triplet.
    In the case of political parties, most will have their logo color avaiable in {{political party/meta/color}} templates.

Examples

Code Result
{{Composition bar|50|100|red}}
५० / १००
{{Composition bar|50|100|#9999FF}}
५० / १००
{{Composition bar|50|100|{{Green Party (UK)/meta/color}}}}
५० / १००
{{Composition bar|50|100|rgb(255,255,16)}}
५० / १००

See also


"https://sa.wikipedia.org/w/index.php?title=फलकम्:Composition_bar/doc&oldid=244449" इत्यस्माद् प्रतिप्राप्तम्