Template:Composition bar/doc: Difference between revisions

From CivWiki
Jump to navigation Jump to search
Content added Content deleted
(Removed sitelinks migrated to Wikidata)
Line 48: Line 48:
[[Category:Graphic templates]]
[[Category:Graphic templates]]


[[cs:Šablona:Infobox politická strana/mandáty]]
[[ଛାଞ୍ଚ:Infobox political party/seats]]
[[de:Vorlage:Infobox Partei/Mandate]]
[[es:Plantilla:Ficha de partido político/escaños]]
[[fr:Modèle:Infobox parti politique/Sièges]]
[[id:Templat:Infobox partai politik/kursi]]
[[ja:Template:政党/議席数]]
[[ko:틀:정당 정보/의석]]
[[or:ଛାଞ୍ଚ:Infobox political party/seats]]
[[sv:Mall:Partifakta/platser]]
[[ur:سانچہ:خانہ معلومات سیاسی جماعت/نشستیں]]
</includeonly>
</includeonly>

Revision as of 20:21, 23 April 2013

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}}
50 / 100
{{Composition bar|50|100|#9999FF}}
50 / 100
{{Composition bar|50|100|{{Green Party (UK)/meta/color}}}}
50 / 100
{{Composition bar|50|100|rgb(255,255,16)}}
50 / 100

See also