Jump to content

Module:Row numbers

From escforumwiki
Revision as of 15:49, 10 April 2018 by en>Trappist the monk

Implements {{Row numbers}}


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;
MediaWiki spam blocked by CleanTalk.