Module:Higher education task force test: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
(5 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 yesno = require('Module:Yesno')
 
 
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 132 ⟶ 134:
local demo_page = parent_args.demo_page
local on_template_page = false
local lang = mw.getLanguage(cfg.language)
local current_title = mw.title.getCurrentTitle()
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 '')
 
Line 175 ⟶ 177:
end
end
 
 
 
 
 
Line 194 ⟶ 199:
 
local i=copiedinitialise(args, raw_args)
local a=p.printtab(argsraw_args)
return i..a
end