Wikitext-VSCode-Extension icon indicating copy to clipboard operation
Wikitext-VSCode-Extension copied to clipboard

Styling in previews

Open ghost opened this issue 5 years ago • 2 comments

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.

ghost avatar Jul 11 '20 17:07 ghost

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?

Frederisk avatar Aug 08 '20 20:08 Frederisk

FWIK there are two cases - MediaWiki collapsibles, & collapsibles defined as JS modules in MediaWiki (e.g. NavFrame headers and PortableInfobox groups).

ghost avatar Aug 08 '20 23:08 ghost