Knowledge (XXG)

Template:Color

Source 📝

33: 64: 127: 104: 248:
This template does not function in dark mode. If you have a use case for color in your page, you should use an existing more-specific template (such as
537: 566: 522: 510: 48: 549: 506: 44: 492: 571: 52: 397: 334: 172: 140: 393: 385: 532: 82: 86: 517: 389: 78: 369: 323: 89:. The tested changes can be added to this page in a single edit. Consider discussing changes on the 345: 90: 168:: red, blue, green, moccasin, darkorchid, etc. To set the background color of a span of text, use 545: 500: 40: 133: 496: 252: 357: 312: 161: 77:
To avoid major disruption and server load, any changes should be tested in the template's
113: 560: 160:
can be used to specify the foreground color of a span of text. Acceptable values are
126: 262: 17: 414:
The color template can be used to add a span of text with any given text color
165: 71: 375:– when color is used in a way that hides information from color-blind people 27: 220:
If the second parameter is omitted, the color value is displayed as text:
110:
Prose text intended for readers should never be manually colored.
72:
approximately 497,000 pages, or roughly 1% of all pages
451:
CSS name of color or hex code of color, e.g. 'red' or '#00F000'.
192:|name of color or hex code of color|Text}} 121: 98: 58: 211:{{color|#00F000|Hello, world!}} 202:{{color|red|Hello, world!}} 526: 474:
The string of text to be formatted in the desired color
351:– allows setting both text and background color 8: 411: 404:in articles based on its TemplateData. 516:Editors can experiment in this template's 417: 225:{{color|#00F000}} 164:hex codes, e.g. #C9E72A, or any of the 234:{{color|red}} 7: 398:See a monthly parameter usage report 283:{{Colored text}} 25: 125: 102: 62: 31: 298:{{Fgcolor}} 567:Templates using TemplateStyles 293:{{COLOUR}} 288:{{Colour}} 1: 278:{{COLOR}} 363:– colored table header cell 588: 490: 388:for this template used by 550:Subpages of this template 425: 141:Template:Color/styles.css 93:before implementing them. 85:subpages, or in your own 70:This template is used on 544:Add categories to the 407:TemplateData for Color 36:Template documentation 572:Text color templates 488: 422: 420:Template parameters 132:This template uses 501:Template:Color/doc 418: 416: 487: 486: 438: 412: 396:and other tools. 149: 148: 120: 119: 97: 96: 16:(Redirected from 579: 555: 541: 530: 514: 470: 447: 439: 423: 374: 368: 362: 356: 350: 344: 339: 335:background color 333: 328: 322: 317: 311: 299: 294: 289: 284: 279: 267: 261: 257: 251: 239: 235: 230: 226: 216: 212: 207: 203: 193: 177: 173:background color 171: 159: 153: 129: 122: 106: 105: 99: 66: 65: 59: 56: 37: 35: 34: 21: 587: 586: 582: 581: 580: 578: 577: 576: 557: 556: 554: 553: 543: 535: 520: 515: 504: 489: 468: 445: 410: 382: 372: 366: 360: 354: 348: 342: 337: 331: 326: 320: 315: 309: 306: 297: 292: 287: 282: 277: 274: 265: 259: 255: 249: 246: 237: 233: 228: 224: 214: 210: 205: 201: 187: 184: 175: 169: 157: 151: 145: 103: 76: 63: 57: 38: 32: 30: 26: 23: 22: 18:Template:Colour 15: 12: 11: 5: 585: 583: 575: 574: 569: 559: 558: 485: 484: 481: 478: 477: 471: 466: 462: 461: 458: 455: 454: 448: 443: 437: 436: 433: 430: 427: 402:Template:Color 390:TemplateWizard 383: 381: 378: 377: 376: 364: 352: 340: 329: 318: 305: 302: 301: 300: 295: 290: 285: 280: 273: 270: 245: 242: 241: 240: 231: 218: 217: 208: 195: 194: 183: 180: 147: 146: 144: 143: 137: 134:TemplateStyles 130: 118: 117: 114:MOS:PROSECOLOR 107: 95: 94: 67: 29: 28: 24: 14: 13: 10: 9: 6: 4: 3: 2: 584: 573: 570: 568: 565: 564: 562: 551: 547: 539: 534: 528: 524: 519: 512: 508: 502: 498: 494: 493:documentation 482: 479: 476: 475: 472: 467: 464: 463: 459: 456: 453: 452: 449: 444: 441: 440: 434: 431: 428: 424: 421: 415: 409: 408: 403: 399: 395: 391: 387: 379: 371: 365: 359: 353: 347: 341: 336: 330: 325: 319: 314: 308: 307: 303: 296: 291: 286: 281: 276: 275: 271: 269: 264: 254: 243: 232: 223: 222: 221: 215:Hello, world! 209: 206:Hello, world! 200: 199: 198: 197:For example: 191: 186: 185: 181: 179: 174: 167: 163: 156: 142: 139: 138: 135: 131: 128: 124: 123: 115: 111: 108: 101: 100: 92: 88: 84: 80: 74: 73: 68: 61: 60: 54: 50: 46: 42: 19: 473: 450: 419: 413: 406: 405: 401: 394:VisualEditor 386:TemplateData 384:This is the 380:TemplateData 373:}} 370:overcoloured 367:{{ 361:}} 355:{{ 349:}} 343:{{ 338:}} 332:{{ 327:}} 324:colored link 321:{{ 316:}} 310:{{ 266:}} 260:{{ 256:}} 250:{{ 247: 219: 196: 189: 188:{{ 176:}} 170:{{ 158:}} 154: 152:{{ 150: 109: 87:user subpage 69: 497:transcluded 429:Description 51:] [ 47:] [ 43:] [ 561:Categories 491:The above 346:font color 166:web colors 83:/testcases 548:subpage. 533:testcases 483:suggested 426:Parameter 272:Redirects 244:Dark mode 91:talk page 460:required 304:See also 253:increase 236:→ 227:→ 213:→ 204:→ 79:/sandbox 525:| 518:sandbox 511:history 509:| 229:#00F000 49:history 542:pages. 480:String 457:String 435:Status 358:coltit 313:resize 499:from 442:Color 190:color 182:Usage 155:color 55:] 53:purge 39:[ 546:/doc 538:edit 531:and 527:diff 523:edit 507:edit 465:Text 432:Type 400:for 45:edit 41:view 495:is 268:). 258:or 238:red 162:RGB 81:or 563:: 503:. 392:, 263:xt 178:. 136:: 552:. 540:) 536:( 529:) 521:( 513:) 505:( 469:2 446:1 116:) 112:( 75:. 20:)

Index

Template:Colour
view
edit
history
purge
approximately 497,000 pages, or roughly 1% of all pages
/sandbox
/testcases
user subpage
talk page
MOS:PROSECOLOR
CSS
TemplateStyles
Template:Color/styles.css
color
RGB
web colors
background color
color
increase
xt
resize
colored link
background color
font color
coltit
overcoloured
TemplateData
TemplateWizard
VisualEditor

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