Manual:$wgCapitalLinks

From mediawiki.org
This page is a translated version of the page Manual:$wgCapitalLinks and the translation is 79% complete.
ページ名とリダイレクト: $wgCapitalLinks
これに false を設定すると、最初の文字を強制的に大文字になるのを回避できる。
導入されたバージョン:1.2.4 (r2973)
除去されたバージョン:使用中
許容される値:(真偽値)
既定値:true

詳細

ページ(内包するページ、画像、カテゴリを含みます)のタイトルの最初に来る文字が大文字になるのを避けるには、これを false に設定してください。 警告 リンク切れが発生する場合があります! この設定では、リンクの大文字小文字を完全に区別します。 Links appearing with a capital at the beginning of a sentence will not go to the same place as links in the middle of a sentence using a lowercase initial; typically the former has to become a link with a separate display title (e.g. [[Page|page]]). これを false に設定した後は、cleanupCaps.php を実行してリンク切れとなった既存リンクを修復してください。

この設定は特別ページを除くすべての 名前空間 に影響します。またバージョン1.16よりMediaWikiページとUserページにも影響します。 1.16 未満のバージョンでは、MediaWiki 名前空間に影響しますが、MediaWiki は大文字のページしか認識しないことを覚えておいてください。 例えば "MediaWiki:sidebar" を編集しても何も変化は起きないでしょう。しかし "MediaWiki:Sidebar" を編集すれば正常にその内容が反映されます。
$wgCapitalLinkOverrides can override this setting on a per namespace basis.

On Wiktionary projects of all languages, this setting is disabled, but enabled on all other Wikimedia projects except a few Wikipedia languages listed in https://noc.wikimedia.org/conf/highlight.php?file=InitialiseSettings.php (Lojban, Paiwan, Sakizaya and Atayal as of 2022).


関連項目