Content deleted Content added
No edit summary |
No edit summary |
||
(10 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 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 parent_args = args_module.getArgs(frame, {parentOnly = true})▼
▲local copiedinitialise = function(args, raw_args, inactive_status)
local frame = mw.getCurrentFrame()
local category = parent_args.category or args.category or true
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 165 ⟶ 177:
end
end
Line 184 ⟶ 199:
local i=copiedinitialise(args, raw_args)
local a=p.printtab(
return i..a
end
|