Page MenuHomePhabricator

Allow to append to the output page on category.py listify
Closed, ResolvedPublic

Description

Right now when using listify, there is only an option to -overwrite the output page. It would be great if the script could append the output to existing text on the page.

Event Timeline

Framawiki renamed this task from [REQUEST] Category.py listify -append to Allow to append to the output page on category.py listify.Jun 30 2018, 7:54 AM
Framawiki added a subscriber: Framawiki.
Vvjjkkii renamed this task from Allow to append to the output page on category.py listify to qjaaaaaaaa.Jul 1 2018, 1:02 AM
Vvjjkkii raised the priority of this task from Low to High.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
Wesalius renamed this task from qjaaaaaaaa to Allow to append to the output page on category.py listify.Jul 1 2018, 10:33 AM
Wesalius lowered the priority of this task from High to Medium.
Wesalius updated the task description. (Show Details)
Wesalius added a subscriber: Aklapper.
This comment was removed by Kizule.
Xqt added a subscriber: Xqt.

What would be the reason to keep the outdated list? Isn’t it better to look at version history’s difference?

Is there any delimiter needed between those lists e. g. a section header? How to proceed if the older entry does not have a delimiter section? When and how is the page to be cleaned. Can the edit summery be reused?

What would be the reason to keep the outdated list? Isn’t it better to look at version history’s difference?

Sometime I need a list of content of multiple categories, listifying them to one output with -append option would make it easy.

I see. In that case a section header should be implemented too.

I see. In that case a section header should be implemented too.

I agree. pagefromfile.py is already capable of appending to top or bottom, might be reused

Change 462141 had a related patch set uploaded (by D3r1ck01; owner: Alangi Derick):
[pywikibot/core@master] category.py: Add option -append to listify

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

Change 462141 merged by jenkins-bot:
[pywikibot/core@master] category.py: Add option -append to listify

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