Module:Higher education task force: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 22:
 
--[[------------------------< getCanonicalCode >---------------------------------
Gets the canonical code for a task force. return tfData.canonicalCode
 
]]----------------------------------------------------------------------------
function p.getCanonicalCode(frame)
local args = getArgs(frame, { parentFirst = true })
local tfData = p._main(args)
if tfData then
return tfData.canonicalCode
end
return nil
end
 
function p.main(frame)
local args = getArgs(frame, { parentFirst = true })
return p._main(args)
end
function p.hello(frame)
return "|MAIN_TEXT = feline"
end
 
Line 95 ⟶ 85:
return str[1]
end
 
function p.tester(frame)
local str=""
str = str .. "hello"
local r="|IMAGE_LEFT =Graduation hat.svg"
local t = mw.text.split(r, "=", true, true) -- Split by comma, trim whitespace, remove empty strings
local x = mw.text.split(t[1], "|", true, true) -- Split by comma, trim whitespace, remove empty strings
return t[2]
end