From Wikipedia, the free encyclopedia
p={}
function p.incrementor (frame)
local tbl_str = mw.text.unstripNoWiki (frame.args[1]);
local count = 1;
while (tbl_str:find ('row_count')) do
tbl_str = tbl_str:gsub ('row_count', count, 1);
count = count + 1;
end
return frame:preprocess (tbl_str);
end
return p;