meza
meza copied to clipboard
Create method to do global site notice
Need to easily put banners at the top of all wikis, and optionally at the top of select wikis without editing the [[MediaWiki:Sitenotice]] page.
This is very easy to add as a hook like:
public static function onSiteNoticeAfter( &$siteNotice, $skin ) {
$systemNotice = file_get_contents( '/opt/system-banner.mediawiki' );
if ( $systemNotice ) {
$siteNotice = $systemNotice . '<div id="localSiteNotice">' . $siteNotice . '</div>';
}
}
To make this better for a system-wide banner:
- single shared database table for meza?
- make banners have option for auto styling
- Special:MezaAdmin (?) allows editing messages (amongst other things)
- One message for during deploys.
- Allow setting system-wide read-only from this (with associated message)
- only access special page from primary wiki?