FANDOM


File description page title

File description page title rewrite in action

File description pages now have a different page title, specilly in Monobook skin. In oasis, the page title doesn't contain the namespace. But in Monobook the page title contains a "Image -" preffix for images, and a "Video -" preffix for videos. This is extremely annoying when copying the title to paste inside wikitext, to add a image on the page, since you need to be cautious about not copying the "Image -" preffix, since it's not part of the filename. Unexperienced editors that don't realize this may end up adding broken file links and getting confused about the title mismatch.

How to disable it Edit

You can restore the page title adding the following JavaScript code:

Monobook skin Edit

// Restore the page title on file description pages
if (mw.config.get('wgNamespaceNumber') === 6) {
	$(function() {
		$('#firstHeading').text(mw.config.get('wgPageName').replace(/_/g, ' '));
	});
}

Oasis skin Edit

// Restore the page title on file description pages
if (mw.config.get('wgNamespaceNumber') === 6) {
	$(function() {
		$('#WikiaPageHeader').find('h1').eq(0).text(mw.config.get('wgPageName').replace(/_/g, ' '));
	});
}

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.