MediaWiki:Gadget-cambusa.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Nuovo script
 
fix get text
Riga 179:
getSection( section, function ( text ) {
var from = mw.config.get( 'wgPageName' ).replace( /_/g, ' ' );
text = text.substring( text.indexOf( '\n\n==', 3 ) + 2 );
text = text.replace( /^\s+/g, '' );
text = '{{Cambusada|' + from + '|--~~' + '~~}}\n' + text;
addSection( dest, desttitle, text, function () {