Module:TableGenerator: Difference between revisions

Sur (talk | contribs)
m correction to prev
Sur (talk | contribs)
m attempt 2 at correcting previous
Line 40: Line 40:
         -- If the value contains a " 0 " then it will be colored slightly darker
         -- If the value contains a " 0 " then it will be colored slightly darker
         local class = ''
         local class = ''
         if value:find(" %0[^%.]") then
         if value:find(" %%0[^%.]") then
             class = ' class="darker"'
             class = ' class="darker"'
         end
         end