User:Danski454/WikiStatus.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
$(function(){
	var api = new mw.Api();

	var added_html = api.parse(
'{{box|{{Vandalism information/descriptions|{{User:EnterpriseyBot/defcon|level}}|plain=yes}} — \
{{Pending Changes backlog/descriptions|{{User:DatBot/pendingbacklog|level}}}} — \
{{PAGESINCATEGORY:Wikipedia conflict of interest edit requests}} \
[[:Category:Wikipedia conflict of interest edit requests|COI edit requests]] — \
{{PAGESINCATEGORY:Wikipedia semi-protected edit requests}} \
[[:Category:Wikipedia semi-protected edit requests|SPERs]] — \
{{PAGESINCATEGORY:Wikipedia extended-confirmed-protected edit requests}} \
[[:Category:Wikipedia extended-confirmed-protected edit requests|EPERs]] — \
{{PAGESINCATEGORY:Wikipedia template-protected edit requests}} \
[[:Category:Wikipedia template-protected edit requests|TPERs]] — \
{{PAGESINCATEGORY:Wikipedia fully protected edit requests}} \
[[:Category:Wikipedia fully protected edit requests|PERs]]\
|border size=1px|wide=yes}}');
	added_html.done(function(data){
		$('#bodyContent').before(data);
		$('#content .mw-parser-output').first().addClass("mw-body-content");
	});
});