Module:GetRandomCreature: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
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?", "{{Color | %2 | %3}}")
local a = string.gsub(frame.args[1],"(&)(%w)([^&])\n?", "{{Color | %2 | %3}}")
     return a;
     return a;
end
end
return p
return p

Revision as of 21:31, 15 June 2019

Documentation for this module may be created at Module:GetRandomCreature/doc

local p = {}
function p.parse(frame)
local a = string.gsub(frame.args[1],"(&)(%w)([^&])\n?", "{{Color | %2 | %3}}")
    return a;
end
return p