Module:MediaWiki:Talkpageheader

local p = {} p.main = function(frame) local args = require('Module:Arguments').getArgs(frame) local tptext = '' local pageTitle = args[1] and mw.title.new(args[1]) or mw.title.getCurrentTitle local out = '' local text = frame:preprocess('') if not mw.ustring.find(text, 'id="talkheader"') then out = out .. '\n' end return frame:preprocess(out) end return p