Knowledge (XXG)

Template:Font color/doc

Source 📝

900: 102: 31: 794: 66: 843: 824: 78:
Refrain from implementing colored links that may impede user ability to distinguish links from regular text, or color links for purely aesthetic reasons. See the guides to editing articles for accessibility at
84: 38: 189:
is also how you can color wikilinks to something other than blue for when you need to work within background colors. Normally
970: 118: 114: 52: 947: 88: 126: 852: 730:{{ font color | text = Knowledge (XXG):Example | link = Knowledge (XXG):Sandbox | bg = blue | fg = white }} 749: 122: 899: 80: 41: 833: 801: 771: 734: 720: 706: 813: 201: 183: 143: 46: 17: 244:, so the page increases its readability and usability in both the wikitext and the rendered page. 669: 908: 225: 918: 311: 981: 958: 928: 716:{{ font color | white | blue | Knowledge (XXG):Example | link = Knowledge (XXG):Sandbox }} 936: 923: 992: 748:
parameter is a good way to colorize wikilinks, and it is about as much typing as the
371: 1014: 1003: 913: 678:{{ font color | rgb(255,255,255) | rgb(0,0,0) | white with black background }} 170: 109: 800:{{ font color | green | violet | Knowledge (XXG):Example | link=yes }} → 212: 194: 661:{{ font color | #ffffff | #000000 | white with black background }} (]) 366:, which is nice, but... if you name either of them, you must also name 702:{{ font color | white | blue | Knowledge (XXG):Example | link = yes }} 890:
showing its use in articles whose title begins with the letter "F".
898: 113:
and changes may be widely noticed. Test changes in the template's
55:
and other content that is not part of the original template page.
861:
For actual mainspace template usage, here are search links for
649:{{ font color | white | black | white with black background }} 295:
option, for colorizing (otherwise blue or red) wikilink text.
96: 60: 25: 784:
does not accept a wikilink, it creates wikilinks itself with
427:{{ font color | tan | green | text with four words }} 903:
SVG's color keywords that can be used as a keyword value.
73:
Links should clearly be identifiable as links to readers
886: 874: 866: 637:
bg=yellow | text = default text in yellow background }}
601:{{ font color | blue | do not style text as a link }} 217:You can make any text link to any page using the 830:{{ font color | green | violet | the ] page}} → 406:{{font color|tan|green|text with four words}} 619:yellow | default text in yellow background }} 385:{{font color|tan|green|text with four words}} 8: 857:(Text with ] overrides the designated color) 838:(Text with ] overrides the designated color) 214:   wikilink    228:recommendations, inserting the span tags 149:is how you insert colorized text, such as 849:{{ font color | green | violet | ] }} → 689: 576: 807: 785: 745: 255:has a one-color and a two-color form: 218: 208: 909:Important Manual of Style information 589:{{ font color | green | green text }} 238:<span style="background-color: 125:. Consider discussing changes on the 7: 323:You can also name the other fields. 211:to create a black wikilink → 237: 229: 887:hastemplate: "font color" prefix:F 253:{{Font color}} 51:It may contain usage information, 24: 642:default text in yellow background 624:default text in yellow background 841: 822: 792: 773:the Knowledge (XXG):Example page 100: 64: 29: 759:(or other template or markup): 110:approximately 40,000 pages 755:Although a wikilink accepts a 437:text with four words 370:, which is a compromise. (See 1: 964:— colored table header cell 683:white with black background 666:white with black background 654:white with black background 606:do not style text as a link 1037: 377:Spacing is of no concern. 230:<span style="color: 242:">...</span> 234:">...</span> 129:before implementing them. 121:subpages, or in your own 108:This template is used on 853:Knowledge (XXG):Exammple 372:Help:Template#Parameters 177:color at the same time. 834:Knowledge (XXG):Example 803:Knowledge (XXG):Example 736:Knowledge (XXG):Example 722:Knowledge (XXG):Example 708:Knowledge (XXG):Example 224:This template will use 904: 776:(a font-colored link), 173:. You can specify its 902: 226:Knowledge (XXG):HTML5 197:, but here we use a 971:color contrast ratio 416:text with four words 395:text with four words 47:Template:Font color 18:Template:Font color 905: 670:hexadecimal colors 341:{{font color | fg= 328:{{font color | fg= 291:Either form has a 44: 742: 741: 688: 687: 570: 569: 512:Use / description 500: 499: 455:Use / description 133: 132: 95: 94: 59: 58: 36: 1028: 1019: 1013: 1008: 1002: 997: 991: 986: 980: 975: 969: 963: 957: 952: 948:background color 946: 941: 935: 929:Help: Link color 919:HTML color names 889: 881: 878: 869: 856: 848: 845: 844: 837: 829: 826: 825: 818: 812: 809: 804: 799: 796: 795: 787: 774: 767: 766: 747: 737: 731: 723: 717: 709: 703: 690: 684: 679: 667: 662: 655: 650: 643: 638: 635: 625: 620: 617: 607: 602: 595: 590: 577: 537:background color 507: 506: 450: 449: 441: 438: 435: 431: 425: 420: 417: 414: 410: 404: 399: 396: 393: 389: 383: 347:background color 319: 305: 279:background color 254: 243: 235: 220: 215: 210: 209:|link = 206: 200: 188: 182: 176: 168: 164: 160: 156: 152: 148: 142: 104: 103: 97: 76: 68: 67: 61: 33: 32: 26: 1036: 1035: 1031: 1030: 1029: 1027: 1026: 1025: 1023: 1017: 1011: 1006: 1000: 995: 989: 984: 978: 973: 967: 961: 955: 950: 944: 939: 933: 897: 885: 876: 873: 865: 850: 846: 842: 831: 827: 823: 816: 810: 808:|link= 802: 797: 793: 786:|link= 772: 764: 763: 746:|link= 735: 729: 721: 715: 707: 701: 682: 677: 665: 660: 653: 648: 641: 633: 630: 623: 615: 612: 605: 600: 593: 588: 575: 448: 439: 436: 433: 429: 428: 423: 418: 415: 412: 408: 407: 402: 397: 394: 391: 387: 386: 381: 369: 365: 361: 354: 337: 317: 315: 303: 301: 294: 286: 273:{{font color | 269: 260:{{font color | 252: 250: 219:|link= 213: 204: 198: 192: 186: 180: 174: 166: 162: 158: 154: 150: 146: 140: 138: 101: 77: 71: 65: 50: 30: 22: 21: 20: 12: 11: 5: 1034: 1032: 1021: 1020: 1009: 998: 987: 976: 965: 953: 942: 931: 926: 924:List of colors 921: 916: 911: 896: 893: 892: 891: 883: 871: 859: 858: 839: 820: 778: 777: 768: 740: 739: 732: 726: 725: 718: 712: 711: 704: 698: 697: 694: 686: 685: 680: 674: 673: 663: 657: 656: 651: 645: 644: 639: 627: 626: 621: 609: 608: 603: 597: 596: 591: 585: 584: 581: 574: 571: 568: 567: 565: 559: 555: 554: 552: 547: 543: 542: 539: 534: 530: 529: 526: 521: 517: 516: 513: 510: 505: 504: 498: 497: 495: 489: 485: 484: 482: 477: 473: 472: 469: 464: 460: 459: 456: 453: 447: 444: 443: 442: 426: 421: 405: 400: 384: 367: 363: 359: 356: 355: 340: 338: 327: 321: 320: 308: 306: 299: 292: 289: 288: 272: 270: 259: 249: 246: 190: 137: 134: 131: 130: 105: 93: 92: 69: 57: 56: 34: 23: 15: 14: 13: 10: 9: 6: 4: 3: 2: 1033: 1024: 1016: 1010: 1005: 999: 994: 988: 983: 977: 972: 966: 960: 954: 949: 943: 938: 932: 930: 927: 925: 922: 920: 917: 915: 912: 910: 907: 906: 901: 894: 888: 884: 880: 872: 868: 864: 863: 862: 854: 840: 835: 821: 815: 805: 791: 790: 789: 783: 775: 769: 762: 761: 760: 758: 753: 751: 738: 733: 728: 727: 724: 719: 714: 713: 710: 705: 700: 699: 695: 692: 691: 681: 676: 675: 671: 664: 659: 658: 652: 647: 646: 640: 636: 631:{{ font color 629: 628: 622: 618: 613:{{ font color 611: 610: 604: 599: 598: 592: 587: 586: 582: 579: 578: 572: 566: 564: 560: 557: 556: 553: 551: 548: 545: 544: 540: 538: 535: 532: 531: 527: 525: 522: 519: 518: 515:Default value 514: 511: 509: 508: 502: 501: 496: 494: 490: 487: 486: 483: 481: 478: 475: 474: 470: 468: 465: 462: 461: 458:Default value 457: 454: 452: 451: 445: 422: 401: 380: 379: 378: 375: 373: 358:You can name 352: 348: 344: 339: 335: 331: 326: 325: 324: 314: 313: 307: 298: 297: 296: 284: 280: 276: 271: 267: 263: 258: 257: 256: 247: 245: 241: 233: 227: 222: 216: 203: 196: 185: 178: 172: 145: 135: 128: 124: 120: 116: 112: 111: 106: 99: 98: 90: 89:navbox colors 86: 85:accessibility 82: 74: 70: 63: 62: 54: 48: 43: 40: 39:documentation 35: 28: 27: 19: 1022: 1018:}} 1012:{{ 1007:}} 1001:{{ 996:}} 990:{{ 985:}} 979:{{ 974:}} 968:{{ 962:}} 956:{{ 951:}} 945:{{ 940:}} 934:{{ 860: 817:}} 811:{{ 781: 779: 756: 754: 743: 632: 614: 563:fullpagename 562: 549: 536: 523: 493:fullpagename 492: 479: 466: 376: 357: 350: 346: 342: 333: 329: 322: 312:fullpagename 310: 290: 282: 278: 274: 265: 261: 251: 239: 231: 223: 205:}} 199:{{ 187:}} 181:{{ 179: 147:}} 141:{{ 139: 123:user subpage 107: 72: 814:font color 696:Renders as 583:Renders as 221:parameter. 202:font color 184:Font color 171:many others 144:Font color 914:Web colors 782:font color 757:font color 750:pipe trick 594:green text 524:text color 467:text color 446:Parameters 374:for why.) 343:text color 275:text color 175:background 119:/testcases 53:categories 37:This is a 867:all usage 561:=yes or = 541:inherited 528:inherited 491:=yes or = 471:inherited 432:→ 300:|link=yes 127:talk page 895:See also 573:Examples 411:→ 390:→ 316:→ 302:→ 195:wikilink 193:→ 115:/sandbox 81:contrast 879:is used 693:Markup 580:Markup 546:{{{3}}} 533:{{{2}}} 520:{{{1}}} 476:{{{2}}} 463:{{{1}}} 349:| text= 332:| text= 136:Purpose 42:subpage 982:hilite 959:coltit 877:|link= 875:where 368:|text= 309:|link= 293:|link= 169:, and 167:indigo 155:orange 937:color 345:| bg= 330:color 262:color 248:Usage 240:color 232:color 207:with 159:green 16:< 993:font 855:page 851:the 836:page 832:the 744:The 558:link 550:text 488:link 480:text 364:|bg= 360:|fg= 351:text 334:text 283:text 266:text 236:and 165:and 163:blue 87:and 45:for 806:(a 616:|| 362:or 151:red 117:or 1015:xt 1004:tq 788:. 780:a 770:→ 752:. 672:) 634:| 503:Or 353:}} 336:}} 285:}} 281:| 277:| 268:}} 264:| 161:, 157:, 153:, 83:, 882:. 870:. 847:N 828:N 819:) 798:Y 765:] 668:( 440:. 434:. 430:. 424:. 419:. 413:. 409:. 403:. 398:. 392:. 388:. 382:. 318:] 304:] 287:. 191:] 91:. 75:. 49:.

Index

Template:Font color
documentation
subpage
Template:Font color
categories
contrast
accessibility
navbox colors
approximately 40,000 pages
/sandbox
/testcases
user subpage
talk page
Font color
many others
Font color
wikilink
font color
   wikilink   
Knowledge (XXG):HTML5
fullpagename
Help:Template#Parameters
hexadecimal colors
Knowledge (XXG):Example
Knowledge (XXG):Example
Knowledge (XXG):Example
pipe trick
the Knowledge (XXG):Example page
Knowledge (XXG):Example
font color

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