I was just making a fresh install, to see if that would solve my problem with the bots not running successfully.
I saw that in the family file there is the following (using the example from Appropedia):
self.namespaces[4] = { '_default': u'Appropedia', #Specify the project namespace here. Other } #namespaces will be set to MediaWiki default.
self.namespaces[5] = { '_default': u'Appropedia talk',
I'm trying to get a deeper understanding here - what is the purpose of this? In our case we have 2 custom namespaces, so I assume I need to add these here as well:
self.namespaces[100] = { '_default': u'Portal',
self.namespaces[101] = { '_default': u'Portal talk',
self.namespaces[102] = { '_default': u'Original', #Specify the project namespace here. Other } #namespaces will be set to MediaWiki default.
self.namespaces[103] = { '_default': u'Original talk',
Thanks, Chris
On Wed, Jul 2, 2008 at 10:48 AM, Chris Watkins chriswaterguy@appropedia.org wrote:
I was just making a fresh install, to see if that would solve my problem with the bots not running successfully.
I saw that in the family file there is the following (using the example from Appropedia):
self.namespaces[4] = { '_default': u'Appropedia', #Specify the project namespace here.
Other } #namespaces will be set to MediaWiki default.
self.namespaces[5] = { '_default': u'Appropedia talk',
I'm trying to get a deeper understanding here - what is the purpose of this?
If you want to let the bot run on all pages, or all pages in a certain range, it will use [[Special:Allpages]]. There you only get pages from one namespace. By telling the bot what is a namespace, it can then choose to get pages from that namespace instead of the default one. Whether or not this is useful for your application of course depends on what use you make of the framework.
On Wed, Jul 2, 2008 at 12:42 PM, Andre Engels andreengels@gmail.com wrote:
On Wed, Jul 2, 2008 at 10:48 AM, Chris Watkins
I'm trying to get a deeper understanding here - what is the purpose of this?
If you want to let the bot run on all pages, or all pages in a certain range, it will use [[Special:Allpages]]. There you only get pages from one namespace. By telling the bot what is a namespace, it can then choose to get pages from that namespace instead of the default one. Whether or not this is useful for your application of course depends on what use you make of the framework.
Thanks. Is there any reason that the namespace parameter requires a number? I would seem simpler to me to just use the text form (e.g. -namespace:Appropedia_talk ) and not need to have this code in the family file.
Not an important question, more from curiosity.
Chris
-- Andre Engels, andreengels@gmail.com ICQ: 6260644 -- Skype: a_engels
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
I'm trying to get a deeper understanding here - what is the purpose of
this?
If you want to let the bot run on all pages, or all pages in a certain range, it will use [[Special:Allpages]]. There you only get pages from one namespace. By telling the bot what is a namespace, it can then choose to get pages from that namespace instead of the default one. Whether or not this is useful for your application of course depends on what use you make of the framework.
* It's shorter. * Obviously, you don't have to know the namespace name to work on a specific wiki * MediaWiki uses integers. ( http://en.wikipedia.org/w/index.php?title=Special%3APrefixIndex&from=&am... )
2008/7/2 Chris Watkins chriswaterguy@appropedia.org:
On Wed, Jul 2, 2008 at 12:42 PM, Andre Engels andreengels@gmail.com wrote:
On Wed, Jul 2, 2008 at 10:48 AM, Chris Watkins
I'm trying to get a deeper understanding here - what is the purpose of this?
If you want to let the bot run on all pages, or all pages in a certain range, it will use [[Special:Allpages]]. There you only get pages from one namespace. By telling the bot what is a namespace, it can then choose to get pages from that namespace instead of the default one. Whether or not this is useful for your application of course depends on what use you make of the framework.
Thanks. Is there any reason that the namespace parameter requires a number? I would seem simpler to me to just use the text form (e.g. -namespace:Appropedia_talk ) and not need to have this code in the family file.
Not an important question, more from curiosity.
Chris
-- Andre Engels, andreengels@gmail.com ICQ: 6260644 -- Skype: a_engels
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
I'm trying to get a deeper understanding here - what is the purpose of this?
If you want to let the bot run on all pages, or all pages in a certain range, it will use [[Special:Allpages]]. There you only get pages from one namespace. By telling the bot what is a namespace, it can then choose to get pages from that namespace instead of the default one. Whether or not this is useful for your application of course depends on what use you make of the framework.
-- Chris Watkins (a.k.a. Chriswaterguy)
Appropedia.org - Sharing knowledge to build rich, sustainable lives.
Blog: chriswaterguy.livejournal.com/
Buying at Amazon, eBay etc? Start at http://appropedia.maatiam.com and a percentage of your purchase supports Appropedia - at no extra cost.
Where men are the most sure and arrogant, they are commonly the most mistaken, and have there given reins to passion, without that proper deliberation and suspense, which can alone secure them from the grossest absurdities. -- David Hume _______________________________________________ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Okay, makes sense.
I see now that it's possible to use the text version as a parameter, which is nice (for example -namespace:Appropedia or -"namespace:Appropedia talk" )
Chris
On Wed, Jul 2, 2008 at 1:09 PM, Nicolas Dumazet nicdumz@gmail.com wrote:
- It's shorter.
- Obviously, you don't have to know the namespace name to work on a
specific wiki
- MediaWiki uses integers. (
http://en.wikipedia.org/w/index.php?title=Special%3APrefixIndex&from=&am... )
2008/7/2 Chris Watkins chriswaterguy@appropedia.org:
On Wed, Jul 2, 2008 at 12:42 PM, Andre Engels andreengels@gmail.com
wrote:
On Wed, Jul 2, 2008 at 10:48 AM, Chris Watkins
I'm trying to get a deeper understanding here - what is the purpose of this?
If you want to let the bot run on all pages, or all pages in a certain range, it will use [[Special:Allpages]]. There you only get pages from one namespace. By telling the bot what is a namespace, it can then choose to get pages from that namespace instead of the default one. Whether or not this is useful for your application of course depends on what use you make of the framework.
Thanks. Is there any reason that the namespace parameter requires a
number?
I would seem simpler to me to just use the text form (e.g. -namespace:Appropedia_talk ) and not need to have this code in the family file.
Not an important question, more from curiosity.
Chris
-- Andre Engels, andreengels@gmail.com ICQ: 6260644 -- Skype: a_engels
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
I'm trying to get a deeper understanding here - what is the purpose of this?
If you want to let the bot run on all pages, or all pages in a certain range, it will use [[Special:Allpages]]. There you only get pages from one namespace. By telling the bot what is a namespace, it can then choose to get pages from that namespace instead of the default one. Whether or not this is useful for your application of course depends on what use you make of the framework.
-- Chris Watkins (a.k.a. Chriswaterguy)
Appropedia.org - Sharing knowledge to build rich, sustainable lives.
Blog: chriswaterguy.livejournal.com/
Buying at Amazon, eBay etc? Start at http://appropedia.maatiam.com and a percentage of your purchase supports Appropedia - at no extra cost.
Where men are the most sure and arrogant, they are commonly the most mistaken, and have there given reins to passion, without that proper deliberation and suspense, which can alone secure them from the grossest absurdities. -- David Hume _______________________________________________ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
-- Nicolas Dumazet — NicDumZ [ nIk.d̪ymz ] pywikipedia & mediawiki Deuxième année ENSIMAG. 06 03 88 92 29 _______________________________________________ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
On Wed, Jul 2, 2008 at 1:00 PM, Chris Watkins chriswaterguy@appropedia.org wrote:
Thanks. Is there any reason that the namespace parameter requires a number? I would seem simpler to me to just use the text form (e.g. -namespace:Appropedia_talk ) and not need to have this code in the family file.
That makes it possible to compare when namespaces on different wikis are 'the same' namespace. You probably won't need it, but for example on Wikipedia the bots check whether a language link is to a page in the same or in another namespace.