VOOZH about

URL: https://minecraft.wiki/w/Module:User_link

⇱ Module:User link – Minecraft Wiki


Module:User link

From Minecraft Wiki
Jump to navigation Jump to search
Documentation[view] [edit] [history] [purge]Jump to code ↴

This module implements {{User link}}. See that template's documentation for more information.

Dependencies:

[view] [edit] [history] [purge]The above documentation is transcluded from Module:User link/doc.
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
Retrieved from "https://minecraft.wiki/w/Module:User_link?oldid=3429416"

Navigation menu