Changes

Jump to navigation Jump to search
no edit summary
Line 26: Line 26:  
qId = $title2.find( '.wikibase-title-id' ).text().replace( /[()]/g, '' );
 
qId = $title2.find( '.wikibase-title-id' ).text().replace( /[()]/g, '' );
 
var api = new mw.Api();
 
var api = new mw.Api();
api.get( {
  −
    action: 'expandtemplates',
  −
    text: '{{MailtoAccess|'+qId+'}}'
  −
} ).done( function ( data ) {
  −
    mw.notify( $('<a href="'+data.expandtemplates["*"]+'"> Do a GDPR SAR to this controller!</a>') , { autoHide: false } );
  −
} );
   
                                 api.get( {
 
                                 api.get( {
 
    action: 'expandtemplates',
 
    action: 'expandtemplates',

Navigation menu