Module:Higher education task force test: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 2:
local yesNo = require("Module:Yesno")
local getArgs = require("Module:Arguments").getArgs
--local banner = require("Module:Higher_education_task_force_test2")
--local banner = require("Module:WikiProject_banner")
local p = {}
 
Line 121:
end
 
 
local copiedinitialise = function(args, raw_args, inactive_status)
 
---------------------------
-- Initialise arguments -- this function copied from WikiProject banner ---
---------------------------
local yesno = require('Module:Yesno')
 
local copiedinitialise = function(args, raw_args, inactive_status)
local frame = mw.getCurrentFrame()
local parent_args = getArgs(frame, {parentOnly = true})
Line 130 ⟶ 134:
local demo_page = parent_args.demo_page
local on_template_page = false
local sandbox-- = '/sandbox' -- BE SURE TO COMMENT OUT this definition when deploying to live
local cfg = mw.loadData('Module:WikiProject banner/config' .. (sandbox or ''))
local lang = mw.getLanguage(cfg.language)
local current_title = mw.title.getCurrentTitle()
local auxiliary = cfg.auxiliary_module .. (sandbox or '')
 
 
local banner_name = mw.title.new(args.BANNER_NAME or 'Template:WikiProject ' .. (args.PROJECT or 'PROJECT'))
if not demo_page then
Line 166 ⟶ 177:
end
end
 
 
 
 
 
Line 185 ⟶ 199:
 
local i=copiedinitialise(args, raw_args)
local a=p.printtab(argsraw_args)
return i..a
end