Модуль:Песочница/Pok: различия между версиями

мНет описания правки
Нет описания правки
Метка: ручная отмена
Строка 1: Строка 1:
local p = {}
local p = {}
 
function p.info()
function p.increment(frame)
     return mw.getCurrentFrame():preprocess("'''Lua Engine:''' " .. mw.ext.scribunto.getEngine())
     local content = mw.title.getCurrentTitle():getContent() or ""
    local currentCount = tonumber(content:match('<!--callCount:(%d+)-->')) or 0
    local newCount = currentCount + 1
    return '<!--callCount:' .. newCount .. '-->Количество вызовов: ' .. newCount
end
end
return p
return p