Manual:$wgAllowDisplayTitle
構文解析: $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.
例えば、IPod
という名前のページで、{{DISPLAYTITLE:iPod}}
を使用することで、閲覧した際の題名を「iPod」に変更できます。
しかし、{{DISPLAYTITLE:Foo}}
は、「Foo」が「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.