Module:minitoc

Hello, you have come here looking for the meaning of the word Module:minitoc. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:minitoc, but we will also tell you about its etymology, its characteristics and you will know how to say Module:minitoc in singular and plural. Everything you need to know about the word Module:minitoc you have here. The definition of the word Module:minitoc will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:minitoc, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

This module provides the backend for {{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)
	require("Module:parameters").process(frame:getParent().args, {})
	local L2s_len, main, pre = L2_list.n
	for i = 1, L2s_len do
		local L2, t = L2_list
		if L2 == "Translingual" or L2 == "English" then
			pre = pre or {}
			t = pre
		else
			main = main or {}
			t = main
		end
		insert(t, "]")
	end
	
	return frame:extensionTag("templatestyles", nil, {src="Module:minitoc/styles.css"}) .. "<div class=\"minitoc NavFrame\" data-toggle-category=\"table of contents\" data-minitoc-length=\"" .. L2s_len .. "\"><div class=\"NavHead\">Languages (" .. L2s_len .. ")</div><div class=\"NavContent\">" .. (pre and concat(pre, " •&nbsp;") .. (main and "<hr>" or "") or "") .. (main and concat(main, " •&nbsp;") or "") .. "<hr>]</div></div><div data-toc-length=\"" .. L2s_len .. "\">__TOC__</div>"
end

return export