User:Kharkiv07/sandbox2.js

mw.loader.using( ['mediawiki.util', 'mediawiki.api', 'jquery.ui'], function { /*	(new mw.Api).get({ action: 'parse', format: 'xml', pageid: '22747298', prop: 'sections' }).done(function (data) { id = sections.length; alert(id) })	*/ } );