మాడ్యూల్:URL: కూర్పుల మధ్య తేడాలు

Content deleted Content added
చి en:Module:URL నుండి కూర్పులను దిగుమతి చేసాం
Per talk page request. I studied the syntax carefully. Looks like it is alright after all. Since two eyes have seen this, I assume it is okay to commit it to the production version.
పంక్తి 6:
local p = {}
local function trimsafeUri(s)
return (mw.ustring.gsub(s, "^%s*(.-)%s*$", "%1"))
end
 
function safeUri(s)
local success, uri = pcall(function()
return mw.uri.new(s)
Line 20 ⟶ 16:
 
function p._url(url, text)
url = mw.text.trim(url or '')
text = mw.text.trim(text or '')
if url == '' then
"https://te.wikipedia.org/wiki/మాడ్యూల్:URL" నుండి వెలికితీశారు