Module:IPAc-en/data: Difference between revisions
Appearance
Content deleted Content added
write tooltip-data-processing code |
(No difference)
|
Revision as of 05:57, 17 June 2015
![]() | This module is rated as ready for general use. It has reached a mature form and is thought to be relatively bug-free and ready for use wherever appropriate. It is ready to mention on help pages and other Wikipedia resources as an option for new users to learn. To reduce server load and bad output, it should be improved by sandbox testing rather than repeated trial-and-error editing. |
![]() | This module is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing. |
![]() | This Lua module is used on approximately 53,000 pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them. |
![]() | This module's documentation is missing, inadequate, or does not accurately describe its functionality or the parameters in its code. Please help to expand and improve it. |
-- 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()}