Module:GetRandomCreature: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 1: Line 1:
local p = {}
local p = {}
local luatable
 
function p.parse(frame)
function p.parse(frame)
local a = string.gsub(frame.args[1],"(&amp;)(%w)([^&\n]+)", "<test span style=\"color: " .. tostring(p.test("%2")) .. ";\">"  .. "%3" .. "<test span>")
local a = string.gsub(frame.args[1],"(&amp;)(%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",