Page MenuHomePhabricator

Add MediaWiki:Multiboilerplate to the Admin Links page
Closed, DeclinedPublic

Description

Author: mike

Description:
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;

}


Version: unspecified
Severity: enhancement

Details

Reference
bz33435

Related Objects

View Standalone Graph
This task is connected to more than 200 other tasks. Only direct parents and subtasks are shown here. Use View Standalone Graph to show more of the graph.

Event Timeline

bzimport raised the priority of this task from to Normal.Nov 22 2014, 12:02 AM
bzimport set Reference to bz33435.
bzimport created this task.Dec 30 2011, 4:39 PM

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.

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.

jrbs added a subscriber: jrbs.Oct 30 2015, 12:11 AM
Restricted Application added a subscriber: TerraCodes. · View Herald TranscriptMay 21 2016, 10:23 PM

Is anybody actually interested in this?
If nobody replies in the next month or so, I will close this as 'declined'.

Does this still need to be done? @bzimport

Aklapper removed a subscriber: bzimport.Nov 4 2016, 10:39 AM

[off-topic] @bzimport won't reply - it's a bot that imported tickets from (now defunct) Bugzilla to Phabricator. Also see https://phabricator.wikimedia.org/T847 :)

FreedomFighterSparrow closed this task as Declined.Dec 14 2016, 11:17 AM

This is very old and I see no current interest, so I'm declining this. Anybody can reopen if interested.