Page MenuHomePhabricator

How to handle {{In use}} / {{Under construction}} templates
Closed, ResolvedPublic

Description

Today a user canceled the automatic modification of my robot (using a lib other than pwb), with good reason, since the {{Under construction}} banner was placed at the top of the article.
It would be nice if pwb avoided editing pages with this banner or {{In use}} one, currently I can't find code for this.
My idea is to implement this model and its localizations in the library like how {{nobots}} is already taken into account. Which means an error like OtherPageSaveError: Edit to page [[User:Framawiki/sandbox]] failed: Editing restricted by {{bots}} template
Other ideas?

Event Timeline

Framawiki renamed this task from How to handle {{Under construction}} templates to How to handle {{In use}} / {{Under construction}} templates.Jan 31 2018, 11:05 PM
Framawiki updated the task description. (Show Details)

Yes, skipping pages with In use the same way as with Nobots seems reasonable to me. I always did -except:"\{\{ *[Ii]n[_ ]use", but I don't like workarounds like this.

Probably best place to include i-u template list would be in family files, right? Partially can be ported from interwiki.py, although it does contain also delete and under construction templates, which I would accept for scripts (only interwiki seems resonable to avoid these).

Change 407186 had a related patch set uploaded (by Dvorapa; owner: Dvorapa):
[pywikibot/core@master] [IMPR] Make page.py skip pages containing in use/under construction templates

https://gerrit.wikimedia.org/r/407186

Yes, skipping pages with Under construction the same way as with Nobots seems reasonable to me. I always did -except:"\{\{ *[Uu]nder[ _] construction", but I don't like workarounds like this.

Oh, sorry for my confusion. I would ignore under construction. Edits to these pages are recommended, right? Bots are invited to edit them too I hope. I talked about In use (I've fixed previous comments)

In my opinion bots should no edit pages with Nobots or In use templates, but should be allowed to edit pages with Under construction or Delete templates

In my opinion bots should no edit pages with Nobots or In use templates, but should be allowed to edit pages with Under construction or Delete templates

When page(s) include under construction template, bots should not edit pages to user can work on page without problems.

In T186170#3938381, @Zoranzoki21 wrote:

In my opinion bots should no edit pages with Nobots or In use templates, but should be allowed to edit pages with Under construction or Delete templates

When page(s) include under construction template, bots should not edit pages to user can work on page without problems.

No, see {{Under construction}}

Change 407186 merged by jenkins-bot:
[pywikibot/core@master] [IMPR] Make page.py skip pages with in use templates

https://gerrit.wikimedia.org/r/407186

Dvorapa triaged this task as Medium priority.Feb 23 2018, 6:07 PM

Should this task be closed?

Yes for me, thanks for your work !