Podręcznik:$wgAllowDisplayTitle

From MediaWiki.org
Jump to: navigation, search
This page is a translated version of the page Manual:$wgAllowDisplayTitle and the translation is 36% complete.

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎日本語 • ‎Nederlands • ‎polski • ‎português • ‎中文
Parser: $wgAllowDisplayTitle
Pozwala na użycie magicznego słowa DISPLAYTITLE
Wprowadzone w wersji: 1.7.0 (r13572)
Usunięte w wersji: nadal w użyciu
Dozwolone wartości: (wartość logiczna)
Domyślna wartość: true
false (przed 1.11.0)

Inne ustawienia: Alfabetycznie | Według funkcji

Szczegóły[edit | edit source]

When this option is enabled, users will be able to use the DISPLAYTITLE magic word to override the title of a page, provided the selected title normalizes to the same canonical title.

For example, on a page titled IPod, one can use {{DISPLAYTITLE:iPod}} to force the title to appear as "iPod" when viewed. However, {{DISPLAYTITLE:Foo}} will not work, because "Foo" is not the same title as "IPod". Since MediaWiki 1.14, it is possible to disable this restriction and thus allow any display title by setting $wgRestrictDisplayTitle = false;. This is not recommended however, as it breaks the wiki convention that a page's title is its name, and thus can be used for linking to it.

$wgAllowDisplayTitle was disabled by default in MediaWiki until 1.10.0, as previous implementations were buggy, incompatible with caching, and didn't perform title normalization checks, which are essential to allow correct linking to articles.