Module:ColorParse: Difference between revisions

Jump to navigation Jump to search
16 bytes added ,  21:02, 15 November 2019
m
no edit summary
(if no color at the start detected, append &y or &y)
mNo edit summary
Line 8: Line 8:
function normalize(input, type)
function normalize(input, type)
   type = type or 'xml'
   type = type or 'xml'
   local a = '&y' and (type == 'notxml') or '&y'
   local a = '&y'  
  if type == 'notxml' then
    a = '&y'
  end
   local b = input:gsub("(~J211)", "")
   local b = input:gsub("(~J211)", "")
   if not b:match('^%&') then
   if not b:match('^%&') then

Navigation menu