Home  

Random  

Nearby  



Log in  



Settings  



Donate  



About Wikipedia  

Disclaimers  



Wikipedia





User:Anomie/talklink





User page  

Talk  



Language  

Watch  

Edit  


< User:Anomie
 


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:

  • 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 contentsofUser:Anomie/talklink.css into your common.css and customize the rules however you would like.


    Retrieved from "https://en.wikipedia.org/w/index.php?title=User:Anomie/talklink&oldid=1086815764"
     



    Last edited on 8 May 2022, at 14:39  


    Languages

     



    This page is not available in other languages.
     

    Wikipedia


    This page was last edited on 8 May 2022, at 14:39 (UTC).

    Content is available under CC BY-SA 4.0 unless otherwise noted.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Terms of Use

    Desktop