8,756
edits
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
function p.parse(frame) | function p.parse(frame) | ||
local a = string.gsub(frame.args[1],"(&)(%w)([^&\n]+)", "<test span style=\"color: " .. tostring(p.test("%2")) .. ";\">" .. "%3" .. "<test span>") | local a = string.gsub(frame.args[1],"(&)(%w)([^&\n]+)", "<test span style=\"color: " .. tostring(p.test("%2")) .. ";\">" .. "%3" .. "<test span>") | ||
Line 10: | Line 10: | ||
function p.test(z) | function p.test(z) | ||
local luatable | |||
luatable = luatable or { | luatable = luatable or { | ||
['r'] = "#a64a2e", | ['r'] = "#a64a2e", |