Jump to content

Module:Row numbers

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Trappist the monk (talk | contribs) at 15:06, 10 April 2018 (create;). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

p={}
function p.incrementor (frame)
	local tbl_str = frame.args[1];
	local count = 1;
	
	while (tbl_str:find ('row_count')) do
		tbl = tbl_str:gsub ('row_count', count, 1);
		count = count + 1;
	end
	return frame:preprocess (tbl_str);

end

return p;