Hope Platonides, Jeroen or someone else very familiar with Mediawiki's core can answer this and provide a quick explanation or recommendation.
I know it is recommended when setting custom namespaces to use standards, like FOO or FOO_TALK. What are the pitfalls of FOO1.0 or FOO1.1 as a namespace. Is it better to use an alias, such as FOO11 would be aliased to FOO1.1? I know the problems with Apache rewrite and have dealt with them when some of my users tried to create page titles with the ? and * characters. What if any problems could be expected with the .(period) character.
Thanks Tom
On 22/07/12 01:17, Tom Hutchison wrote:
Hope Platonides, Jeroen or someone else very familiar with Mediawiki's core can answer this and provide a quick explanation or recommendation.
I know it is recommended when setting custom namespaces to use standards, like FOO or FOO_TALK. What are the pitfalls of FOO1.0 or FOO1.1 as a namespace. Is it better to use an alias, such as FOO11 would be aliased to FOO1.1? I know the problems with Apache rewrite and have dealt with them when some of my users tried to create page titles with the ? and * characters. What if any problems could be expected with the .(period) character.
Thanks Tom
Hi Tom, You shouldn't have any problem in using a period in the namespace name. If you're making a constant for the namespace name, you can't reference a constant with a period on its name, but the constant could be anything (eg. NS_FOO11), as it isn't ever shown to the end user.
On 7/22/2012 10:04 AM, Platonides wrote:
Hi Tom, You shouldn't have any problem in using a period in the namespace name. If you're making a constant for the namespace name, you can't reference a constant with a period on its name, but the constant could be anything (eg. NS_FOO11), as it isn't ever shown to the end user.
Thank Platonides, from your answer the defines would look like this without any problems.
define("NS_FOO11", 500); define("NS_FOO11_TALK", 501); $wgExtraNamespaces[NS_FOO] = "Foo1.1"; $wgExtraNamespaces[NS_FOO11_TALK] = "Foo1.1_talk";
This is because internally for Mediawiki the namespace is actually numerically dependent, FOO11 is really is 500. The Foo1.1 is just for user consumption.
Tom
Oops
$wgExtraNamespaces[NS_FOO] = "Foo1.1"; should be $wgExtraNamespaces[NS_FOO11] = "Foo1.1";
------------------------------------------------------------------------ On 7/22/2012 10:52 AM, Tom Hutchison wrote:
On 7/22/2012 10:04 AM, Platonides wrote:
Hi Tom, You shouldn't have any problem in using a period in the namespace name. If you're making a constant for the namespace name, you can't reference a constant with a period on its name, but the constant could be anything (eg. NS_FOO11), as it isn't ever shown to the end user.
Thank Platonides, from your answer the defines would look like this without any problems.
define("NS_FOO11", 500); define("NS_FOO11_TALK", 501); $wgExtraNamespaces[NS_FOO] = "Foo1.1"; $wgExtraNamespaces[NS_FOO11_TALK] = "Foo1.1_talk";
This is because internally for Mediawiki the namespace is actually numerically dependent, FOO11 is really is 500. The Foo1.1 is just for user consumption.
Tom
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org