Hi,
I've noticed botMayEdit() doesn't check for a whitelist if the template used is {{nobots}}, instead it always returns False. Is that a bug or a feature? From reading the documentation on en:Template:Bots, it seems that {{nobots|allow=FooBot}} isn't actually a supported way of using the template (instead it should be {{bots|allow=FooBot}}) so pywikibot is doing it right. Still, I just wanted to check before I go fiddling with the template on somebody's talk page (again) :)
Cheers, Morten
I think it is a bit overcomplicated. *Nobots *should have no parameter and mean "no bots", and all other work should be done with *bots*. This cross-parametering is redundant and therefore harmful.
Hello Morten,
The nobots-feature was designed by enwiki originally, so if their documentation states it should be {{bots|allow=...}} and the pywikipedia code does this - I think it's the way it should be ;-).
However, it might be an idea to check how many people are using the {{nobots|allow=}} syntax. If this is a common error, we might want to consider updating the code (and enwiki docs!) to make this work.
Best, Merlijn
On 2 July 2011 22:20, Morten Wang nettrom@gmail.com wrote:
Hi,
I've noticed botMayEdit() doesn't check for a whitelist if the template used is {{nobots}}, instead it always returns False. Is that a bug or a feature? From reading the documentation on en:Template:Bots, it seems that {{nobots|allow=FooBot}} isn't actually a supported way of using the template (instead it should be {{bots|allow=FooBot}}) so pywikibot is doing it right. Still, I just wanted to check before I go fiddling with the template on somebody's talk page (again) :)
Cheers, Morten
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Hi folks,
sometimes I found sth. like {{nobots|Xqbot}} which is similar to {{bots|deny=Xqbot}}. Maybe it should be implemented (I've done it for my working copy).
An other idea I've tested on my working copy is {{nobots|<scriptname>}} which could prevent running some scripts on a given page like interwiki but enables other bot scripts working.
Greetings xqt
----- Original Nachricht ---- Von: Merlijn van Deen valhallasw@arctus.nl An: Pywikipedia discussion list pywikipedia-l@lists.wikimedia.org Datum: 02.07.2011 22:30 Betreff: Re: [Pywikipedia-l] botMayEdit() and {{nobots}}
Hello Morten,
The nobots-feature was designed by enwiki originally, so if their documentation states it should be {{bots|allow=...}} and the pywikipedia code does this - I think it's the way it should be ;-).
However, it might be an idea to check how many people are using the {{nobots|allow=}} syntax. If this is a common error, we might want to consider updating the code (and enwiki docs!) to make this work.
Best, Merlijn
On 2 July 2011 22:20, Morten Wang nettrom@gmail.com wrote:
Hi,
I've noticed botMayEdit() doesn't check for a whitelist if the template used is {{nobots}}, instead it always returns False. Is that a bug or a feature? From reading the documentation on en:Template:Bots, it seems
that
{{nobots|allow=FooBot}} isn't actually a supported way of using the
template
(instead it should be {{bots|allow=FooBot}}) so pywikibot is doing it
right.
Still, I just wanted to check before I go fiddling with the template on somebody's talk page (again) :)
Cheers, Morten
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Thanks for quick responses! Merlijn touched on something that I found out I could easily test. Apparently there's about 634 or so links to the {{nobots}} template. Only 3 use a 'allow=' parameter, so I think it's clear that it's an incorrect way of using the template, and there's no point in supporting it.
One other thing I found was the behaviour xqt mentions below, only found on one page though: en:Norwegian Wikipedia has {{nobots|interwiki}}.
Thanks again for commenting, and helping me figure out the easy way to test this. Next time I'll probably remember to run a quick SQL query and write a few lines of Python.
Cheers, Morten
On Sat, Jul 2, 2011 at 4:21 PM, info@gno.de wrote:
Hi folks,
sometimes I found sth. like {{nobots|Xqbot}} which is similar to {{bots|deny=Xqbot}}. Maybe it should be implemented (I've done it for my working copy).
An other idea I've tested on my working copy is {{nobots|<scriptname>}} which could prevent running some scripts on a given page like interwiki but enables other bot scripts working.
Greetings xqt
----- Original Nachricht ---- Von: Merlijn van Deen valhallasw@arctus.nl An: Pywikipedia discussion list pywikipedia-l@lists.wikimedia.org Datum: 02.07.2011 22:30 Betreff: Re: [Pywikipedia-l] botMayEdit() and {{nobots}}
Hello Morten,
The nobots-feature was designed by enwiki originally, so if their documentation states it should be {{bots|allow=...}} and the pywikipedia code does this - I think it's the way it should be ;-).
However, it might be an idea to check how many people are using the {{nobots|allow=}} syntax. If this is a common error, we might want to consider updating the code (and enwiki docs!) to make this work.
Best, Merlijn
On 2 July 2011 22:20, Morten Wang nettrom@gmail.com wrote:
Hi,
I've noticed botMayEdit() doesn't check for a whitelist if the template used is {{nobots}}, instead it always returns False. Is that a bug or
a
feature? From reading the documentation on en:Template:Bots, it seems
that
{{nobots|allow=FooBot}} isn't actually a supported way of using the
template
(instead it should be {{bots|allow=FooBot}}) so pywikibot is doing it
right.
Still, I just wanted to check before I go fiddling with the template
on
somebody's talk page (again) :)
Cheers, Morten
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
I implemented these templates in huwiki and a few pages use them. Please let me know if there is any change concerning them.
I think there should be a central documentation of these, perhaps on Meta. Since these two templates are handled by bots, there is no point in using national or project variations; they have only sense if they behave identically in all wikis.
And don't forget that AWB also watches them.