Module:RobloxUrls

--- Functions to create URLs to Roblox website. -- local p = {} --- Make URL to group page. -- @param {string} id Group ID. -- @return {Uri} URL to group page. function p.group(id) return mw.uri.new { protocol = 'https'; host = "www.roblox.com"; path = "/groups/" .. id; } end --- Make URL to user profile. -- @param {string} id User ID. -- @return {Uri} URL to profile page. function p.user_from_id(id) return mw.uri.new { protocol = 'https'; host = "www.roblox.com"; path = "/users/" .. id .. "/profile" } end --- Make URL to user profile. -- @param {string} username Username. -- @return {Uri} URL to profile page. function p.user_from_username(username) return mw.uri.new { protocol = 'https'; host = "www.roblox.com"; path = "/users/profile"; query = { username = username }    } end --- Make URL to item page. -- @param {string} id Item ID. -- @return {Uri} URL to item page in Avatar Shop. function p.item_from_id(id) return mw.uri.new { protocol = 'https'; host = "www.roblox.com"; path = "/catalog/" .. id    } end --- Make URL to bundle page. -- @param {string} id Bundle ID. -- @return {Uri} URL to bundle page in Avatar Shop. function p.bundle_from_id(id) return mw.uri.new { protocol = 'https'; host = "www.roblox.com"; path = "/bundles/" .. id    } end return p