Module:Redirect category printworthiness
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