Knowledge

Template:Barlabel

Source 📝

34: 1655:
The template works by constructing a hidden table. Different browsers (user agents) have different algorithms for laying out tables, so the precise alignment of the labels differs between browsers and platforms, and is not always exactly opposite the chosen leaf node. Although it's possible to
267:
Decide against which leaf nodes you want the labels to go. To centre the labels, the label for the green group should be opposite leaf node 3; the label for the purple group should be between leaf nodes 5 and 6, i.e. opposite leaf node "5.5". The
1646:, otherwise the space occupied by the labels will be ignored in placing the cladogram. Trial and error may be needed, but about 60% of the number of characters in the longest label is usually a good starting point. 824:, otherwise the labels will appear off the right of the page. Trial and error may be needed, but about 60% of the number of characters in the longest label is usually a good starting point. Thus 820:
The cladogram can be aligned to the right, with text flowing around it to the left, but in this case you must specify the space allowed for the labels using the parameter
1529:. The label is placed opposite the chosen leaf node. For a label between two leaf nodes, use the average. Thus to place the first label opposite leaf node 6, use 1747: 1735: 49: 1656:'tweak' the alignment for one browser/platform combination (e.g. by using fractional positions other than 0.5), this won't work across combinations. 1787: 1771: 1731: 45: 1468:
Up to six labels can be provided. They are identified by the digit in the name of the parameter. Each label requires three parameters, e.g.
1525:
defines the position of label N in terms of position of the leaf node in the whole cladogram, starting from 1 and ending at the value of
1131:
parameter is needed to ensure the cladogram is centred; if it is omitted, the labels will be ignored in determining the placement. Thus
1717: 53: 1742: 60:
This template is used to add labels to brackets and bars which have been added to cladograms constructed with
1767: 1725: 41: 1659:
The template does not check the ranges of the parameters supplied, so make sure that the values of the
1629:. The last two allow text to flow around the side of the cladogram, i.e. it is embedded in the text. 1607:
If you do, the cladogram and the labels will not align correctly as they will be of different sizes.
1706: 1441: 1698:
is needed whenever the cladogram is aligned to the centre, right or left. This includes placing
1721: 1482:
There is no connection between these numbers and the numbers used to identify child nodes in
276:
The full expression required is shown below (excluding the code to create the cladogram).
1437:(The template can be used to align cladograms without brackets/bars and labels, although 1426:
The cladogram can also be aligned left with text flowing around it to the right by using
1599: 1565: 1486: 83: 64: 1781: 1585:
The size of the text used in the cladogram and labels can be altered by using the
1543:
defines the text of label N. Thus to give the third label the text "Group 3", use
260:
Count the number of leaf nodes in the cladogram; here there are 7. The parameter
1553:
defines the colour of label N. Thus to put the second label in green text, use
1533:; to place the third label opposite a point between leaf nodes 6 and 7, use 28: 1460:
must be set to the total number of leaf nodes in the cladogram, e.g.
256:
To provide labels for the two groups identified in the cladogram:
1434:
parameter is needed, otherwise the labels will overlap the text.
541:
To reduce the font size of the cladogram and its labels, use the
1119:
The cladogram can be placed centrally on the page by specifying
1639:, you must also specify the space allowed for the labels using 1679:
are defined. The colour of the text of the label (defined by
92:
Then embed the cladogram in this template as the value of
1759: 1751: 1613:
The cladogram can be aligned centrally by specifying
105:
Suppose you have created the cladogram shown below.
272:
parameters of the template are set to these values.
1663:parameters are less or equal to the value of the 1712:and aligning it to the right via that template. 1667:parameters. Label N will only be displayed if 8: 950:produces the cladogram on the right below. 1741:Editors can experiment in this template's 1621:, or to the right or left by specifying 93: 1447:offers more options for doing this.) 7: 1340: 1319: 1272: 1264: 1033: 1012: 965: 957: 734: 713: 666: 658: 455: 434: 387: 379: 184: 163: 116: 108: 1595:Do not alter the font size in the 14: 32: 79:First create a cladogram using 1788:Genealogy formatting templates 1: 1494:The "1" can be omitted, i.e. 1259: 952: 653: 374: 15: 1804: 1715: 1772:Subpages of this template 1371: 1358: 1345: 1338: 1324: 1317: 1303: 1290: 1277: 1270: 1064: 1051: 1038: 1031: 1017: 1010: 996: 983: 970: 963: 765: 752: 739: 732: 718: 711: 697: 684: 671: 664: 486: 473: 460: 453: 439: 432: 418: 405: 392: 385: 215: 202: 189: 182: 168: 161: 147: 134: 121: 114: 1133: 826: 547: 278: 20:No cladogram specified! 1766:Add categories to the 1651:Limitations, debugging 1480:for the second label. 37:Template documentation 1726:Template:Barlabel/doc 1691:) defaults to black. 1579:can be used instead.) 1591:|style=font-size:85% 94:|cladogram= 1561:is consistent with 1506:are equivalent to 1424: 1423: 1409: 1408: 1400: 1399: 1391: 1390: 1382: 1381: 1117: 1116: 1102: 1101: 1093: 1092: 1084: 1083: 1075: 1074: 818: 817: 803: 802: 794: 793: 785: 784: 776: 775: 539: 538: 524: 523: 515: 514: 506: 505: 497: 496: 264:will be set to 7. 253: 252: 244: 243: 235: 234: 226: 225: 27: 26: 1795: 1763: 1755: 1739: 1711: 1705: 1701: 1697: 1690: 1686: 1682: 1678: 1674: 1670: 1666: 1662: 1645: 1638: 1634: 1628: 1624: 1620: 1616: 1612: 1604: 1598: 1592: 1589:parameter, e.g. 1588: 1584: 1578: 1574: 1570: 1564: 1560: 1556: 1552: 1546: 1542: 1536: 1532: 1528: 1524: 1517: 1513: 1509: 1505: 1501: 1497: 1491: 1485: 1479: 1475: 1471: 1463: 1459: 1446: 1440: 1433: 1429: 1341: 1320: 1273: 1265: 1260: 1253: 1249: 1246: 1243: 1239: 1236: 1233: 1229: 1226: 1223: 1219: 1216: 1213: 1209: 1206: 1203: 1199: 1196: 1193: 1189: 1186: 1183: 1179: 1176: 1173: 1169: 1166: 1163: 1159: 1156: 1153: 1149: 1146: 1143: 1140: 1137: 1130: 1126: 1122: 1034: 1013: 966: 958: 953: 946: 942: 939: 936: 932: 929: 926: 922: 919: 916: 912: 909: 906: 902: 899: 896: 892: 889: 886: 882: 879: 876: 872: 869: 866: 862: 859: 856: 852: 849: 846: 842: 839: 836: 833: 830: 823: 735: 714: 667: 659: 654: 647: 643: 640: 637: 633: 630: 627: 623: 620: 617: 613: 610: 607: 603: 600: 597: 593: 590: 587: 583: 580: 577: 573: 570: 567: 563: 560: 557: 554: 551: 545:parameter. Thus 544: 456: 435: 388: 380: 375: 368: 364: 361: 358: 354: 351: 348: 344: 341: 338: 334: 331: 328: 324: 321: 318: 314: 311: 308: 304: 301: 298: 294: 291: 288: 285: 282: 271: 263: 185: 164: 117: 109: 95: 88: 82: 69: 63: 57: 38: 36: 35: 16: 1803: 1802: 1798: 1797: 1796: 1794: 1793: 1792: 1778: 1777: 1776: 1775: 1765: 1757: 1745: 1740: 1729: 1714: 1709: 1703: 1699: 1695: 1688: 1684: 1680: 1676: 1672: 1668: 1664: 1660: 1653: 1640: 1636: 1632: 1626: 1622: 1618: 1614: 1610: 1602: 1596: 1590: 1586: 1582: 1576: 1572: 1568: 1562: 1558: 1554: 1550: 1545:|label3=Group 3 1544: 1540: 1534: 1530: 1526: 1522: 1515: 1511: 1507: 1503: 1499: 1495: 1489: 1483: 1477: 1473: 1469: 1461: 1457: 1454: 1448: 1444: 1438: 1431: 1427: 1420: 1419: 1416: 1410: 1401: 1392: 1383: 1255: 1254: 1251: 1247: 1244: 1241: 1237: 1234: 1231: 1227: 1224: 1221: 1217: 1214: 1211: 1207: 1204: 1201: 1197: 1194: 1191: 1187: 1184: 1181: 1177: 1174: 1171: 1167: 1164: 1161: 1157: 1154: 1151: 1147: 1144: 1141: 1138: 1135: 1128: 1124: 1120: 1113: 1112: 1109: 1103: 1094: 1085: 1076: 948: 947: 944: 940: 937: 934: 930: 927: 924: 920: 917: 914: 910: 907: 904: 900: 897: 894: 890: 887: 884: 880: 877: 874: 870: 867: 864: 860: 857: 854: 850: 847: 844: 840: 837: 834: 831: 828: 821: 814: 813: 810: 804: 795: 786: 777: 649: 648: 645: 641: 638: 635: 631: 628: 625: 621: 618: 615: 611: 608: 605: 601: 598: 595: 591: 588: 585: 581: 578: 575: 571: 568: 565: 561: 558: 555: 552: 549: 542: 535: 534: 531: 525: 516: 507: 498: 370: 369: 366: 362: 359: 356: 352: 349: 346: 342: 339: 336: 332: 329: 326: 322: 319: 316: 312: 309: 306: 302: 299: 296: 292: 289: 286: 283: 280: 269: 261: 254: 245: 236: 227: 103: 86: 80: 76: 67: 61: 58: 39: 33: 31: 12: 11: 5: 1801: 1799: 1791: 1790: 1780: 1779: 1756:and testcases 1652: 1649: 1648: 1647: 1630: 1608: 1580: 1548: 1538: 1466: 1465: 1453: 1450: 1422: 1421: 1417: 1414: 1413: 1411: 1407: 1406: 1403: 1402: 1398: 1397: 1394: 1393: 1389: 1388: 1385: 1384: 1380: 1379: 1376: 1375: 1370: 1367: 1366: 1363: 1362: 1357: 1354: 1353: 1350: 1349: 1344: 1339: 1337: 1333: 1332: 1329: 1328: 1323: 1318: 1316: 1312: 1311: 1308: 1307: 1302: 1299: 1298: 1295: 1294: 1289: 1286: 1285: 1282: 1281: 1276: 1271: 1269: 1263: 1134: 1115: 1114: 1110: 1107: 1106: 1104: 1100: 1099: 1096: 1095: 1091: 1090: 1087: 1086: 1082: 1081: 1078: 1077: 1073: 1072: 1069: 1068: 1063: 1060: 1059: 1056: 1055: 1050: 1047: 1046: 1043: 1042: 1037: 1032: 1030: 1026: 1025: 1022: 1021: 1016: 1011: 1009: 1005: 1004: 1001: 1000: 995: 992: 991: 988: 987: 982: 979: 978: 975: 974: 969: 964: 962: 956: 827: 816: 815: 811: 808: 807: 805: 801: 800: 797: 796: 792: 791: 788: 787: 783: 782: 779: 778: 774: 773: 770: 769: 764: 761: 760: 757: 756: 751: 748: 747: 744: 743: 738: 733: 731: 727: 726: 723: 722: 717: 712: 710: 706: 705: 702: 701: 696: 693: 692: 689: 688: 683: 680: 679: 676: 675: 670: 665: 663: 657: 564:font-size:85% 548: 537: 536: 532: 529: 528: 526: 522: 521: 518: 517: 513: 512: 509: 508: 504: 503: 500: 499: 495: 494: 491: 490: 485: 482: 481: 478: 477: 472: 469: 468: 465: 464: 459: 454: 452: 448: 447: 444: 443: 438: 433: 431: 427: 426: 423: 422: 417: 414: 413: 410: 409: 404: 401: 400: 397: 396: 391: 386: 384: 378: 372:This produces 279: 274: 273: 265: 251: 250: 247: 246: 242: 241: 238: 237: 233: 232: 229: 228: 224: 223: 220: 219: 214: 211: 210: 207: 206: 201: 198: 197: 194: 193: 188: 183: 181: 177: 176: 173: 172: 167: 162: 160: 156: 155: 152: 151: 146: 143: 142: 139: 138: 133: 130: 129: 126: 125: 120: 115: 113: 107: 102: 99: 98: 97: 90: 75: 72: 30: 29: 25: 24: 22: 13: 10: 9: 6: 4: 3: 2: 1800: 1789: 1786: 1785: 1783: 1773: 1769: 1761: 1753: 1749: 1744: 1737: 1733: 1727: 1723: 1719: 1718:documentation 1713: 1708: 1692: 1657: 1650: 1644: 1631: 1619:|align=centre 1615:|align=center 1609: 1606: 1601: 1581: 1567: 1549: 1539: 1521: 1520: 1519: 1493: 1488: 1456: 1455: 1451: 1449: 1443: 1435: 1412: 1405: 1404: 1396: 1395: 1387: 1386: 1378: 1377: 1374: 1369: 1368: 1365: 1364: 1361: 1356: 1355: 1352: 1351: 1348: 1343: 1342: 1335: 1334: 1331: 1330: 1327: 1322: 1321: 1314: 1313: 1310: 1309: 1306: 1301: 1300: 1297: 1296: 1293: 1288: 1287: 1284: 1283: 1280: 1275: 1274: 1267: 1266: 1262: 1261: 1258: 1150:font-size:85% 1132: 1125:|align=centre 1121:|align=center 1105: 1098: 1097: 1089: 1088: 1080: 1079: 1071: 1070: 1067: 1062: 1061: 1058: 1057: 1054: 1049: 1048: 1045: 1044: 1041: 1036: 1035: 1028: 1027: 1024: 1023: 1020: 1015: 1014: 1007: 1006: 1003: 1002: 999: 994: 993: 990: 989: 986: 981: 980: 977: 976: 973: 968: 967: 960: 959: 955: 954: 951: 843:font-size:85% 825: 806: 799: 798: 790: 789: 781: 780: 772: 771: 768: 763: 762: 759: 758: 755: 750: 749: 746: 745: 742: 737: 736: 729: 728: 725: 724: 721: 716: 715: 708: 707: 704: 703: 700: 695: 694: 691: 690: 687: 682: 681: 678: 677: 674: 669: 668: 661: 660: 656: 655: 652: 546: 527: 520: 519: 511: 510: 502: 501: 493: 492: 489: 484: 483: 480: 479: 476: 471: 470: 467: 466: 463: 458: 457: 450: 449: 446: 445: 442: 437: 436: 429: 428: 425: 424: 421: 416: 415: 412: 411: 408: 403: 402: 399: 398: 395: 390: 389: 382: 381: 377: 376: 373: 277: 266: 259: 258: 257: 249: 248: 240: 239: 231: 230: 222: 221: 218: 213: 212: 209: 208: 205: 200: 199: 196: 195: 192: 187: 186: 179: 178: 175: 174: 171: 166: 165: 158: 157: 154: 153: 150: 145: 144: 141: 140: 137: 132: 131: 128: 127: 124: 119: 118: 111: 110: 106: 100: 91: 85: 78: 77: 73: 71: 66: 55: 51: 47: 43: 23: 21: 18: 17: 1710:}} 1704:{{ 1700:{{barlabel}} 1693: 1658: 1654: 1642: 1623:|align=right 1603:}} 1597:{{ 1594: 1569:}} 1563:{{ 1557:. (The name 1490:}} 1484:{{ 1481: 1467: 1445:}} 1439:{{ 1436: 1430:. Again the 1425: 1372: 1359: 1346: 1325: 1304: 1291: 1278: 1256: 1118: 1065: 1052: 1039: 1018: 997: 984: 971: 949: 819: 766: 753: 740: 719: 698: 685: 672: 650: 540: 487: 474: 461: 440: 419: 406: 393: 371: 275: 255: 216: 203: 190: 169: 148: 135: 122: 104: 87:}} 81:{{ 68:}} 62:{{ 59: 19: 1722:transcluded 1641:labelwidth= 1635:When using 1627:|align=left 1555:|bar3=green 1428:|align=left 52:] [ 48:] [ 44:] [ 1716:The above 1696:labelwidth 1633:labelwidth 1571:; however 1452:Parameters 1432:labelwidth 1165:labelwidth 1129:labelwidth 858:labelwidth 822:labelwidth 1770:subpage. 1707:cladogram 1605:template! 1442:cladogram 1347:G1  1257:produces 1245:cladogram 1040:G1  938:cladogram 741:G1  651:produces 639:cladogram 462:G1  360:cladogram 191:G1  1782:Category 1694:Setting 1535:|at3=6.5 1462:|size=23 1139:Barlabel 832:Barlabel 553:Barlabel 284:Barlabel 1750:| 1743:sandbox 1736:history 1734:| 1702:inside 1689:colourN 1637:|align= 1573:colourN 1418:Group 2 1415:Group 1 1240:purple 1230:Group 2 1200:Group 1 1111:Group 2 1108:Group 1 933:purple 923:Group 2 893:Group 1 812:Group 2 809:Group 1 634:purple 624:Group 2 594:Group 1 533:Group 2 530:Group 1 355:purple 345:Group 2 315:Group 1 101:Example 50:history 1764:pages. 1760:create 1685:colorN 1677:labelN 1643:number 1577:colorN 1541:labelN 1531:|at1=6 1512:label1 1474:label2 1225:label2 1210:green 1195:label1 1160:center 1127:. The 918:label2 903:green 888:label1 619:label2 604:green 589:label1 340:label2 325:green 310:label1 1724:from 1611:align 1600:clade 1587:style 1583:style 1566:clade 1500:label 1487:clade 1155:align 1145:style 853:right 848:align 838:style 559:style 543:style 84:clade 74:Usage 65:clade 56:] 54:purge 40:[ 1768:/doc 1752:diff 1748:edit 1732:edit 1681:barN 1675:and 1669:size 1665:size 1551:barN 1527:size 1516:bar1 1514:and 1502:and 1478:bar2 1476:and 1458:size 1250:... 1235:bar2 1205:bar1 1175:size 1170:4.5 943:... 928:bar2 898:bar1 868:size 863:4.5 644:... 629:bar2 599:bar1 569:size 365:... 350:bar2 320:bar1 290:size 262:size 46:edit 42:view 1720:is 1687:or 1673:atN 1661:atN 1625:or 1617:or 1575:or 1559:bar 1523:atN 1508:at1 1504:bar 1470:at2 1373:G3 1360:G2 1336:C2 1326:C1 1305:A3 1292:A2 1279:A1 1268:GM 1220:5.5 1215:at2 1185:at1 1123:or 1066:G3 1053:G2 1029:C2 1019:C1 998:A3 985:A2 972:A1 961:GM 913:5.5 908:at2 878:at1 767:G3 754:G2 730:C2 720:C1 699:A3 686:A2 673:A1 662:GM 614:5.5 609:at2 579:at1 488:G3 475:G2 451:C2 441:C1 420:A3 407:A2 394:A1 383:GM 335:5.5 330:at2 300:at1 217:G3 204:G2 180:C2 170:C1 149:A3 136:A2 123:A1 112:GM 1784:: 1728:. 1683:, 1671:, 1593:. 1518:. 1510:, 1498:, 1496:at 1472:, 1315:M 1252:}} 1180:7 1136:{{ 1008:M 945:}} 873:7 829:{{ 709:M 646:}} 574:7 550:{{ 430:M 367:}} 295:7 281:{{ 270:at 159:M 70:. 1774:. 1762:) 1758:( 1754:) 1746:( 1738:) 1730:( 1547:. 1537:. 1492:. 1464:. 1248:= 1242:| 1238:= 1232:| 1228:= 1222:| 1218:= 1212:| 1208:= 1202:| 1198:= 1192:| 1190:3 1188:= 1182:| 1178:= 1172:| 1168:= 1162:| 1158:= 1152:| 1148:= 1142:| 941:= 935:| 931:= 925:| 921:= 915:| 911:= 905:| 901:= 895:| 891:= 885:| 883:3 881:= 875:| 871:= 865:| 861:= 855:| 851:= 845:| 841:= 835:| 642:= 636:| 632:= 626:| 622:= 616:| 612:= 606:| 602:= 596:| 592:= 586:| 584:3 582:= 576:| 572:= 566:| 562:= 556:| 363:= 357:| 353:= 347:| 343:= 337:| 333:= 327:| 323:= 317:| 313:= 307:| 305:3 303:= 297:| 293:= 287:| 96:. 89:.

Index

view
edit
history
purge
clade
clade
cladogram
clade
clade
clade
cladogram
documentation
transcluded
Template:Barlabel/doc
edit
history
sandbox
edit
diff
create
/doc
Subpages of this template
Category
Genealogy formatting templates

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.