Module:labels: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 75: Line 75:
local data = m_labeldata.labels[label] or {}
local data = m_labeldata.labels[label] or {}
if data.track then
require("Module:debug").track("labels/label/" .. label)
end
--[=[
--[=[
Line 100: Line 96:
local lang_code = lang:getCode()
local lang_code = lang:getCode()
if not data.languages[lang_code] then
if not data.languages[lang_code] then
require("Module:debug").track("labels/incorrect-language")
mw.log("incorrect language in label template " .. lang_code .. ":" .. label)
mw.log("incorrect language in label template " .. lang_code .. ":" .. label)
if alias and label ~= alias then
if alias and label ~= alias then
require("Module:debug").track("labels/redirect-undone")
mw.log("redirect undone in label template " .. lang_code .. ":" .. label .. " > " .. alias)
mw.log("redirect undone in label template " .. lang_code .. ":" .. label .. " > " .. alias)
label = alias
label = alias

Navigation menu