Knowledge (XXG)

Template:Font color

Source 📝

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

Index

view
edit
history
purge
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
Knowledge (XXG):Example

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