Jump to content

Module:Sandbox/MSGJ: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
+space
No edit summary
Line 3: Line 3:


p.main = function()
p.main = function()
local template_code = mw.title.new('Template:WikiProject Medicine/sandbox'):getContent()
local classmask = require('Module:WikiProject banner/sandbox').class_mask
local match = string.match(
local title = mw.title.new('WandaVision/FAQ')
class = classmask('', title.talkPageTitle, false, 'non-existent page')
template_code,
'importance' .. '%s*=%s*{{{([^|}]*)'
)
if not match then match = 'nil' end
local match2 = string.match(
template_code,
'%|%s*' .. 'importance' .. '%s*=%s*{{{([^|}]*)'
)
if not match2 then match2 = 'nil' end
return match, match2
end
end



Revision as of 13:55, 17 May 2024

require('strict')
local p = {}

p.main = function()
	local classmask = require('Module:WikiProject banner/sandbox').class_mask
	local title = mw.title.new('WandaVision/FAQ')
	class = classmask('', title.talkPageTitle, false, 'non-existent page')
end

return p