« MediaWiki:Gadget-EditZeroth.js » : différence entre les versions

Contenu supprimé Contenu ajouté
Ltrlg (discussion | contributions)
m simplification
Ligne 18 :
}
 
var encodedPageName = encodeURIComponent( mw.config.get( 'wgPageName' ) ).replace(/%20/g, '_').replace(/%3A/g, ':').replace(/%2F/g, '/');
var summaryPrefix = '/* Introduction */ ';
if ( typeof( window.EditZeroth_summary ) != 'undefined' ) {
Ligne 25 ⟶ 24 :
var portletLink = mw.util.addPortletLink(
'p-cactions',
mw.configutil.getgetUrl( 'wgScript'null, ){ +action: '?title=edit', +section: encodedPageName0, + '&action=edit&section=0&summary=': +summaryPrefix } encodeURIComponent(summaryPrefix),
'En-tête',
'ca-edit-0',