টেমপ্লেট:Composition bar

উইকিপিডিয়া, মুক্ত বিশ্বকোষ থেকে
Jump to navigation Jump to search
৫০ / ১০০
নথি আইকন টেমপ্লেট নথি[দেখুন] [সম্পাদনা] [ইতিহাস] [শোধন]

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.

ব্যবহার[সম্পাদনা]

{{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.

উদাহরণ[সম্পাদনা]

কোড ফলাফল
{{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)}}
৫০ / ১০০

আরও দেখুন[সম্পাদনা]