Jump to content

Help talk:Link color

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

[edit]

Look at Liberty Bell and you will see in orange "For other uses, see Liberty Bell (disambiguation)" meaning link to a disambiguation page, but orange is not in the lede table of this article. Perhaps that is because the table is for Vector skin, and perhaps I see orange on my screen because I am using Monobook skin.

So, what is the situation for me? Also, what are the colors for Monobook skin?--Dthomsen8 (talk) 20:10, 29 June 2019 (UTC)[reply]

@Dthomsen8: The redirect message you mentioned at Wikipedia:Help desk#Color coded text is only shown at the redirect Liberty bell with lower case 'b'. Help:Link color is about the default colors seen by logged out users and logged in users who haven't changed settings. The default colors for MonoBook are similar to Vector. If you see green redirects in MonoBook instead of blue then it may be because your User:Dthomsen8/monobook.js imports User:Anomie/linkclassifier.js and User:Anomie/linkclassifier.css. Help:Link color#Scripts says: "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." If you see orange links to disambiguation pages then you may have enabled "Display links to disambiguation pages in orange" at Special:Preferences#mw-prefsection-gadgets. PrimeHunter (talk) 20:52, 29 June 2019 (UTC)[reply]
@PrimeHunter: If this page is "about the default colors seen by logged out users and logged in users who haven't changed settings", why does it mention it mention stubs being shown in brown? Is there a particular skin that causes that or something else? I can't remember seeing anything made brown in the past and I can't find the option anywhere under Special:Preferences. 03:07, 10 July 2019 (UTC) — Preceding unsigned comment added by The Editor's Apprentice (talkcontribs)
See "⧼stub-threshold⧽" on the Appearance tab. When shown on Special:Preferences the "⧼stub-threshold-sample-link⧽" text shows the color too. Anomie 12:20, 10 July 2019 (UTC)[reply]
Ah, thank you. Do you know what the default value is? The Editor's Apprentice (talk) 15:24, 10 July 2019 (UTC)[reply]
[edit]

I am trying to modify my modern.css page so that visited links don't change to the defaulted purple (I'd rather they remained the standard blue). I've tried a few different approaches, but none seem to work – I clear my cache each time, but all visited links remain purple. Can anyone think of another approach? Here is what I inputted most recently:

.mw-body-content a:link:visited { color: #0000FF; } /* visited links */

Ruby2010 (talk) 20:53, 31 December 2019 (UTC)[reply]

I don't think that you can combine the :link and :visited pseudo-classes - I'm pretty sure that they're mutually exclusive. Try this selector-list:
.mw-body-content a:link,
.mw-body-content a:visited { color: #0000FF; } /* visited links */
If that doesn't work, try removing the .mw-body-content class selector. --Redrose64 🌹 (talk) 00:22, 1 January 2020 (UTC)[reply]
Thanks for looking. I've just tried a few different variations of that, but all visited links are still appearing as purple. Hmmm... Ruby2010 (talk) 00:50, 1 January 2020 (UTC)[reply]
Oh. Well, this works for me. It's possible that your browser is overriding that - you may need to post at WP:VPT, linking back here. --Redrose64 🌹 (talk) 19:46, 1 January 2020 (UTC)[reply]
Then again, the problem might be User:Ruby2010/common.css, which is entirely invalid: the first line (beginning mw.loader.load) isn't CSS at all (it's JavaScript, so belongs at User:Ruby2010/common.js if you wish to use it), whilst the rule that begins on the second line lacks a closing single brace after the display: none; declaration. If, as I suspect, MediaWiki combines your common.css with your modern.css in that order, your modern.css will be ignored since it's within the declaration-block of the incomplete rule whose selectors are .mw-special-Watchlist .mw-rollback-link. --Redrose64 🌹 (talk) 23:16, 1 January 2020 (UTC)[reply]
That was it! I made a few edits and am now seeing the behavior I expected. I can't thank you enough for your help, Redrose64. Hope you had a happy new year's! Ruby2010 (talk) 03:00, 2 January 2020 (UTC)[reply]
[edit]

I've looked at Help:Link color and can't figure out how to do what I want. I'd like to make the difference between visited and unvisited wikilinks more clear on my screen without changing other colors. Most likely would be to make unvisited wikilinks that are not redirects or redlinks a lighter blue. I've fooled with User:SchreiberBike/vector.css, but I don't really understand what I'm doing. Thanks for any help. SchreiberBike | ⌨  02:36, 11 June 2020 (UTC)[reply]

I don't see why you would need to change other colours. It should be as simple as picking one of these two lines:
.mw-body-content a:link { color: #0645AD; } /* unvisited links */
.mw-body-content a:visited { color: #0B0080; } /* visited links */
and altering the colour value to something else. You don't need the other line if you're not altering its colour. --Redrose64 🌹 (talk) 19:34, 11 June 2020 (UTC)[reply]
Thanks Redrose64. Either of those lines changes the color for all either visited or unvisited links. For example, when I use the second line, with the color changed to a purple, it changes all visited links including redirects (which used to be orange), red links (which used to be dark red), and links to disambiguation pages (which used to be olive) to purple. If instead I use the first line, it does the same to all unvisted links. I'd like to make the difference between visited and unvisited wikilinks (which are usually blue or a slightly darker blue) more clear without changing other colors. Thanks, SchreiberBike | ⌨  23:16, 11 June 2020 (UTC)[reply]
So, that can't be done? I'd think it's a common problem, or maybe it's my eyes (or monitor). SchreiberBike | ⌨  18:26, 21 June 2020 (UTC)[reply]
I'm having great difficulty finding the actual style sheets that are served along with Wikipedia pages. Analysis of those will show which rules are standalone and which depend upon the presence of others. --Redrose64 🌹 (talk) 22:41, 21 June 2020 (UTC)[reply]

Expert Needed

[edit]
Resolved

Here's the |reason= parameter again for your convenience: this section only discusses change the color blue. It says nothing about red links, purple links or any other type of link. Please expand the section with the appropriate instructions or at the very least explain to the reader what link colors that can't be changed for everybody. Also this section needs to clearly state how inappropriate this mechanism is for general usage on Wikipedia. See talk

CapnZapp (talk) 12:52, 13 January 2021 (UTC)[reply]

CapnZapp, could you please clarify: are you talking about a section of the page Help:Link color or some other page? —⁠andrybak (talk) 22:47, 21 July 2024 (UTC)[reply]
First of all, thank you for taking an interest, User:Andrybak. I'll try my best answering your questions, but before that, did you check out the article as it stood back when I started this talk section? Here's the relevant edit: [1] Cheers CapnZapp (talk) 11:28, 22 July 2024 (UTC)[reply]
For the record, fixed in Special:Diff/1002862008. —⁠andrybak (talk) 19:09, 22 July 2024 (UTC)[reply]
Or maybe Special:Diff/1002844668/1002865899 might be a better diff to look at. - dcljr (talk) 21:08, 22 July 2024 (UTC)[reply]
[edit]

This can be confusing. See:

See also:

--Timeshifter (talk) 11:51, 9 October 2024 (UTC)[reply]