Arranging code as per mediawiki