Module:Process header
Appearance
Documentation for this module may be created at Module:Process header/doc
require('strict')
local p = {}
local getArgs = require('Module:Arguments').getArgs
local construct_header = require('Module:Header structure').construct_header
function p._process_header(args)
args.header_class = 'wst-process-header ws-header ws-noexport noprint'
args.main_class = 'processheadertemplate'
args.main_title = tostring(mw.html.create('span')
:addClass('wst-header-title-text')
:wikitext(args.title or mw.title.getCurrentTitle().subpageText))
if args.section then
args.main_title = args.main_title .. ' ' .. args.section
end
args.notes_class = 'process_notes'
local stylesheet = tostring(mw.html.create('div'):addClass('ws-noexport'):wikitext(mw.getCurrentFrame():extensionTag('templatestyles', '', {src = 'Process header/styles.css'})))
return stylesheet .. construct_header(args)
end
function p.process_header(frame)
return p._process_header(getArgs(frame))
end
return p