Difference between revisions of "MediaWiki:Access.js"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
text: '{{MailtoAccess|'+qId+'}}' | text: '{{MailtoAccess|'+qId+'}}' | ||
} ).done( function ( data ) { | } ).done( function ( data ) { | ||
− | mw.notify( $('<a href="">do a SAR</a>') ); | + | mw.notify( $('<a href="http://www.google.com">do a SAR</a>') ); |
− | + | mw.notify( $('<a href="'+data.expandtemplates["*"]+'"> do a SAR</a>') ); | |
− | mw.notify( $('<a href="+data.expandtemplates["*"]+"> do a SAR</a>') ); | ||
} ); | } ); | ||
mw.notify( "hello", { autoHide: false } ); | mw.notify( "hello", { autoHide: false } ); |
Revision as of 00:07, 30 March 2019
var qId = "Q101"
var api = new mw.Api();
api.get( {
action: 'expandtemplates',
text: '{{MailtoAccess|'+qId+'}}'
} ).done( function ( data ) {
mw.notify( $('<a href="http://www.google.com">do a SAR</a>') );
mw.notify( $('<a href="'+data.expandtemplates["*"]+'"> do a SAR</a>') );
} );
mw.notify( "hello", { autoHide: false } );