Module:Higher education task force: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 31:
end
 
-- Takes an input string "r" in the form "|a=b" (no spaces around the =) used in templates and adds it to the table
function p.tab2arg(trable,r)
local t = mw.text.split(r, "=", true, true) -- Split by comma, trim whitespace, remove empty strings
Line 39 ⟶ 40:
end
 
-- Adds an element to a table (syntactic sugar)
 
function p.ma1(frame,s1,s2)
frame[s1]=s2
end
 
--[[ pulls out our specially named parameter from the list of template-like args, and expands
it into the appropriate task force table entries
]]--
function p.fudgeTaskforceParameters(frame)
local args = getArgs(frame, { parentFirst = true })
Line 72 ⟶ 76:
end
 
-- More or less a wrapper for WikiProject Banner with some argument sweetening
 
function p.fudge(frame)
local oframe=frame