local p = {}; function p.get(frame) local text = mw.title.new(frame.args[1] or mw.title.getCurrentTitle()):getContent() or ''; local header = frame.args[2] or ''; local trues = frame.args[3] or ''; local falses = frame.args[4] or ''; if string.match(text, '= *' .. header .. ' *=') then return trues; else return falses; end end return p