LPS-47228 Do it as in mediawiki.jsp