31:
61:
template can be used to show a composition bar split into different colours. It's intended use is on election articles to show the share of the vote in a given division/constituency/ward, but it can be used as a general composition bar, or as a more comprehensive progress bar.
89:
parameters allowing you to choose the colour of that part of the bar (using hexcode). In the examples below, political party templates are used to generate the specific colours (for example {{party color|Labour Party (UK)}} generates the following: #E4003B ).
1189:
1177:
46:
1213:
1173:
42:
50:
908:
1229:
1234:
1184:
1209:
1167:
887:
38:
869:
1159:
17:
1163:
1223:
365:
25:
116:, so you should ensure that you add up these numbers and enter it as the
97:
parameter. If this parameter isn't used, it will default to 500px.
100:
NOTE: This template does not currently add up your individual
371:
In the below example of an election result, a template (e.g.
65:
The number of votes or percentages are entered using the
1201:
1193:
356:
Colors (/colours) can be defined using hexcode (e.g.
128:, the extra space will be shown as white on the bar.
375:) is used to call the specific colour (in this case
364:). For a comprehensive list of X11 color names, see
93:The width of the whole box can be edited using the
8:
408:Cardiff South and Penarth by-election, 2012
692:Cardiff South and Penarth by-election, 2012
1183:Editors can experiment in this template's
1168:Template:Composition bar/advanced/doc
926:'''Phase 2'''
919:'''Phase 1'''
7:
868:Gender of the population of the UK (
717:Gender of the population of the UK (
1230:Chart, diagram and graph templates
24:
1235:Election and referendum templates
373:{{party color|Labour Party (UK)}}
907:(This example is taken from the
617:Green Party of England and Wales
120:parameter. If the total of your
29:
124:parameters does not reach the
1:
649:Socialist Labour Party (UK)
388:Example 1: Election results
1251:
1157:
681:Communist Party of Britain
360:) or as color names (e.g.
1214:Subpages of this template
886:Gender of MPs elected in
797:Gender of MPs elected in
1022:Composition_bar/advanced
933:Composition_bar/advanced
913:
786:Composition_bar/advanced
706:Composition_bar/advanced
700:
397:Composition_bar/advanced
391:
136:Composition_bar/advanced
130:
18:Template:Composition bar
944:Space Shuttle missions
909:WikiProject Spaceflight
903:Example 3: Progress bar
697:Example 2: Demographics
489:Conservative Party (UK)
1208:Add categories to the
1125:Space Shuttle missions
521:Liberal Democrats (UK)
34:Template documentation
585:UK Independence Party
77:parameters, with the
112:parameters for the
457:Labour Party (UK)
1242:
1205:
1197:
1181:
1106:
1102:
1099:
1096:
1092:
1089:
1086:
1082:
1079:
1076:
1072:
1069:
1066:
1062:
1059:
1056:
1052:
1049:
1046:
1042:
1039:
1036:
1032:
1029:
1026:
1023:
1020:
1017:
1013:
1010:
1007:
1003:
1000:
997:
993:
990:
987:
983:
980:
977:
973:
970:
967:
963:
960:
957:
953:
950:
947:
943:
940:
937:
934:
931:
927:
924:
920:
917:
863:
859:
856:
853:
849:
846:
843:
839:
836:
833:
829:
826:
823:
819:
816:
813:
809:
806:
803:
800:
796:
793:
790:
787:
784:
780:
777:
774:
770:
767:
764:
760:
757:
754:
750:
747:
744:
740:
737:
734:
730:
727:
724:
720:
716:
713:
710:
707:
704:
687:
684:
680:
677:
674:
671:
668:
665:
661:
658:
655:
652:
648:
645:
642:
639:
636:
633:
629:
626:
623:
620:
616:
613:
610:
607:
604:
601:
597:
594:
591:
588:
584:
581:
578:
575:
572:
569:
565:
562:
559:
556:
552:
549:
546:
543:
540:
537:
533:
530:
527:
524:
520:
517:
514:
511:
508:
505:
501:
498:
495:
492:
488:
485:
482:
479:
476:
473:
469:
466:
463:
460:
456:
453:
450:
447:
444:
441:
437:
434:
431:
427:
424:
421:
417:
414:
411:
407:
404:
401:
398:
395:
352:Color parameters
347:
344:
341:
338:
335:
332:
329:
326:
323:
320:
317:
314:
311:
308:
305:
302:
299:
296:
293:
290:
287:
284:
281:
278:
275:
272:
269:
266:
263:
260:
257:
254:
251:
248:
245:
242:
239:
236:
233:
230:
227:
224:
221:
218:
215:
212:
209:
206:
203:
200:
197:
194:
191:
188:
185:
182:
179:
176:
173:
170:
167:
164:
161:
158:
155:
152:
149:
146:
143:
140:
137:
134:
54:
35:
33:
32:
1250:
1249:
1245:
1244:
1243:
1241:
1240:
1239:
1220:
1219:
1218:
1217:
1207:
1199:
1187:
1182:
1171:
1156:
1155:
1150:
1148:
1145:
1142:
1140:
1136:
1134:
1131:
1128:
1126:
1108:
1107:
1104:
1100:
1097:
1094:
1090:
1087:
1084:
1080:
1077:
1074:
1070:
1067:
1064:
1060:
1057:
1054:
1050:
1047:
1044:
1040:
1037:
1034:
1030:
1027:
1024:
1021:
1018:
1015:
1011:
1008:
1005:
1001:
998:
995:
991:
988:
985:
981:
978:
975:
971:
968:
965:
961:
958:
955:
951:
948:
945:
941:
938:
935:
932:
929:
925:
922:
918:
915:
905:
900:
898:
895:
892:
890:
883:
881:
878:
875:
873:
865:
864:
861:
857:
854:
851:
847:
844:
841:
837:
834:
831:
827:
824:
821:
817:
814:
811:
807:
804:
801:
798:
794:
791:
788:
785:
782:
778:
775:
772:
768:
765:
762:
758:
755:
752:
748:
745:
742:
738:
735:
732:
728:
725:
722:
718:
714:
711:
708:
705:
702:
699:
694:
693:
689:
688:
685:
682:
678:
675:
672:
669:
666:
663:
659:
656:
653:
650:
646:
643:
640:
637:
634:
631:
627:
624:
621:
618:
614:
611:
608:
605:
602:
599:
595:
592:
589:
586:
582:
579:
576:
573:
570:
567:
563:
560:
557:
554:
550:
547:
544:
541:
538:
535:
531:
528:
525:
522:
518:
515:
512:
509:
506:
503:
499:
496:
493:
490:
486:
483:
480:
477:
474:
471:
467:
464:
461:
458:
454:
451:
448:
445:
442:
439:
435:
432:
429:
425:
422:
419:
415:
412:
409:
405:
402:
399:
396:
393:
390:
385:
354:
349:
348:
345:
342:
339:
336:
333:
330:
327:
324:
321:
318:
315:
312:
309:
306:
303:
300:
297:
294:
291:
288:
285:
282:
279:
276:
273:
270:
267:
264:
261:
258:
255:
252:
249:
246:
243:
240:
237:
234:
231:
228:
225:
222:
219:
216:
213:
210:
207:
204:
201:
198:
195:
192:
189:
186:
183:
180:
177:
174:
171:
168:
165:
162:
159:
156:
153:
150:
147:
144:
141:
138:
135:
132:
59:Composition bar
55:
36:
30:
28:
22:
21:
20:
12:
11:
5:
1248:
1246:
1238:
1237:
1232:
1222:
1221:
1198:and testcases
1154:
1151:
1138:
1137:
1124:
1123:
1122:
1121:
1115:
914:
904:
901:
885:
884:
867:
866:
701:
698:
695:
691:
690:
392:
389:
386:
384:
381:
353:
350:
131:
27:
26:
23:
15:
14:
13:
10:
9:
6:
4:
3:
2:
1247:
1236:
1233:
1231:
1228:
1227:
1225:
1215:
1211:
1203:
1195:
1191:
1186:
1179:
1175:
1169:
1165:
1161:
1160:documentation
1152:
1149:
1146:
1143:
1135:
1132:
1129:
1119:
1116:
1113:
1110:
1109:
1098:partycolor3
1088:party3
1078:partycolor2
1068:party2
1058:partycolor1
1048:party1
1038:total
1028:divisionname
1009:partycolor3
999:party3
989:partycolor2
979:party2
969:partycolor1
959:party1
949:total
939:divisionname
912:
910:
902:
899:
896:
893:
889:
882:
879:
876:
871:
855:partycolor2
845:party2
835:partycolor1
825:party1
815:boxwidth
805:total
792:divisionname
776:partycolor2
766:party2
756:partycolor1
746:party1
736:boxwidth
726:total
712:divisionname
696:
667:partycolor8
657:party8
635:partycolor7
625:party7
603:partycolor6
593:party6
571:partycolor5
561:party5
539:partycolor4
529:party4
507:partycolor3
497:party3
475:partycolor2
465:party2
443:partycolor1
433:party1
423:boxwidth
413:total
403:divisionname
387:
382:
380:
378:
374:
369:
367:
363:
359:
351:
340:partycolor10
331:party10
322:partycolor9
313:party9
304:partycolor8
295:party8
286:partycolor7
277:party7
268:partycolor6
259:party6
250:partycolor5
241:party5
232:partycolor4
223:party4
214:partycolor3
205:party3
196:partycolor2
187:party2
178:partycolor1
169:party1
160:boxwidth
151:total
142:divisionname
129:
127:
123:
119:
115:
111:
107:
103:
98:
96:
91:
88:
84:
80:
76:
72:
68:
63:
60:
57:The advanced
52:
48:
44:
40:
19:
1147:
1144:
1141:
1133:
1130:
1127:
1117:
1111:
906:
897:
894:
891:
880:
877:
874:
376:
372:
370:
361:
357:
355:
125:
121:
117:
113:
109:
105:
101:
99:
94:
92:
86:
82:
78:
74:
70:
66:
64:
58:
56:
1164:transcluded
870:2011 census
781:DodgerBlue
676:party color
644:party color
612:party color
580:party color
553:Plaid Cymru
548:party color
516:party color
484:party color
452:party color
87:partycolor3
83:partycolor2
79:partycolor1
49:] [
45:] [
41:] [
1224:Categories
1158:The above
1153:References
1212:subpage.
921:(orange)
771:31029000
751:32153000
731:63182000
362:LawnGreen
1114:(orange)
1103:#aa0000
1083:#ffaa00
1063:#00aa00
1033:Overall
1014:#aa0000
994:#ffaa00
974:#00aa00
928:(green)
860:#1E90FF
840:#FF69B4
761:HotPink
383:Examples
95:boxwidth
1192:|
1185:sandbox
1178:history
1176:|
1139:Overall
1120:(green)
1118:Phase 2
1112:Phase 1
377:#DC241f
358:#7CFC00
47:history
1206:pages.
1202:create
418:19436
110:party3
106:party2
102:party1
75:party3
71:party2
67:party1
1166:from
1093:1838
1043:1900
566:1179
534:1854
502:2103
470:3859
438:9193
126:total
122:party
118:total
114:total
53:]
51:purge
37:[
16:<
1210:/doc
1194:diff
1190:edit
1174:edit
954:135
888:2010
850:508
830:142
820:500
810:650
783:}}{{
741:500
662:213
630:235
598:800
428:800
366:here
43:edit
39:view
1162:is
1073:51
1053:11
1004:75
984:50
964:10
911:.)
379:).
1226::
1170:.
1105:}}
1019:{{
1016:}}
930:{{
862:}}
721:)
703:{{
686:}}
683:}}
673:{{
651:}}
641:{{
619:}}
609:{{
587:}}
577:{{
555:}}
545:{{
523:}}
513:{{
491:}}
481:{{
459:}}
449:{{
394:{{
368:.
346:}}
133:{{
1216:.
1204:)
1200:(
1196:)
1188:(
1180:)
1172:(
1101:=
1095:|
1091:=
1085:|
1081:=
1075:|
1071:=
1065:|
1061:=
1055:|
1051:=
1045:|
1041:=
1035:|
1031:=
1025:|
1012:=
1006:|
1002:=
996:|
992:=
986:|
982:=
976:|
972:=
966:|
962:=
956:|
952:=
946:|
942:=
936:|
923:*
916:*
872:)
858:=
852:|
848:=
842:|
838:=
832:|
828:=
822:|
818:=
812:|
808:=
802:|
799:]
795:=
789:|
779:=
773:|
769:=
763:|
759:=
753:|
749:=
743:|
739:=
733:|
729:=
723:|
719:]
715:=
709:|
679:|
670:=
664:|
660:=
654:|
647:|
638:=
632:|
628:=
622:|
615:|
606:=
600:|
596:=
590:|
583:|
574:=
568:|
564:=
558:|
551:|
542:=
536:|
532:=
526:|
519:|
510:=
504:|
500:=
494:|
487:|
478:=
472:|
468:=
462:|
455:|
446:=
440:|
436:=
430:|
426:=
420:|
416:=
410:|
406:=
400:|
343:=
337:|
334:=
328:|
325:=
319:|
316:=
310:|
307:=
301:|
298:=
292:|
289:=
283:|
280:=
274:|
271:=
265:|
262:=
256:|
253:=
247:|
244:=
238:|
235:=
229:|
226:=
220:|
217:=
211:|
208:=
202:|
199:=
193:|
190:=
184:|
181:=
175:|
172:=
166:|
163:=
157:|
154:=
148:|
145:=
139:|
108:/
104:/
85:/
81:/
73:/
69:/
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.