মডিউল:URL: সংশোধিত সংস্করণের মধ্যে পার্থক্য

বিষয়বস্তু বিয়োগ হয়েছে বিষয়বস্তু যোগ হয়েছে
imported>Toohool
get params from the parent frame instead of passing them to #invoke
imported>Toohool
use unicode string functions
৬ নং লাইন:
function trim(s)
return (s:mw.ustring.gsub(s, "^%s*(.-)%s*$", "%1"))
end
 
৩০ নং লাইন:
if uri.path == '/' then uri.path = '' end
text = mw.ustring.lower(uri.host or ''):lower() .. uri.relativePath
end
 
return stringmw.ustring.format('<span class="url">[%s %s]</span>', url, text)
end