Module:Redirect category printworthiness

From Irregularpedia
Jump to navigation Jump to search

Documentation for this module may be created at Module:Redirect category printworthiness/doc

local p = {}

function p.syn(frame)
	local base = mw.title.getCurrentTitle().baseText
	local n = '\n'
	local code =
	"{{Redirect category shell|"..n..
	"{{"..base.."}}"..n..
	"{{R printworthy}}"..n..
	"}}"..n..
	""..n..
	"{{Redirect category shell|"..n..
	"{{"..base.."}}"..n..
	"{{R unprintworthy}}"..n..
	"}}"
	local args = { ['lang'] = 'wikitext',
				   ['code'] = code }
	return frame:expandTemplate{ title = 'Syntaxhighlight', args = args }	
end

return p