Module:Qud look: Difference between revisions

34 bytes added ,  02:10, 21 July 2020
autodetermine if xml or not
mNo edit summary
(autodetermine if xml or not)
Line 64: Line 64:
local textcontent
local textcontent
local parsedbottomtext
local parsedbottomtext
if notxml == true then
       
   title = colorparse.parse('&y'..titlein, 'notxml')
if colorparse.determinexml(text) then
                title = colorparse.parse('&y'.. titlein, 'xml')
  textcontent=colorparse.parse('&y' .. text, 'xml')
   parsedbottomtext=colorparse.parse('&Y'..bottomtext, 'xml')
else
title = colorparse.parse('&y'..titlein, 'notxml')
   textcontent=colorparse.parse('&y' .. text, 'notxml')
   textcontent=colorparse.parse('&y' .. text, 'notxml')
   parsedbottomtext=colorparse.parse('&Y'..bottomtext, 'notxml')
   parsedbottomtext=colorparse.parse('&Y'..bottomtext, 'notxml')
else
  title = colorparse.parse('&y'.. titlein, 'xml')
  textcontent=colorparse.parse('&y' .. text, 'xml')
  parsedbottomtext=colorparse.parse('&Y'..bottomtext, 'xml')
end
end