Module:minitoc

local concat = table.concat local insert = table.insert

local L2_list = mw.loadData("Module:headword/data").page.L2_list

local export = {}

function export.main(frame) local L2s_len, main, pre = L2_list.n	for i = 1, L2s_len do		local L2, t = L2_list[i] if L2 == "Translingual" or L2 == "English" then pre = pre or {} t = pre else main = main or {} t = main end insert(t, "" .. L2 .. " ") end return frame:extensionTag("templatestyles", "", {src="Module:minitoc/styles.css"}) .. "Languages (" .. L2s_len .. ") " .. (pre and concat(pre, " • ") .. (main and " " or "") or "") .. (main and concat(main, " • ") or "") .. " Page categories  " end

return export