Documentation for this module may be created at Module:Sandbox/Uanfala/glt-maintenance/doc

local p = {}
local data = mw.loadData( 'Module:Interlinear/data' )
local article,expansion, exneg, amb="","","", ""

s='{| class="wikitable sortable"\n!Abbreviation !! Tooltip !! Wiki article !! Ambiguous !! Exclude negation \n|-\n'

c=1

function p.print_data()
	for abbr, ta in pairs(data.abbreviations) do
		if not ta.wikipage or ta.wikipage == "" then article=""
		else article = "[[" .. ta.wikipage .. "|" .. ta.wikipage .. "]]" end
		if ta.ExcludeNegation then exneg="yes"
		else exneg="" end
		if ta.ambiguous then amb="yes"
		else amb="" end
		if ta.expansion then expansion=ta.expansion
		else expansion="" end
		s = s .. " || " .. abbr .. " || " .. expansion .. " ||"
		.. article .. " ||" .. amb .. " ||" .. exneg ..  "\n|-\n"
		c = c +1
	end
	return s .. "|}\n<b>Total:" .. c .. "</b>"
end

return p
--return p