8,756
edits
mNo edit summary |
(autodetermine if xml or not) |
||
Line 64: | Line 64: | ||
local textcontent | local textcontent | ||
local parsedbottomtext | local parsedbottomtext | ||
if | |||
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') | ||
end | end | ||