Moduł:Licznik
Wygląd
Dokumentacja dla tego modułu może zostać utworzona pod nazwą Moduł:Licznik/opis
local p = {}
function p.reset(frame)
frame:callParserFunction('#vardefine', 'licznik|0')
return ''
end
function p.next(frame)
local current = tonumber(frame:callParserFunction('#var', 'licznik')) or 0
current = current + 1
frame:callParserFunction('#vardefine', 'licznik|' .. current)
return current
end
return p