Modul:PageListFromFile
Dokumentaci tohoto modulu lze vytvořit na stránce Nápověda:Modul:PageListFromFile
local p = {}
function p.pageListFromFile(frame)
pargs = frame.args
local fileName = pargs["fileName"] or ""
local from = pargs["from"] or pargs["start"] or 1
local to = pargs["to"] or pargs["stop"] or 1
local step = pargs["step"] or 1
local offset = pargs["offset"] or 0
local items = {}
local i
local result = ""
for i = from,to,step do
table.insert(items,"[[Stránka:" .. fileName .. "/" .. tostring(i) .. "|" .. tostring(i+offset) .. "]]")
end
result = mw.text.listToText( items," "," " )
return result
end
return p