Moduł:Raw Pages
Dokumentacja dla tego modułu może zostać utworzona pod nazwą Moduł:Raw Pages/opis
local p = {}
function p.raw(frame)
args=frame.args
local pocz = args.pocz
local kon = args.kon
local indeks = args.indeks
local num_stron = args.cyfr
local tresc = ''
for licznik = tonumber(pocz), tonumber(kon) do
local title_p = mw.title.new( indeks .. '/' .. string.format('%0' .. num_stron .. 'd', tonumber(licznik)) )
local p_content = title_p:getContent()
p_content = mw.ustring.gsub( p_content, '<[nN][oO][iI][nN][cC][lL][uU][dD][eE]>.-</[nN][oO][iI][nN][cC][lL][uU][dD][eE]>', '' )
tresc = tresc .. ' ' .. p_content
end
--mw.log(lista_content)
return frame:preprocess{ text = '<nowiki>' .. tresc .. '</nowiki>'}
end
return p