w2wiki icon indicating copy to clipboard operation
w2wiki copied to clipboard

Colorize links to unwritten articles

Open za3k opened this issue 2 years ago • 2 comments

This is a form of dead link detection, called "red links" in MediaWiki. Links to unwritten articles are displayed in another color (red). This makes it easy for wiki authors to spot articles which need written without clicking through, or spelling errors.

I believe this code is correct, but I noticed that there are four places you generate links (also auto-linking existing filenames if that's enabled, as well as two "display all" options). It could be worth combining them all?

za3k avatar May 08 '22 02:05 za3k

Oh shoot. I didn't think of this when I wrote it, but it should probably be a configuration option, even if you wanted to default it to ON.

za3k avatar May 08 '22 02:05 za3k

Example

2022-05-07-222156_333x74_scrot

za3k avatar May 08 '22 03:05 za3k