8,756
edits
mNo edit summary |
(fixed new line bug) |
||
Line 4: | Line 4: | ||
local b = string.gsub(frame.args[1],"([{}])", "") | local b = string.gsub(frame.args[1],"([{}])", "") | ||
local b = string.gsub(b,"(~J211)", "") | local b = string.gsub(b,"(~J211)", "") | ||
local a = string.gsub(b,"(&)(%w)([^&\n]*)", function(_,color,text) | local a = string.gsub(b,"(&)(%w)([^&\n]*)", function(_,color,text) | ||
local luatable = { | local luatable = { | ||
Line 29: | Line 28: | ||
return "<span style=\"color: " .. luatable[color] .. ";\">" .. text .. "</span>" | return "<span style=\"color: " .. luatable[color] .. ";\">" .. text .. "</span>" | ||
end) | end) | ||
return | local c = string.gsub(a,"(\n)", "</br>") | ||
return c | |||
end | end | ||