Wikitext-VSCode-Extension
Wikitext-VSCode-Extension copied to clipboard
Styling in previews
Not sure if MediaWiki can actually do this, but seeing CSS styling in previews would be useful. An API query would be used to add styling modules (either the prop=text|headhtml or prop=text|modules|jsconfigvars query strings).
A toggle icon attached to collapsed container elements, to let users remove display: none, would also be useful. This lets users check navboxes and infoboxes fully even if they're collapsed. From a UX perspective, it would be important to make such a toggle appear as part of VSC instead of a native element of the preview content.
The CSS stylization support in the preview will become a toggle switch in the settings.
But I don’t understand what collapsible elements are. Do they are some elements on the page which have mw-collapsible or other collapsible styles such as collapsible tables?
FWIK there are two cases - MediaWiki collapsibles, & collapsibles defined as JS modules in MediaWiki (e.g. NavFrame headers and PortableInfobox groups).