On https://www.mediawiki.org/wiki/Manual:Interface/JavaScript#Page-specific, There is two mw.config for check page protection level, First one is wgIsProbablyEditable, which true or false. The Second one is wgRestrictionEdit, which return the array of the group. which can edit the page. But I want to also know which kind of protection level is. If a page is protected due to Cascading protection. So How can I take this in javascript?
Also:- https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&format=json&prop=info&titles=Template%3AConvert&inprop=protection is not giving Restriction cause. Thanks in advance