Jump to content

Module:IPAc-en/data

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Mr. Stradivarius (talk | contribs) at 05:57, 17 June 2015 (write tooltip-data-processing code). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

-- This module processes data for [[Module:IPAc-en]]. It is intended to be
-- loaded with mw.loadData.

local function makeTooltips()
	local oldTooltips = require('Module:IPAc-en/tooltips')
	local newTooltips = {}
	for k, old in pairs(oldTooltips) do
		local new = {}
		new.label = old.label
		new.tooltip = old.tooltip
		newTooltips[k] = new
		for i, alias in ipairs(old.aliases) do
			newTooltips[alias] = new
		end			
	end
	return newTooltips
end

return {tooltips = makeTooltips()}