JJMC89 added a subscriber: Dvorapa.
JJMC89 added a comment.
I'm moving this discussion from Gerrit to the task.
@dvorapa wrote:
> > @Xqt wrote:
> >
> >> @JJMC89 wrote:
> >>
> >>> @dvorapa wrote:
> >>> In movepages.py we use -noredirect param. Perhaps we should use it
here as well?
> >>
> >> The task asks for it to be the default. An inverse parameter like
-nodelete could be added if needed. Naming it -nonoredirect seems odd though.
> >
> > I am fine with a -noredirect param but placing a soft redirect and set a
speedy deletion template after this is nonesense. The result of the current
implementation is having no redirect (without any parameter). The opposite
could be -softredirect to keep that template if a wiki has it (e.g. de-wiki
does not allow soft redirects on categories).
>
> I mean, do we need leaving soft redirect for categories? (that was what I
tried to ask before; anyway -softredirect, -nodelete, -leaveredirect or
whatever similar should be fine)
The logic for user that can move categories (`move-categorypages`) looks
something like:
1. If `-nodelete` is specified (`delete_oldcat=False`), keep a redirect.
2. Else if the user has the `suppressredirect` right, then use `noredirect`
when moving the category to not leave a redirect.
3. Else if the user has the `delete` right, delete the redirect left behind
after the move.
4. Else, tag the redirect with `{{delete}}`.
Do we want a `-leaveredirect` option? It would make the logic something like:
1. If `-nodelete` is specified (`delete_oldcat=False`), keep a redirect.
2. Else if `-leaveredirect` is specified, keep a redirect.
3. Else if the user has the `suppressredirect` right, then use `noredirect`
when moving the category to not leave a redirect.
4. Else if the user has the `delete` right, delete the redirect left behind
after the move.
5. Else, tag the redirect with `{{delete}}`.
Unless I'm missing something, it wouldn't be different than use the existing
`-nodelete` if you want to keep the redirect.
TASK DETAIL
https://phabricator.wikimedia.org/T150093
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: JJMC89
Cc: Dvorapa, Framawiki, Aklapper, Xqt, pywikibot-bugs-list, CucyNoiD,
NebulousIris, Wenyi, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci,
Adrian1985, Cpaulf30, Baloch007, Darkminds3113, Bsandipan, Lordiis, Adik2382,
Chicocvenancio, Th3d3v1ls, Ramalepe, Liugev6, Tbscho, MayS, Lewizho99, Mdupont,
JJMC89, Maathavan, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs