Knowledge (XXG)

Template:Color box

Source đź“ť

37: 170: 141: 429:
Adds a rectangular color box. Colors are most commonly specified as either a color keyword or as the hexadecimal triplet representing an RGB combination. See the article web colors for details.If specified, the text is centered within the
1090: 1075: 1063: 52: 1118: 1102: 1059: 48: 1004: 1045: 971: 130: 56: 958: 1085: 722: 186: 221: 1070: 773: 182: 154: 917: 217: 209: 1123: 946: 937: 194: 951: 190: 1128: 1098: 1053: 1022: 897: 850: 213: 44: 874: 64: 811: 825: 147: 1049: 794: 1034: 658: 123: 1112: 17: 140: 678: 261: 257: 177: 31: 834: 803: 256:
Colors are most commonly specified as either a color keyword or as the
181:
and changes may be widely noticed. Test changes in the template's
756:
Color box size with black borders and text color. Standard size.
705:{{color box|white|bordercolor like wikitable|border=#A2A9B1}} 164: 135: 501:
Adds text inside the box; box is otherwise an empty square.
328:
Adds text inside the box; box is otherwise an empty square.
364:
Either black or white; whichever has greater contrast.
119:
For the templates that display text in a colored box, see
1079: 109: 100: 91: 82: 73: 537:
Either black or white; whichever has greater contrast.
440:
This template prefers inline formatting of parameters.
1028:, an infobox for the detailed description of a color. 858:Color box size with black borders. Standard size. 267:If specified, the text is centered within the box. 260:representing an RGB combination. See the article 882:Color box size with black borders. Smaller size. 629:{{color box|Yellow|Default color for this text}} 641:{{color box|Blue|Default color for this text}} 945:A version with more display options. Part of 8: 565:Sets the color of the border around the box. 426: 392:Sets the color of the border around the box. 979:Color box split diagonally. Standard size. 228:in articles based on its TemplateData. 1069:Editors can experiment in this template's 723: 530:Sets the color of the text inside the box. 433: 357:Sets the color of the text inside the box. 270: 802:Borderless color box with text color and 693:{{color box|Yellow|Red|#f00|border=#f00}} 716: 594: 636: Default color for this text  624: Default color for this text  381: 346: 317: 286: 272: 700: bordercolor like wikitable  193:. Consider discussing changes on the 7: 222:See a monthly parameter usage report 781:Striped color box. Standard size. 25: 168: 139: 131:Template:Mbox templates see also 35: 657:{{color box|SteelBlue|'''Using 178:approximately 78,000 pages 1119:Templates using TemplateStyles 907: 885: 840: 253:Adds a rectangular color box. 1: 1005:Greater color contrast ratio 677:{{color box|#012345|''Using 472:Background color of the box. 297:Background color of the box. 238:{{color box| 1145: 1043: 231:TemplateData for Color box 212:for this template used by 155:Template:Legend/styles.css 118: 62: 1103:Subpages of this template 967: 933: 913: 893: 870: 846: 821: 790: 769: 744: 739: 736: 733: 446: 273: 197:before implementing them. 189:subpages, or in your own 176:This template is used on 972:Diagonal split color box 947:Module:Adjacent stations 785:     1097:Add categories to the 1054:Template:Color box/doc 670:Using RGB hex triplets 40:Template documentation 650:Using X11 color names 833:Colored bullet with 718:Color box templates 996:Supporting template 730: 617:{{color box|Green}} 599: 591: 443: 436:Template parameters 258:hexadecimal triplet 146:This template uses 18:Template:Colour box 987:    984:    764: ORANGE  717: 595: 434: 432: 226:Template:Color box 993: 992: 774:Color box striped 710: 709: 590: 589: 459: 427: 417: 416: 220:and other tools. 201: 200: 163: 162: 16:(Redirected from 1136: 1094: 1083: 1067: 1039: 1033: 1027: 1021: 1009: 1003: 976: 970: 963: 961: 954: 942: 936: 929: 922: 918:Background color 916: 909: 902: 896: 889: 888: 879: 873: 866: 864: 855: 849: 842: 830: 824: 817: 814: 799: 793: 786: 778: 772: 765: 761: 753: 747: 731: 725: 706: 701: 694: 689: 682: 673: 662: 653: 642: 637: 630: 625: 618: 613: 600: 561: 526: 497: 468: 460: 444: 441: 388: 353: 324: 314: 293: 271: 251: 172: 171: 165: 143: 136: 128: 122: 112: 103: 94: 85: 76: 60: 41: 39: 38: 29: 21: 1144: 1143: 1139: 1138: 1137: 1135: 1134: 1133: 1124:Color templates 1109: 1108: 1107: 1106: 1096: 1088: 1073: 1068: 1057: 1042: 1037: 1031: 1025: 1019: 1016: 1007: 1001: 998: 989: 988: 985: 974: 968: 959: 957: 952: 940: 934: 927: 920: 914: 900: 894: 886: 877: 871: 862: 861: 853: 847: 828: 822: 812: 809: 797: 791: 784: 776: 770: 763: 759: 751: 745: 729: 715: 704: 699: 692: 688: Red  687: 679:RGB hex triplet 676: 667: 659:X11 color names 656: 647: 640: 635: 628: 623: 616: 611: 593: 592: 559: 524: 495: 466: 439: 424: 393: 386: 358: 351: 329: 322: 312: 298: 291: 252: 237: 234: 206: 169: 159: 134: 126: 120: 117: 116: 108: 99: 90: 81: 72: 67: 61: 42: 36: 34: 27: 23: 22: 15: 12: 11: 5: 1142: 1140: 1132: 1131: 1126: 1121: 1111: 1110: 1041: 1040: 1029: 1015: 1012: 1011: 1010: 997: 994: 991: 990: 986: 983: 982: 980: 977: 965: 964: 949: 943: 938:Rail color box 931: 930: 925: 923: 911: 910: 905: 903: 891: 890: 883: 880: 868: 867: 859: 856: 844: 843: 838: 831: 819: 818: 807: 800: 788: 787: 782: 779: 767: 766: 757: 754: 742: 741: 738: 735: 728: 727: 719: 714: 711: 708: 707: 702: 696: 695: 690: 684: 683: 674: 664: 663: 654: 644: 643: 638: 632: 631: 626: 620: 619: 614: 608: 607: 604: 588: 587: 584: 581: 580: 579: 576: 573: 570: 562: 557: 553: 552: 549: 546: 545: 544: 541: 538: 535: 527: 522: 518: 517: 514: 511: 510: 509: 506: 498: 493: 489: 488: 485: 482: 481: 480: 477: 469: 464: 458: 457: 454: 451: 448: 425: 415: 414: 411: 408: 407: 406: 403: 400: 397: 391: 389: 384: 380: 379: 376: 373: 372: 371: 368: 365: 362: 356: 354: 349: 345: 344: 341: 338: 337: 336: 333: 327: 325: 320: 316: 315: 310: 307: 306: 305: 302: 296: 294: 289: 285: 284: 281: 278: 275: 269: 268: 265: 236: 235: 214:TemplateWizard 207: 205: 202: 199: 198: 173: 161: 160: 158: 157: 151: 148:TemplateStyles 144: 115: 114: 105: 96: 87: 78: 68: 63: 33: 32: 24: 14: 13: 10: 9: 6: 4: 3: 2: 1141: 1130: 1129:Box templates 1127: 1125: 1122: 1120: 1117: 1116: 1114: 1104: 1100: 1092: 1087: 1081: 1077: 1072: 1065: 1061: 1055: 1051: 1047: 1046:documentation 1036: 1030: 1024: 1023:Infobox color 1018: 1017: 1013: 1006: 1000: 999: 995: 981: 978: 973: 966: 962: 955: 950: 948: 944: 939: 932: 926: 924: 919: 912: 906: 904: 899: 898:Swatch inline 892: 884: 881: 876: 869: 860: 857: 852: 851:Legend inline 845: 839: 836: 832: 827: 820: 815: 808: 805: 801: 796: 789: 783: 780: 775: 768: 758: 755: 750: 743: 732: 726: 721: 720: 712: 703: 698: 697: 691: 686: 685: 680: 675: 671: 666: 665: 660: 655: 651: 646: 645: 639: 634: 633: 627: 622: 621: 615: 610: 609: 605: 603:Visual effect 602: 601: 598: 585: 582: 577: 574: 571: 568: 567: 566: 563: 558: 555: 554: 550: 547: 542: 539: 536: 533: 532: 531: 528: 523: 520: 519: 515: 512: 508:Hello, world! 507: 504: 503: 502: 499: 494: 491: 490: 486: 483: 478: 475: 474: 473: 470: 465: 462: 461: 455: 452: 449: 445: 442: 437: 431: 423: 422: 412: 409: 404: 401: 398: 395: 394: 390: 385: 382: 377: 374: 369: 366: 363: 360: 359: 355: 350: 347: 342: 339: 335:Hello, world! 334: 331: 330: 326: 321: 318: 311: 308: 303: 300: 299: 295: 290: 287: 282: 279: 276: 266: 263: 259: 255: 254: 249: 245: 241: 233: 232: 227: 223: 219: 215: 211: 203: 196: 192: 188: 184: 180: 179: 174: 167: 166: 156: 153: 152: 149: 145: 142: 138: 137: 132: 125: 111: 106: 102: 97: 93: 88: 84: 79: 75: 70: 69: 66: 58: 54: 50: 46: 30: 19: 1038:}} 1032:{{ 1026:}} 1020:{{ 1008:}} 1002:{{ 975:}} 969:{{ 941:}} 935:{{ 921:}} 915:{{ 901:}} 895:{{ 878:}} 875:Color sample 872:{{ 854:}} 848:{{ 829:}} 823:{{ 798:}} 792:{{ 777:}} 771:{{ 752:}} 748: 746:{{ 737:Description 681:''|#FEDCBA}} 669: 649: 596: 564: 556:Border color 529: 500: 471: 438: 435: 428: 420: 418: 383:Border color 264:for details. 250:}} 247: 243: 239: 230: 229: 225: 218:VisualEditor 210:TemplateData 208:This is the 191:user subpage 175: 127:}} 121:{{ 113:}} 107:{{ 104:}} 101:Color square 98:{{ 95:}} 89:{{ 86:}} 80:{{ 77:}} 71:{{ 26: 1050:transcluded 450:Description 277:Description 55:] [ 51:] [ 47:] [ 1113:Categories 1044:The above 661:'''|Gold}} 521:Text color 348:Text color 262:web colors 248:text color 187:/testcases 92:Colour box 1101:subpage. 1086:testcases 835:wikilinks 826:Colorbull 804:wikilinks 749:Color box 734:Template 551:suggested 516:suggested 447:Parameter 378:suggested 343:suggested 274:Parameter 195:talk page 83:Colourbox 65:Shortcuts 1014:See also 795:RouteBox 740:Example 713:Variants 597:Examples 586:optional 487:required 419:Format: 413:optional 405:#FF0 313:required 183:/sandbox 74:Colorbox 1078:| 1071:sandbox 1064:history 1062:| 887:  606:Markup 575:Example 569:Default 540:Example 534:Default 505:Example 476:Example 402:Example 396:Default 367:Example 361:Default 332:Example 301:Example 110:Legend3 53:history 1095:pages. 1035:Legend 960:Orange 928:orange 908:orange 865:  863:  816:  813:ORANGE 810:  760:  672:  668:  652:  648:  612:  583:String 560:border 548:String 543:Yellow 513:String 484:String 456:Status 421:inline 410:String 387:border 375:String 370:Yellow 340:String 309:String 283:Status 246:| 242:| 124:Divbox 28:  1052:from 572:black 479:Green 463:Color 399:black 304:Green 288:Color 240:color 204:Usage 59:] 57:purge 43:[ 1099:/doc 1091:edit 1084:and 1080:diff 1076:edit 1060:edit 578:#FF0 492:Text 453:Type 430:box. 319:Text 280:Type 244:text 224:for 49:edit 45:view 1048:is 762:or 185:or 129:or 1115:: 1056:. 956:, 837:. 806:. 216:, 150:: 1105:. 1093:) 1089:( 1082:) 1074:( 1066:) 1058:( 953:â—Ź 841:â–  724:v 525:3 496:2 467:1 352:3 323:2 292:1 133:. 20:)

Index

Template:Colour box
view
edit
history
purge
Shortcuts
Colorbox
Colourbox
Colour box
Color square
Legend3
Divbox
Template:Mbox templates see also
CSS
TemplateStyles
Template:Legend/styles.css
approximately 78,000 pages
/sandbox
/testcases
user subpage
talk page
TemplateData
TemplateWizard
VisualEditor
See a monthly parameter usage report
Template:Color box
hexadecimal triplet
web colors
X11 color names
RGB hex triplet

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

↑