Porting commons_link.py from compat to core
Porting commons_link.py from compat to core

Change-Id: Ibfdc3e24b999611327a2d057422bc84e62c3144a

xZise/pywikibot-core,jayvdb/pywikibot-core,hasteur/g13bot_tools_new,wikimedia/pywikibot-core,Darkdadaah/pywikibot-core,emijrp/pywikibot-core,darthbhyrava/pywikibot-local,wikimedia/pywikibot-core,happy5214/pywikibot-core,VcamX/pywikibot-core,Darkdadaah/pywikibot-core,hasteur/g13bot_tools_new,magul/pywikibot-core,smalyshev/pywikibot-core,h4ck3rm1k3/pywikibot-core,npdoty/pywikibot,npdoty/pywikibot,h4ck3rm1k3/pywikibot-core,jayvdb/pywikibot-core,happy5214/pywikibot-core,magul/pywikibot-core,trishnaguha/pywikibot-core,PersianWikipedia/pywikibot-core,icyflame/batman,TridevGuha/pywikibot-core,valhallasw/pywikibot-core,hasteur/g13bot_tools_new