XZise created this task.
XZise added subscribers: XZise, valhallasw, jayvdb.
XZise added a project: pywikibot-core.
Restricted Application added subscribers: Aklapper, pywikipedia-bugs.

TASK DESCRIPTION
  The `Page.title()` method should be reworked to be more flexible:
  
  * `allowInterwiki` and `forceInterwiki` allow four different combination of 
which only three make sense (allow=False, force=True does not make sense)
  * The interwiki prefix is not an actual prefix but just the language code 
which may not be valid especially for interwiki links into other families. It's 
reasonably easy to get an interwiki prefix with one wiki in between (like 
`wikipedia:de:…` from a non Wikipedia) but any higher number of intermediate 
stages is not reasonable (as it needs to buffer a lot of interwiki maps and it 
can't know if a potential mapping is impossible unless it tried all possible 
mappings).
  * The `insite` parameter is a bit weird as it always uses `pywikibot.Site()` 
so it's for example not possible to get the interwiki prefix from any site.
  * Currently title has no real support for customized link labels but 
automatically adds brackets (so you'd have to remove the brackets, add the link 
label and add the brackets again).
  * Some parameters only work together (e.g. `textlink` only works when using 
`asLink`)
  
  The best approach is probably to implement a completely new method to avoid 
complex deprecation paths and to avoid confusion with `str.title`.

TASK DETAIL
  https://phabricator.wikimedia.org/T101557

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: XZise
Cc: jayvdb, valhallasw, Aklapper, XZise, pywikipedia-bugs



_______________________________________________
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to