Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

User:Anomie/talklink

    From Wikipedia, the free encyclopedia
    <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:

    • 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 inUser:Anomie/talklink.css.

    Usage

    [edit]

    To use the script, add the following to yourcommon.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 yourcommon.css.

    Please note that the line for talklink.cssdoes not go in yourcommon.css, it goes in yourcommon.js along with the other lines. Alternatively, you can copy thecontents ofUser:Anomie/talklink.css into yourcommon.css and customize the rules however you would like.

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

    [8]ページ先頭

    ©2009-2026 Movatter.jp