I created*) a new namespace "historisk", as an archive for articles which are no longer relevant, but kept for historical reasons.
define("NS_FOO", 500); define("NS_FOO_TALK", 501); $wgExtraNamespaces[NS_HISTORISK] = "Historisk"; $wgExtraNamespaces[NS_HISTORISK_TALK] = "Historisk_talk"; // underscore required. use it to separate all words in the title of namespace $wgContentNamespaces[] = 500;
But I must be missing something since "[[historisk:newarticle]]" (no articles exist in that extranamespaces yet and it happens no matter which articlename I enter) keeps redirecting to "[[newarticle]]" prior to the first edit, right after I enter the URL
*) http://www.mediawiki.org/wiki/Manual:Using_custom_namespaces
Did I miss something obvious or otherwise?
Henrik Rasmussen
If I understand correctly you have a link [[historisk:newarticle]], which is a read link because the page doesn't exist. If you click on it a page is created with the title 'newarticle'. In that case even if the namespace is not valid, the pagename of the page to be created should be 'historisk:new article'. So probably something else is causing this behavior.
Ad
Op 26 sep. 2014, om 11:58 heeft Henrik Rasmussen her@adm.ku.dk het volgende geschreven:
I created*) a new namespace "historisk", as an archive for articles which are no longer relevant, but kept for historical reasons.
define("NS_FOO", 500); define("NS_FOO_TALK", 501); $wgExtraNamespaces[NS_HISTORISK] = "Historisk"; $wgExtraNamespaces[NS_HISTORISK_TALK] = "Historisk_talk"; // underscore required. use it to separate all words in the title of namespace $wgContentNamespaces[] = 500;
But I must be missing something since "[[historisk:newarticle]]" (no articles exist in that extranamespaces yet and it happens no matter which articlename I enter) keeps redirecting to "[[newarticle]]" prior to the first edit, right after I enter the URL
*) http://www.mediawiki.org/wiki/Manual:Using_custom_namespaces
Did I miss something obvious or otherwise?
Henrik Rasmussen _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Did you actually leave this as it is written in your email?
define("NS_FOO", 500); define("NS_FOO_TALK", 501);
if so try:
define("NS_HISTORISK", 500); define("NS_HISTORISK_TALK", 501);
another thing which helped me was to change the name space number from 500 to 1000 and the NS_TALK space to 1001 leave everthing under those numbers available for Mediawiki
What is the impact if you change the numbers from 500 - 1000?
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of John Foster Sent: Friday, September 26, 2014 11:20 AM To: mediawiki-l@lists.wikimedia.org Subject: Re: [MediaWiki-l] Every non-existing article ín brand new Namespace redirect to default namespace
Did you actually leave this as it is written in your email?
define("NS_FOO", 500); define("NS_FOO_TALK", 501);
if so try:
define("NS_HISTORISK", 500); define("NS_HISTORISK_TALK", 501);
another thing which helped me was to change the name space number from 500 to 1000 and the NS_TALK space to 1001 leave everthing under those numbers available for Mediawiki
_______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
RE: changing the namespace address number; I don't know the reason behind it, as it was suggested by another member when I was having a similar issue. It did however, fix the problem I was having and my new name space started working immediately;
On 09/26/2014 10:22 AM, Legault, Phillip [ITSUS] wrote:
What is the impact if you change the numbers from 500 - 1000?
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of John Foster Sent: Friday, September 26, 2014 11:20 AM To: mediawiki-l@lists.wikimedia.org Subject: Re: [MediaWiki-l] Every non-existing article ín brand new Namespace redirect to default namespace
Did you actually leave this as it is written in your email?
define("NS_FOO", 500); define("NS_FOO_TALK", 501);
if so try:
define("NS_HISTORISK", 500); define("NS_HISTORISK_TALK", 501);
another thing which helped me was to change the name space number from 500 to 1000 and the NS_TALK space to 1001 leave everthing under those numbers available for Mediawiki
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On 09/26/2014 05:42 PM, John Foster wrote:
RE: changing the namespace address number; I don't know the reason behind it, as it was suggested by another member when I was having a similar issue. It did however, fix the problem I was having and my new name space started working immediately;
In your case I believe the change was suggested because you were using namespace 100 and that namespaces 100-199 are reserved.
see https://www.mediawiki.org/wiki/Extension_default_namespaces#ID_100-199
On 09/26/2014 10:22 AM, Legault, Phillip [ITSUS] wrote:
What is the impact if you change the numbers from 500 - 1000?
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of John Foster Sent: Friday, September 26, 2014 11:20 AM To: mediawiki-l@lists.wikimedia.org Subject: Re: [MediaWiki-l] Every non-existing article ín brand new Namespace redirect to default namespace
Did you actually leave this as it is written in your email?
define("NS_FOO", 500); define("NS_FOO_TALK", 501);
if so try:
define("NS_HISTORISK", 500); define("NS_HISTORISK_TALK", 501);
another thing which helped me was to change the name space number from 500 to 1000 and the NS_TALK space to 1001 leave everthing under those numbers available for Mediawiki
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org