Module:URL: Revision history

From The Kodiak Republic Wiki

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

12 January 2023

  • curprev 14:1014:10, 12 January 2023Silmjlc talk contribs 4,153 bytes +4,153 Created page with "-- -- This module implements {{URL}} -- -- See unit tests at Module:URL/testcases local p = {} local function safeUri(s) local success, uri = pcall(function() return mw.uri.new(s) end) if success then return uri end end local function extractUrl(args) for name, val in pairs(args) do if name ~= 2 and name ~= "msg" then local url = name .. "=" .. val; url = mw.ustring.gsub(url, '^[Hh][Tt][Tt][Pp]([Ss]?):(/?)([^/])', 'http%1://%3') local uri = sa..."
Cookies help us deliver our services. By using our services, you agree to our use of cookies.