8,756
edits
mNo edit summary |
(make linebreaks argument actually do things) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 41: | Line 41: | ||
--[Determine qud text]-- | --[Determine qud text]-- | ||
local text = frame.args['text'] or "" | local text = frame.args['text'] or "" | ||
if linebreaks then | |||
text = colorparse.linebreaks(text) | |||
end | |||
--[Determine body padding]-- | --[Determine body padding]-- | ||
Line 64: | Line 67: | ||
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 | |||
textcontent=colorparse.parse('&y' .. text, 'xml') | |||
else | else | ||
textcontent=colorparse.parse('&y' .. text, 'notxml') | |||
end | |||
if colorparse.determinexml(bottomtext) then | |||
parsedbottomtext=colorparse.parse('&Y'..bottomtext, 'xml') | |||
else | |||
parsedbottomtext=colorparse.parse('&Y'..bottomtext, 'notxml') | |||
end | end | ||