-------------------------------------------------------------------------Extract From http://lua-users.org/wiki/SplitJoin-----------------------------------------------------------------------------
-- Compatibility: Lua-5.1function split(str, pat) local t = -- NOTE: use in Lua-5.0 local fpat = "(.-)" .. pat local last_end = 1 local s, e, cap = str:find(fpat, 1) while s do if s ~= 1 or cap ~= "" then table.insert(t,cap) end last_end = e+1 s, e, cap = str:find(fpat, last_end) end if last_end <= #str then cap = str:sub(last_end) table.insert(t, cap) end return tend
---------------------------------------------------------------------------------Extract End----------------------------------------------------------------------------------------------------------
function splitIn2(streen) flag = true for i in string.gmatch(streen, "[^:]+") do if flag then var1 = i flag = false else var2 = i end end return var1, var2end
function splitIn4(streen) flag1 = true flag2 = true flag3 = true for i in string.gmatch(streen, "[^:]+") do if flag1 then var1 = i flag1 = false elseif flag2 then var2 = i flag2 = false elseif flag3 then var3 = i flag3 = false else var4 = i end end return var1, var2, var3, var4end
local p =
function p.headerRender(frame) -- Attempting to remove the key from the table frame args, Unsuccessful attempt lookie_here = frame.args['color'] if lookie_here
tostring(sectionHeader) then styling = styling..'background-color: gray;' -- returner = returner..'gray' else styling = styling..'background-color: white;' -- returner = returner..'white' end if i ~= 'color' then returner = returner..'
' returner = returner..sectionHeader returner = returner..'' end -- headerBgColor = nil end -- for i, j in pairs(mw.title.getCurrentTitle) do -- returner = returner..tostring(i)..tostring(j)..'Herehere' -- end -- mw.title.getCurrentTitle.subpageText.. returner = returner..'' return returnerendreturn p