Custom version of mediawiki skin loop