Releases: theapplewiki/mediawiki-extensions-Details
Releases · theapplewiki/mediawiki-extensions-Details
1.2
- Adds support for MediaWiki 1.39 and 1.40. As these versions don’t use the Codex system, colors and other values will be hardcoded to sensible defaults. You can override these to match the color scheme of your skin(s) in your wiki’s CSS if needed.
- Adds a configuration option,
$wgDetailsMWCollapsibleCompatibility
. This can be set tofalse
to disable all CSS and JavaScript injected by the extension, leaving all styling and behavior at the browser’s defaults.
Both changes were contributed by @alistair3149 - thanks!
1.1.1
- Tweaks to
.wikicollapse
styling:- Adds a subtle border radius
- Fixes overflow when a background is set on
summary
summary
now disables selection, to act more like a button- Bottom margin of the
summary
is uncollapsed when thedetails
is opened to improve visual balancing, especially when a background is set onsummary
- Fixes width overflowing beyond 100% of container, due to incorrect CSS box-sizing mode
1.1
- Adds a
wikicollapse
class, which can be used via<details class="wikicollapse">
to style the element with a layout similar to Wikipedia’s {{Collapse}}. You likely want to use this in most cases. - A non-standard parameter of
<details open="no">
(and other falsy values) can now be used. This is to allow templates to negate theopen
attribute. - A non-standard parameter of
<details part="…" />
can be used to create split templates, a format used in the {{Collapse top}} and {{Collapse bottom}} templates, but not supported by this extension due to limitations of MediaWiki’s parser.part
should behead
,foot
, or not set at all. This is currently not compatible with Parsoid. - In browsers that don’t support “hidden until found” (currently only supported in Chrome 97+), if the anchor specified by the URL hash is inside a
<details>
, the extension now automatically expands all containing<details>
elements. - MediaWiki 1.41+ is now strictly required, due to use of Codex tokens.