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

Content deleted Content added
imported>Toohool
simplify code by using the mw.uri library
imported>Toohool
get params from the parent frame instead of passing them to #invoke
పంక్తి 32:
text = (uri.host or ''):lower() .. uri.relativePath
end
 
return string.format('<span class="url">[%s %s]</span>', url, text)
end
 
function p.url(frame)
local urltemplateArgs = frame:getParent().args[1]
local texturl = frame.argstemplateArgs[21] or ''
local text = templateArgs[2] or ''
return p._url(url, text)
end
"https://te.wikipedia.org/wiki/మాడ్యూల్:URL" నుండి వెలికితీశారు