Content deleted Content added
No edit summary |
No edit summary |
||
Line 53:
taskforcesStr = args["HETF_TASKFORCES_TO_EXPAND"]
if not taskforcesStr then
return "
end
Line 74:
frame.args=trable
return frame
end
function p.fudgeTaskforceCategories(frame)
local args = getArgs(frame, { parentFirst = true })
local taskforcesStr = ""
taskforcesStr = args["HETF_TASKFORCES_TO_EXPAND"]
if not taskforcesStr then
return ""
end
local cat=""
local taskforceCodes = mw.text.split(taskforcesStr, ",", true, true) -- Split by comma, trim whitespace, remove empty strings
local tfCounter = 1
local trable=args
for _, code in ipairs(taskforceCodes) do
local tfData = p._main({code})
if tfData then
cat = cat .. "[[Category:"..tfData.name.."]]"
tfCounter = tfCounter + 1
end
end
return cat
end
Line 82 ⟶ 106:
local ret=banner.main(frame)
ret=ret ..
return ret
|