Help:Hide Pages in Watchlist
![]() | This help page is a how-to guide. It explains concepts or processes used by the Wikipedia community. It is not one of Wikipedia's policies or guidelines, and may reflect varying levels of consensus. |
Namespaces | |||
---|---|---|---|
Subject namespaces | Talk namespaces | ||
0 | (Main/Article) | Talk | 1 |
2 | User | User talk | 3 |
4 | English Wikipedia @ Freddythechick | English Wikipedia @ Freddythechick talk | 5 |
6 | File | File talk | 7 |
8 | MediaWiki | MediaWiki talk | 9 |
10 | Template | Template talk | 11 |
12 | Help | Help talk | 13 |
14 | Category | Category talk | 15 |
100 | [[Wikipedia:Portal|]] | 101 | |
118 | [[Wikipedia:Drafts|]] | 119 | |
126 | [[Wikipedia:Manual of Style|]] | 127 | |
710 | [[mw:Extension:TimedMediaHandler|]] | 711 | |
828 | Module | Module talk | 829 |
Former namespaces | |||
108 | Book | Book talk | 109 |
442 | Course | Course talk | 443 |
444 | Institution | Institution talk | 445 |
446 | Education Program | Education Program talk | 447 |
2300 | Gadget | Gadget talk | 2301 |
2302 | Gadget definition | Gadget definition talk | 2303 |
2600 | Topic | 2601 | |
Virtual namespaces | |||
-1 | Special | ||
-2 | Media | ||
Current list |
It is possible to Hide Pages in Your Watchlist using CSS. To hide a page, go to your skin.css page. The CSS code required is different depending on whether you have the "Enhanced recent changes" option selected in your preferences.
Enhanced recent changes disabled
Use the following example to hide whatever page you want from your watchlist, by adding a line (on a new line) in your skin.css page file. Example:
<syntaxhighlight lang="css">.watchlist-4-Hide_Pages_in_Watchlist { display: none; }</syntaxhighlight>
hides Wikipedia:Hide Pages in Watchlist.
The "<syntaxhighlight lang="text" class="" style="" inline="1">4</syntaxhighlight>" is the namespace of the page, which can be determined by using the table found on the right of this page. Spaces, slashes (<syntaxhighlight lang="text" class="" style="" inline="1">/</syntaxhighlight>), apostrophes (<syntaxhighlight lang="text" class="" style="" inline="1">'</syntaxhighlight>) and some other special characters must be replaced with an underscore (<syntaxhighlight lang="text" class="" style="" inline="1">_</syntaxhighlight>). Some characters like parentheses must just be omitted. The HTML source of the watchlist will show the required name if the page is present on the watchlist.
Another example:
<syntaxhighlight lang="css">.watchlist-5-Manual_of_Style_Layout { display: none; }</syntaxhighlight>
hides Wikipedia talk:Manual of Style/Layout.
Enhanced recent changes enabled
When using "enhanced recent changes", the code for the above examples is changed to: <syntaxhighlight lang="css"> .mw-changeslist-ns4-Hide_Pages_in_Watchlist { display: none; } .mw-changeslist-ns5-Administrators_Noticeboard { display: none; }</syntaxhighlight>
Previous method
Note: the previous script method for doing this is now deprecated, and didn't work with "Enhanced recent changes" at all.