localexport={}localcollisions=require("Module:R:Perseus/collision-data")functionis_collision(x)returncollisions[mw.ustring.lower(x)]~=nilendfunctionformat_perseus_url(title,beta,redirect)localurl_redirect_lhs='http://www.perseus.tufts.edu/hopper/resolveform?type=exact&lookup='localurl_entry_lhs='http://www.perseus.tufts.edu/hopper/text?doc=Perseus:text:1999.04.0073:entry='localurl_rhs=redirectand'&lang=greek'or''return(redirectandurl_redirect_lhsorurl_entry_lhs)..beta..url_rhsendfunctionformat_perseus_wikilink(title,beta,redirect)localurl=format_perseus_url(title,beta,redirect)localw_link='«['..url..' '..title..']» in 'return(beta==''and''orw_link)endfunctionexport.create(frame)localargs=frame:getParent().argslocaltitle=args['w']ormw.title.getCurrentTitle().textlocalbeta=args[1]orrequire("Module:grc-polytonic-to-perseus-betacode").polytonic_to_perseus_betacode(title)--polytonic_to_perseus_beta(title)localredirect=is_collision(title)andnotargs[1]andnotargs['w']returnformat_perseus_wikilink(title,beta,redirect)endreturnexport