Jump to content

Snippets/Custom display title

From mediawiki.org
How to use Snippets
List of Snippets
Custom display title
Language(s): JavaScript
Compatible with: unknown

Description

[edit]

Obsolete: This script is obsolete. The script was removed in 2009 from en.wikipedia.org because it was insecure and superseded by the DISPLAYTITLE magic word added to the MediaWiki syntax. That magic word will override the display title of the page (as long as the text is copy/paste compatible with the original title, exactly like this script used to do).

See also

[edit]

Code

[edit]
/**
 * Custom display title.
 *
 * Don't use this. The script is insecure and unneeded.
 * Use {{DISPLAYTITLE:}} instead.
 */