A talkpage that is a redirect
A talk page that only contains templates or is empty

This script adds various classes to the "talk" tab, to style it based on the status of the talk page:

  • new – Talk page does not exist (Actually, MW adds this one itself)
  • redirect – Talk page is a redirect
  • empty – Talk page is empty, or seems to contain only templates and comments.

You can then add CSS rules to apply various visible changes to the different types of links. The default rules are available in User:Anomie/talklink.css.

Usage edit

To use the script, add the following to your common.js.

importScript('User:Anomie/talklink.js'); // Linkback: [[User:Anomie/talklink.js]]
importStylesheet('User:Anomie/talklink.css'); // Linkback: [[User:Anomie/talklink.css]]

Note that this script has only been extensively tested on Monobook.

The line for talklink.css may be omitted, if you would rather add custom CSS rules to your common.css.

Please note that the line for talklink.css does not go in your common.css, it goes in your common.js along with the other lines. Alternatively, you can copy the contents of User:Anomie/talklink.css into your common.css and customize the rules however you would like.