Xqt added a comment.

@D3r1ck01 @Xqt and others:
Do you prefer a regex or an index approach here ? The second looks cleaner to me.

Sorry, I don’t have it. Could you show me the different approach?

What about implementing this as a param like withoutDisambiguation in page.title() method? That would allow to easily reuse it elsewhere.

Sounds good but there is a general problem with it which isn’t taken into account: There may be real titles which has these bracket tail included. Therefore sth. without_brackets would be more neutral but doesn’t solve that underlying problem

I also think that this param use can be directly added in create_item_for_page() , and in this case scripts/newitem.py would not be modified.

Agree

Best
xqt


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

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

To: Shreyasminocha, Xqt
Cc: D3r1ck01, Liuxinyu970226, revi, jayvdb, JAnD, Framawiki, matej_suchanek, Xqt, Aklapper, pywikibot-bugs-list, Bugreporter, Wenyi, Kieubinhtb, Wonnral, Asad_Ali_Palijo, Lahi, Soteriaspace, RazeSoldier, Jayprakash12345, JakeTheDeveloper, Tbscho, MayS, Mdupont, JJMC89, TerraCodes, Avicennasis, MuhammadShuaib, SimmeD, mys_721tx, Ricordisamoa, Dalba, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to