매뉴얼:$wgAllowDisplayTitle

This page is a translated version of the page Manual:$wgAllowDisplayTitle and the translation is 19% complete.
Outdated translations are marked like this.
Parser: $wgAllowDisplayTitle
$DISPLAYTITLE 특수 명령의 사용을 허용
이 변수가 소개된 버전:1.7.0 (r13572)
이 변수가 사라진 버전:계속해서 쓰이고 있음
허용값:(불린)
기본값:true (1.11+)
false (1.7-1.10)

설명

When this option is enabled, users will be able to use the {{DISPLAYTITLE}} magic word to override the title of a page. For instance, it can be used to italicize part of the title or convert the capitalised initial to a lowercase letter.

The way it works is determined by another setting, $wgRestrictDisplayTitle .

If $wgRestrictDisplayTitle is set to true (default), the selected title must normalise 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".

If $wgRestrictDisplayTitle is set to false, this restriction no longer applies, allowing for any display title to be set.

History

  • $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.
  • $wgRestrictDisplayTitle is available since MediaWiki 1.14.

See also