Widget:EditSandbox: Difference between revisions

Jump to navigation Jump to search
Matt Pijoan (talk | contribs)
No edit summary
Matt Pijoan (talk | contribs)
No edit summary
Line 4: Line 4:
try{
try{
var api = new mw.Api();
var api = new mw.Api();
getToken();
readPage('User:Matt_Pijoan/GroundZero');
}
}
catch(e){
catch(e){
Line 11: Line 11:
}
}


 
function readPage(pageTitle){
api.get( {
action: 'query',
format: 'json',
        titles: 'User:Matt_Pijoan/GroundZero',
export
        } , {
ok:function (data) {
        alert('yay');
});
}


function getToken(){
function getToken(){

Revision as of 19:16, 26 November 2012