Jump to content

Shennaghys aavriwnys dy "Module:URL"

Reih anchaslys: jean reih kiarkil reih ny lhiegganyn by vie lhiat cosoylaghey ad, as crig er "enter", ny er y cramman ec cass y rolley.
Ogher: (bio) = anchaslyssyn rish y lhieggan t'ayn nish, (roish) = anchaslyssyn rish y lhieggan roish, m = myn-reaghey

5 Mean Souree 2022

  • bioroish 02:5002:50, 5 Mean Souree 2022 MacTire02 resoonaght cohortyssyn 4,286 byteyn +4,286 Duillag crooit lesh: -- -- 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 = s...