Die Dokumentation für dieses Modul kann unter Modul:User:Formatierer/String/Doku erstellt werden
-- testpage
local p = {}
function p.longString(frame)
local i = 0
local s = ""
local cp = ""
local cnt = 0
local loopcnt = 0 + frame.args
for i = 1, loopcnt do
s = s .. "0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789"
end
-- for cp in mw.ustring.gcodepoint(s) do
-- cnt = cnt + 1
-- end
return "" .. loopcnt
end
function p.somecode(frame)
return "X" .. subs("Äöü ÖßÜ") .. "X"
end
function subs(str)
local s = ""
for i = 1, mw.ustring.len( str ) do
s = s .. mw.ustring.sub(str,i,i)
end
return s
end
return p