Is it possible for viewers (i.e. those not logged in with their account) to hide sections while vieweing the page?
Is it also possible to autohide all sections when each page loads?
Is it possible for viewers (i.e. those not logged in with their account) to hide sections while vieweing the page?
Is it also possible to autohide all sections when each page loads?
Is it possible to hide or only select H2 sections during (preg_replace)?
Is there a hook to set hide as default for a section (not all)?
If not, may we get one?
Cause hide by Section is way better than the for example Spoiler Extension, with Wiki Markup.
Linked the correct place on the page
The extension doesn't exist in the download tab here: Special:ExtensionDistributor/HideSection
Ah, right. Linked the correct place on the page. I use git for everything, so I never even noticed those Download links before. Thanks for the report.
If I try to use ▼ and ▲ (▼ and ▲) for MediaWiki:Hidesection-show and -hide, the links don't work in Firefox. After clicking a hide link, for instance, the link is replaced with the entity text instead of the symbol, and the link doesn't work.
Pasting the rendered symbols instead of the HTML entities works fine.
Right, I understand.
I know what's happening here -- it's getting double-escaped. There will probably be something like data-hide="▼"
in your HTML.
There's an obvious workaround. So what do you want me to do here? I guess I can unescape entities before having Mediawiki reescape here, but that seems like a kind of extra slowdown here.