Download the PHP package mwstake/mediawiki-component-commonuserinterface without Composer
On this page you can find all versions of the php package mwstake/mediawiki-component-commonuserinterface. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mwstake/mediawiki-component-commonuserinterface
More information about mwstake/mediawiki-component-commonuserinterface
Files in mwstake/mediawiki-component-commonuserinterface
Package mediawiki-component-commonuserinterface
Short Description Provides common user interface elements and customizeable stylings
License GPL-3.0-only
Informations about the package mediawiki-component-commonuserinterface
MediaWiki Stakeholders Group - Components
CommonUserInterface for MediaWiki
Provides common user interface elements and customizeable stylings.
This code is meant to be executed within the MediaWiki application context. No standalone usage is intended.
Use in a MediaWiki extension
Add "mwstake/mediawiki-component-commonuserinterface": "~3.0"
to the require
section of your composer.json
file.
Since 3.0 explicit initialization is required. This can be achived by
- either adding
"callback": "mwsInitComponents"
to yourextension.json
/skin.json
- or calling
mwsInitComponents();
within you extensions/skins customcallback
method
See also mwstake/mediawiki-componentloader
.
Components and Renderers
Default renderer types:
*
bootstrap-5
A skin may define
if it provides "Twitter Bootstrap V5". The "CommonUserInterface" will fall back to *
of the requested renderer is not available to the chosen type.
Custom renderers
Skin Slots
Default slots:
siteNoticeAfter
: Uses hookSiteNoticeAfter
to add components to any default skindataAfterContent
: Uses hookSkinAfterContent
to add components to any default skin
Examples:
TODO
Client side rendering
Example: