jayvdb added a comment.
`{{ns:Project}}{{ns:Project}}Bar` does work, and we could support that, but the
far more common case is `{{ns:Project}}:Bar`
IMO it would be sufficient, and helpful, to only recognise it at the beginning
of the title, and followed by ':'. If it is at the beginning of a page title,
the most reasonable assumption is that it is __the__ namespace. I think this
is a risk-free way of introducing a **new** and __non-fuzzy__ way of passing a
page namespace from command line to the inside of a Link.
The same __should__ also be said for a leading '`:`', but it isnt true
>>> pywikibot.Link(':Wiktionary:Foo', pywikibot.Site('en', 'wiktionary') )
pywikibot.page.Link(u'Foo', Site("en", "wiktionary"))
TASK DETAIL
https://phabricator.wikimedia.org/T103080
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb
Cc: XZise, pywikibot-bugs-list, jayvdb, Aklapper, Malyacko, P.Copp
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs