Module:Table row counter and Module:Table row counter/sandbox: Difference between pages
Appearance
(Difference between pages)
Content deleted Content added
Guarapiranga (talk | contribs) if 'ignore' is empty, subtract header rows |
debug |
||
Line 79: | Line 79: | ||
-- rows if it's empty, and make sure the result isn't below zero. |
-- rows if it's empty, and make sure the result isn't below zero. |
||
local headers |
local headers |
||
headers = 0 |
|||
do |
|||
if not args.include_headers then |
|||
local temp |
|||
headers = wikitable:gsub('\n|%-\n!', '\n|-\n!') |
|||
end |
end |
||
if not wikitable:find('^{|[^\n]*%s*\n|%-\n!') then |
if not wikitable:find('^{|[^\n]*%s*\n|%-\n!') then |