We're working on upgrading our 1.4.12 wiki to 1.9.0.
One thing I discovered is that template usages in 1.8.2 and 1.9.0 now require correctly matching title case. This was not the case in 1.4.12.
i.e. For Template:NavBar, pages that worked previously with {{Navbar}} in the wikitext are now broken links. Switching it to {{NavBar}} fixes the inclusion.
My first question, is this a bug or a feature? You can't safely have Template:NavBar and Template:Navbar in the same wiki database anyway, correct?
Unfortunately we now have a large number (over 1,000) of broken template links in our site if we upgrade. One possible solution is to use redirects from the improperly capitalized templates to the correct ones, which could probably be done mostly with a XML import. Any issues with that solution?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Jeff Lane wrote:
We're working on upgrading our 1.4.12 wiki to 1.9.0.
One thing I discovered is that template usages in 1.8.2 and 1.9.0 now require correctly matching title case. This was not the case in 1.4.12.
I'm quite sure this has *always* been the case.
MediaWiki doesn't have any sort of case-insensitive title matching (except for the first letter when set to capitalize titles, as default).
i.e. For Template:NavBar, pages that worked previously with {{Navbar}} in the wikitext are now broken links. Switching it to {{NavBar}} fixes the inclusion.
My first question, is this a bug or a feature? You can't safely have Template:NavBar and Template:Navbar in the same wiki database anyway, correct?
Yes, you may have Template:NavBar and Template:Navbar.
Some day we may have full case-insensitivity but we never have yet.
Unfortunately we now have a large number (over 1,000) of broken template links in our site if we upgrade. One possible solution is to use redirects from the improperly capitalized templates to the correct ones, which could probably be done mostly with a XML import. Any issues with that solution?
Redirects are the only way to have accomplished this in the first place, as far as I know.
- -- brion vibber (brion @ pobox.com)
One thing I discovered is that template usages in 1.8.2 and
1.9.0 now
require correctly matching title case. This was not the
case in 1.4.12.
I'm quite sure this has *always* been the case.
MediaWiki doesn't have any sort of case-insensitive title matching (except for the first letter when set to capitalize titles, as default).
Hmm, this is very odd.
This template: http://developer.valvesoftware.com/wiki/Template:KV_Targetname is used as {{kv_targetname}} On this page: http://developer.valvesoftware.com/wiki/Path_corner (under the "Keyvalues" section).
And it works. We have a large number of other links on the server that are also this way.
On the 1.9 test server, the above link is broken until I switch it to {{KV Targetname}}.
Production server: MediaWiki (http://wikipedia.sf.net/): 1.4.12 PHP (http://www.php.net/): 4.3.10-18 (apache) MySQL (http://www.mysql.com/): 4.0.24_Debian-10sarge2-log
And (I believe) Apache 1.333. I can't check easily at the moment.
Yes, in MW all articles are case-sensitive (afaik).
Only the capitals, the first letter in an article-name, are NOT case-sensitive (if you are using the default-settings).
So, make sure to use correct case-sensitivity in all Links (pages in every namespace, incl. main: and template:).
Regards, Jan
Jeff Lane schrieb:
We're working on upgrading our 1.4.12 wiki to 1.9.0.
One thing I discovered is that template usages in 1.8.2 and 1.9.0 now require correctly matching title case. This was not the case in 1.4.12.
i.e. For Template:NavBar, pages that worked previously with {{Navbar}} in the wikitext are now broken links. Switching it to {{NavBar}} fixes the inclusion.
My first question, is this a bug or a feature? You can't safely have Template:NavBar and Template:Navbar in the same wiki database anyway, correct?
Unfortunately we now have a large number (over 1,000) of broken template links in our site if we upgrade. One possible solution is to use redirects
from the improperly capitalized templates to the correct ones, which could
probably be done mostly with a XML import. Any issues with that solution?
Jeff Lane wrote:
My first question, is this a bug or a feature? You can't safely have Template:NavBar and Template:Navbar in the same wiki database anyway, correct?
Hmmm, this does appear to be a bug, or at perhaps a configuration option that I could not find the documentation for. According to Help:Template on Meta:
As usual the template name is case sensitive except (on most projects) for the first letter, and a blank space is equivalent with an underscore (as opposed to parameter names, see below: they are case-sensitive, even with respect to the first letter, and spaces are distinguished from underscores).
http://meta.wikimedia.org/wiki/Help:Template
The Help:Templates article on mediawiki.org makes no mention either way.
mediawiki-l@lists.wikimedia.org