![]() |
VOOZH | about |
This module implements {{User link}}. See that template's documentation for more information.
Dependencies:
localp={} localget_args=require("Module:Arguments").getArgs functionp.main(frame) localargs=get_args(frame) ifargs[1]==nilthen error("Please specify a username") end localusername=args[1] localdisplay_name=args[2]orargs[1] localis_temp_user=mw.ustring.find(username,"~20",1,true)==1 localtext="<span class=\"plainlinks" ifis_temp_userandargs["nobg"]==nilthen text=text.." mw-tempuserlink" end localurl ifis_temp_userthen url=tostring(mw.uri.fullUrl("Special:Contributions/"..username)) else url=tostring(mw.uri.fullUrl("User:"..username)) end text=text.."\">["..url..' '..display_name.."]</span>" returntext end returnp