[Pywikipedia-l] namespaces in family file

Nicolas Dumazet nicdumz at gmail.com
Wed Jul 2 11:09:35 UTC 2008


* 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=&namespace=0
)

2008/7/2 Chris Watkins <chriswaterguy at appropedia.org>:
>
>
> On Wed, Jul 2, 2008 at 12:42 PM, Andre Engels <andreengels at 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 at gmail.com
>> ICQ: 6260644 -- Skype: a_engels
>>
>> _______________________________________________
>> Pywikipedia-l mailing list
>> Pywikipedia-l at 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 at 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


More information about the Pywikipedia-l mailing list