Module:Qud look: Difference between revisions
(by SublimeText.Mediawiker)
imported>Teamtotobot ((by SublimeText.Mediawiker)) |
imported>Teamtotobot ((by SublimeText.Mediawiker)) |
||
Line 2: | Line 2: | ||
local colorparse = require'Module:ColorParse' | local colorparse = require'Module:ColorParse' | ||
function p.qudlook(frame) | function p.qudlook(frame, linebreaks) | ||
local args | |||
local bordercolor | local bordercolor | ||
local padding | local padding | ||
local bottomtext | local bottomtext | ||
local linebreaks = linebreaks or "0" | |||
--[determine notxml]-- | --[determine notxml]-- | ||
Line 57: | Line 58: | ||
local textcontent | local textcontent | ||
local parsedbottomtext | local parsedbottomtext | ||
if linebreaks ~= "0" then | |||
text = colorparse.linebreaks(text) | |||
end | |||
if notxml == true then | if notxml == true then | ||
title = colorparse.parse('&y'..titlein, 'notxml') | title = colorparse.parse('&y'..titlein, 'notxml') |