Jump to content

User:PHansen/b

From Wikipedia, the free encyclopedia

{{#invoke:Sandbox/PHansen/b|main}}

www.tryggevaeldeprovsti.dk/ind...




mw.text.truncate( text, length, ellipsis, adjustLength )


--  mw.text.truncate( text, length, ellipsis, adjustLength )
-- [[:mw:Extension:Scribunto/Lua_reference_manual#mw.text.truncate]]
-- {{#invoke:Sandbox/PHansen/b|main}}
--  Module:Sandbox/PHansen/b med User:PHansen/b
local p = {}
 
function p.main( frame )
    args = frame.args
    text = "www.tryggevaeldeprovsti.dk/index.php?id=1722"
	url = ""
 	limit = 30
 
	if string.len(text) > limit then 
 
		url =  mw.text.truncate( text, limit, ellipsis, adjustLength )
 
		return url
 
 	end  
end
 
return p