MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
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(); \
                 const date = document.getElementById(\"date\").value; \
                 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 ); \

Navigation menu