Help:Link color

In Wikipedia, the color of a link shows the status of the corresponding target page. The default colors (in the Vector skin) have the meanings shown in the table below. See also Manual of Style/Accessibility/Colors.

Standard colors
Note that the colors in the boxes may appear darker than text of the same color; also, larger or bold text will tend to look darker. Furthermore, the actual color seen by a user will vary slightly according to their operating system, desktop settings, and browser, as well as their monitor and for low-end LCDs, viewing angle. Logged-in users can also change the colors they see by selecting a different skin or using custom CSS.

Custom colors
To use named CSS colors for text on a white background, refer to Manual of Style/Accessibility/CSS colors for text on white for recommended colors.

Normal text
For normal text, the color template with two parameters can be used: the color, either by name or hex code, and some text. However, prose text intended for readers should never be manually colored. (MOS:PROSECOLOR)


 * → Hello, world!
 * → Hello, world!

Links
Refrain from implementing colored links that may impede user ability to distinguish links from regular text, or color links for purely aesthetic reasons. (MOS:COLOR)

Styling individual links on a page
You can set the color of an individual link or set of links on a page (rather than a global change to the style of all links on Wikipedia) as follows. Setting styles in this way will apply to everyone who views those particular links or that particular page, not just you. However, links intended for readers should never be manually colored. (MOS:LINKCOLOR)

The colored link template takes two parameters to function: the color of the link, the article being linked to, with an optional third parameter for alternative text to display as a piped link.


 * → Canada
 * → Alternative text

You can turn links a different color like so:
 * Or

Or, if you desire existence checking, you can try:

Styling all links just for you
You can also customize link colors by editing the CSS at your skin subpage. This is a change which will apply to all links throughout the site, but will only be visible to you.

The standard link selectors are:
 * a:link — defines the style for normal unvisited links
 * a:visited — defines the style for visited links
 * a:active — defines the style for active links; links become active once you click on them
 * a:hover — defines the style for hovered links; links hover when the mouse moves over it

Colors are defined by hexadecimal characters: see web colors.

Notes:
 * a:hover must come after a:link and a:visited
 * a:active must come after a:hover
 * you need to have ".mw-body-content" in front of the standard link definition, because otherwise the default definition on this website will still take precedence over what you have defined.

Redirect
Show redirects as green links:

External
Show external links as green links:

Text decoration
This allows formatting such as underlines. For example:

Possible values are:
 * none
 * underline
 * overline
 * line-through

Font family
This will change the link font:

Preferences
The "display links to disambiguation pages in orange" feature, located in the gadgets tab of the preferences menu (under the "appearance" section), shows you all links to disambiguation pages in orange.

Scripts
User:Anomie/linkclassifier is a popular script that customizes colors to indicate links such as pages to be deleted, nonfree-media, redirects, protected pages and more.