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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T35435, the corresponding Phabricator task for complete and up-to-date bug report information.
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)
unspecified
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: ---


Attachments

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 ( https://www.mediawiki.org/wiki/Extension:MultiBoilerplate still links to old SVN), you are welcome to use Developer access
  https://www.mediawiki.org/wiki/Developer_access
to submit this as a Git branch directly into Gerrit:
  https://www.mediawiki.org/wiki/Git/Tutorial

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.


Navigation
Links