手册:$wgCapitalLinks

This page is a translated version of the page Manual:$wgCapitalLinks and the translation is 64% complete.
页面标题和重定向: $wgCapitalLinks
将此值设置为false可以防止将链接的首字母强制大写。
引进版本:1.2.4 (r2973)
移除版本:仍在使用
允许的值:(布尔值)
默认值:true

细节

将此值设置为false可以防止将页面标题(包括被包含的页面、图片和分类)的首字母强制大写。 注意:这可能会使链接断开!这使得链接完全大小写敏感。 在句子开头使用大写字母的链接将不会与位于句子中间使用小写首字母的链接指向相同的位置;通常,前者必须成为具有单独显示标题的链接(例如[[Page|page]])。 将其设置为false后,运行cleanupCaps.php 将修复被破坏的现有链接。

This settings affects all 命名空间 except Special, (and as of 1.16) MediaWiki and User. In versions before 1.16, it affects the MediaWiki namespace, but remember that MediaWiki only recognizes pages in upper case. So if you for example edit "MediaWiki:sidebar" you will see nothing has changed, but editing "MediaWiki:Sidebar" works normally.
$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).


参见