Last modified: 2014-03-19 19:35:05 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 33435 - Add MediaWiki:Multiboilerplate to the Admin Links page
Add MediaWiki:Multiboilerplate to the Admin Links page
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
MultiBoilerplate (Other open bugs)
All All
: Normal enhancement (vote)
: ---
Assigned To: Robert Leverington
: easy, i18n, patch, patch-need-review
Depends on:
Blocks: messages
  Show dependency treegraph
Reported: 2011-12-30 16:39 UTC by Mikael Lindmark
Modified: 2014-03-19 19:35 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Mikael Lindmark 2011-12-30 16:39:12 UTC
Add following lines in MultiBoilerplate.php and it will show up in the Admin links (extension). My use of wfMsg( 'boilerplates' ) is a quick hack, and it should be a string on it own.

$wgHooks['AdminLinks'][] = 'MultiBoilerplateAddToAdminLinks';

function MultiBoilerplateAddToAdminLinks( &$admin_links_tree ) {
        global $wgMultiBoilerplateOptions;
        if ( !$wgMultiBoilerplateOptions) {
                $general_section = $admin_links_tree->getSection( wfMsg( 'adminlinks_general' ) );
                $extensions_row = $general_section->getRow( 'extensions' );
                if ( is_null( $extensions_row ) ) {
                        $extensions_row = new ALRow( 'extensions' );
                        $general_section->addRow( $extensions_row );
                $extensions_row->addItem( ALItem::newFromEditLink( 'Multiboilerplate',  wfMsg( 'boilerplates' ) ) );
        return true;
Comment 1 Andre Klapper 2013-01-23 13:12:53 UTC
Hi Mikael! Sorry that nobody has taken a look at this report yet and given feedback. Thanks for your patch!

In case that this extension has been move to Git ( still links to old SVN), you are welcome to use Developer access
to submit this as a Git branch directly into Gerrit:

Putting your branch in Git makes it easier for us to review it quickly.
Thanks again! We appreciate your contribution.
Comment 2 Nemo 2013-11-19 12:36:17 UTC
Adding many blockers of bug 38638 to the list of "easy" bugs, to mark them as candidates for [[mw:Google Code-in]] tasks (gci2013). If you think this bug is not suitable, remove the keyword.

Note You need to log in before you can comment on or make changes to this bug.