Jump to content

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

From Philosophical Research
m Reversedragon moved page MediaWiki:Gadget-NoContents-ontology2.user.css to MediaWiki:Gadget-NoContents-NonArticle.user.css without leaving a redirect: Entity number or thesis portal structure was not final: adding more kinds of pages
add nickel bank
 
Line 1: Line 1:
/* ==UserStyle==
/* ==UserStyle==
@name          Hide TOC - Ontology & 9k pages  (gadget-NoContents-ontology)
@name          Hide TOC - non-article pages  (gadget-NoContents-NonArticle)
@description    Delete TOC on Ontology pages
@description    Delete TOC on: Ontology, next nine thousand, nickel bank
@namespace      github.com/openstyles/stylus
@namespace      github.com/openstyles/stylus
@version        1.0.1
@version        1.0.2
@author        reverseDragon
@author        reverseDragon
==/UserStyle== */
==/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 cookies, and doesn't leave an ugly closed box behind.
/* 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 the Ontology and 9k stylesheets.
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-ontology -  [https://research.moraleconomy.au/index.php?title=Special:Preferences#mw-prefsection-gadgets]
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:
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-ontology.user.css */
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
.mediawiki #hide-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
   { display: none; }
   { display: none; }


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

Latest revision as of 22:08, 27 February 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.2
@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.nickel-bank + #toc
  { display: none; }

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