JJMC89 edited subscribers, added: JJMC89; removed: Cyberpower678.
JJMC89 added a comment.


  I can see a few ways to handle this in textlib.
  
  1. Ignore them in `getLanguageLinks()` like is done for `[[en:{{PAGENAME}}]]` 
which would result in removal if calling `getLanguageLinks()` then 
`replaceLanguageLinks()`.
  2. Assume that they point to the main page in `getLanguageLinks()`.
    - What about editing involving them?
      1. Convert to explicit form (`[[en:Main Page]]`)
      2. Convert to implicit form (`[[en:]]`)
      3. Track the form in `getLanguageLinks()` and use it in 
`interwikiFormat()`
  
  2C is the ideal case, but I don't like the hacky implementation that I came 
up with (adding an attribute to the page in `getLanguageLinks()`).
  
  Any thoughts on a preferred option?

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

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

To: JJMC89
Cc: JJMC89, Zabe, Urbanecm, Aklapper, Carlb, Xqt, Legoktm, jayvdb, 
Ricordisamoa, pywikibot-bugs-list, Ladsgroup, XZise, Jyoo1011, JohnsonLee01, 
SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, 
Dvorapa, Altostratus, Avicennasis, Thibaut120094, mys_721tx, Masti, Alchimista, 
Cyberpower678
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to