RuneScape Wiki
mNo edit summary
Tag: sourceedit
mNo edit summary
Tag: sourceedit
Line 28: Line 28:
 
function p.replace(frame)
 
function p.replace(frame)
 
local args = frame.args[1]
 
local args = frame.args[1]
args = args:gsub('%[%s[:?Category:(.-)%|.-%]%],? ?','[[Category:%1]]\n')
+
args = args:gsub('%[%[:?Category:(.-)%|.-%]%],? ?','[[Category:%1]]\n')
 
args = args:gsub('_',' ')
 
args = args:gsub('_',' ')
 
return args
 
return args

Revision as of 17:58, 19 December 2015

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

--<pre>
local p = {}

local pref = { 'Cruel', 'Dangerous',
'Infamous',
'Monstrous',
'Notorious',
'Powerful',
'Renowned' }

local suff = { 'of Death',
'of Doom',
'of Fear',
'of Pain',
'of Peril',
'of Suffering' }

function p.main()
local ret = {''}
for _, v in ipairs(pref) do
for _, w in ipairs(suff) do
table.insert(ret,string.format('[[%s %s %s]]',v,'Wyvern',w))
end
end
return table.concat(ret,'\n*')
end

function p.replace(frame)
local args = frame.args[1]
args = args:gsub('%[%[:?Category:(.-)%|.-%]%],? ?','[[Category:%1]]\n')
args = args:gsub('_',' ')
return args
end

return p