630
edits
No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
const resultDiv = document.getElementById(\"result\"); \ | const resultDiv = document.getElementById(\"result\"); \ | ||
const api = new mw.Api(); \ | const api = new mw.Api(); \ | ||
let date = document.getElementById(\"date\").value; \ | |||
api.get({ \ | api.get({ \ | ||
action: \'expandtemplates\', \ | action: \'expandtemplates\', \ | ||
prop: \'wikitext\', \ | prop: \'wikitext\', \ | ||
text:\'{{#invoke:Roman Date|' + date + '}}\' \ | text:\'{{#invoke:Roman Date| \' + date + \' }}\' \ | ||
}).done( function ( data ) { \ | }).done( function ( data ) { \ | ||
console.log( data ); \ | console.log( data ); \ |