Manual talk:$wgCapitalLinks

From MediaWiki.org

Jump to: navigation, search

This is not working for usernames though. Is that intended? --Knakts 22:23, 2 June 2006 (UTC)

Usernames are always capitalized for compatibility. --Brion VIBBER 06:16, 3 June 2006 (UTC)
So how can this forcing of capital letters be removed completely? I am quite anal and really do not like this. 66.24.28.141 01:12, 14 March 2007 (UTC)

[edit] Media Only?

Is it possible to have $wgCapitalLinks=False apply to files only and not article? I still would like initial letter to be upper-cased for articles, but the names/links of any uploaded files to stay lower case. This means that abc.png and Abc.png would be different files. --DavidMarsh 02:15, 1 May 2007 (UTC)

This would be a great feature, making it easier for designers to work with MediaWiki. Jlerner 13:55, 10 April 2008 (UTC)

[edit] changing from false to true

Changing $wgCapitalLinks from false to true on a site with page titles beginning with a lower-case letter causes those pages to be inaccessible.

Does anyone have recommendations for changing all page titles to upper-case in a partially or fully automated way so that $wgCapitalLinks can be enabled on such a wiki?

The Python Wikipediabot Framework has the capatility to move pages and categories, but it does not appear to be able to move images. With images it seems you have to delete the old one and upload a new one with the capitalized name. The old pages should be deleted rather than kept as redirects since they will be non-functional when $wgCapitalLinks is true.

If you know of scripts for capitalizing titles, please post the info here as that is an essential step before enabling this option on wikis with lower-case first letter in any page titles.

[edit] HowTo: switch off sensity for page initals

All who decided to set $wgCapitalLinks to false long time ago, missing the function provided by the newer config value $wgAllowDisplayTitle, can switch easily to title-overriding now, purchasing the implicit redirection from lowercase to uppercase forms. Try the following recipe:

  1. Move all pages to the uppercase variant.
  2. Remove the lowercase variants (yes, redirects will be implicit later).
  3. Remove the statement $wgCapitalLinks = false;
  4. Add the statement $wgAllowDisplayTitle = true;
  5. Be happy!

--Peu 10:32, 21 January 2009 (UTC)