Module:ColorParse: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 115: Line 115:
     -- alternation | pattern will stretch to fit word length (?)
     -- alternation | pattern will stretch to fit word length (?)
     local type = type or 'default'
     local type = type or 'default'
     local rasterize = false
     local brasterize = false
     if rasterize == 'true' then
     if rasterize == 'true' then
       rasterize = true
       brasterize = true
     end
     end
     local strtbl = strtotbl(text)
     local strtbl = strtotbl(text)
Line 152: Line 152:
           hexcolor = colorlist[ci]
           hexcolor = colorlist[ci]
       end
       end
           if rasterize then
           if brasterize then
             finaltbl[i] = "<span style=\"color: " .. luatable.parse(hexcolor) .. ";\">"  .. strtbl[i].. "</span>"
             finaltbl[i] = "<span style=\"color: " .. luatable.parse(hexcolor) .. ";\">"  .. strtbl[i].. "</span>"
           else  
           else  

Navigation menu