Module:Qud look: Difference between revisions

Jump to navigation Jump to search
161 bytes added ,  02:30, 21 July 2020
m
no edit summary
(autodetermine if xml or not)
mNo edit summary
Line 64: Line 64:
local textcontent
local textcontent
local parsedbottomtext
local parsedbottomtext
          
         if colorparse.determinexml(titlein) then
            title = colorparse.parse('&y'.. titlein, 'xml')
        else
            title = colorparse.parse('&y'..titlein, 'notxml')
        end
if colorparse.determinexml(text) then
if colorparse.determinexml(text) then
                title = colorparse.parse('&y'.. titlein, 'xml')
        textcontent=colorparse.parse('&y' .. text, 'xml')
  textcontent=colorparse.parse('&y' .. text, 'xml')
  parsedbottomtext=colorparse.parse('&Y'..bottomtext, 'xml')
else
else
title = colorparse.parse('&y'..titlein, 'notxml')
            textcontent=colorparse.parse('&y' .. text, 'notxml')
  textcontent=colorparse.parse('&y' .. text, 'notxml')
end
  parsedbottomtext=colorparse.parse('&Y'..bottomtext, 'notxml')
  if colorparse.determinexml(bottomtext) then
            parsedbottomtext=colorparse.parse('&Y'..bottomtext, 'xml')
        else
      parsedbottomtext=colorparse.parse('&Y'..bottomtext, 'notxml')
end
end


Navigation menu