Jump to content

MediaWiki:Gadget-NoContents-NonArticle.user.css: Difference between revisions

From LithoGraphica
Reversedragon (talk | contribs)
add nickel bank
Reversedragon (talk | contribs)
m add way pages
 
Line 3: Line 3:
@description    Delete TOC on: Ontology, next nine thousand, nickel bank
@description    Delete TOC on: Ontology, next nine thousand, nickel bank
@namespace      github.com/openstyles/stylus
@namespace      github.com/openstyles/stylus
@version        1.0.2
@version        1.0.3
@author        reverseDragon
@author        reverseDragon
==/UserStyle== */
==/UserStyle== */
Line 14: Line 14:
https://research.moraleconomy.au/index.php?action=raw&title=MediaWiki:Gadget-NoContents-NonArticle.user.css */
https://research.moraleconomy.au/index.php?action=raw&title=MediaWiki:Gadget-NoContents-NonArticle.user.css */


.mediawiki #hide-toc
.mediawiki #hide-toc,
, .mediawiki #hide-toc.ontology-number + #toc, .mediawiki #hide-toc.next-nine-thousand + #toc
.mediawiki #hide-toc.ontology-number + #toc, .mediawiki #hide-toc.next-nine-thousand + #toc,
, .mediawiki #hide-toc.nickel-bank + #toc
.mediawiki #hide-toc.way-page + #toc,
.mediawiki #hide-toc.nickel-bank + #toc
   { display: none; }
   { display: none; }


/* [[Category:Hue configuration Gadgets]]
/* [[Category:Hue configuration Gadgets]]
previous titles:  [[MediaWiki:Gadget-NoContents-ontology2.user.css]] */
previous titles:  [[MediaWiki:Gadget-NoContents-ontology2.user.css]] */

Latest revision as of 08:29, 6 October 2026

/* ==UserStyle==
@name           Hide TOC - non-article pages  (gadget-NoContents-NonArticle)
@description    Delete TOC on: Ontology, next nine thousand, nickel bank
@namespace      github.com/openstyles/stylus
@version        1.0.3
@author         reverseDragon
==/UserStyle== */

/* MediaWiki has a "hide toc" feature, but it doesn't seem to remember which pages it is being used on, meaning the TOC always comes back on pages where you hid it. Either way, the CSS approach doesn't use its own cookies, and doesn't leave an ugly closed box behind.
This stylesheet combines all the "NoContents" stylesheets for all pages that aren't long-form articles.

To turn this on all the time, go to Preferences and select  gadget-NoContents-NonArticle -   [https://research.moraleconomy.au/index.php?title=Special:Preferences#mw-prefsection-gadgets]
To easily toggle this style on and off, install a user styles add-on, and then open this URL:
https://research.moraleconomy.au/index.php?action=raw&title=MediaWiki:Gadget-NoContents-NonArticle.user.css */

.mediawiki #hide-toc,
.mediawiki #hide-toc.ontology-number + #toc, .mediawiki #hide-toc.next-nine-thousand + #toc,
.mediawiki #hide-toc.way-page + #toc,
.mediawiki #hide-toc.nickel-bank + #toc
  { display: none; }

/* [[Category:Hue configuration Gadgets]]
previous titles:   [[MediaWiki:Gadget-NoContents-ontology2.user.css]] */