8,756
edits
(Moved out of sandbox) |
(Parse now removes curly braces from text) |
||
Line 2: | Line 2: | ||
function p.parse(frame) | function p.parse(frame) | ||
local | local b = string.gsub(frame.args[1],"([{}])", "") | ||
local a = string.gsub(b,"(&)(%w)([^&\n]*)", function(_,color,text) | |||
local luatable = { | local luatable = { | ||
['r'] = "#a64a2e", | ['r'] = "#a64a2e", |