Module:labels: Difference between revisions

m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
mNo edit summary
Line 35: Line 35:
end
end
l_id = l_data.aliases[l_id] or mw.ustring.gsub(l_id, "(\")([^\"]+)(\")", "</i>[[%2#" .. language.name .. "|%2]]<i>")
l_id = l_data.aliases[l_id] or mw.ustring.gsub(l_id, "(\")([^\"]+)(\")", "</i>[[%2#" .. language.name .. "|%2]]<i>") -- replaces "word" with [[word#LANG|word]]
local label = l_data.labels[l_id]
local label = l_data.labels[l_id]
if i > 1 then
if i > 1 then