Module:labels: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 23: Line 23:
l_id = l_data.aliases[l_id] or l_id
l_id = l_data.aliases[l_id] or l_id
local label = l_data.labels[l_id]
local label = l_data.labels[l_id]
if i > 1 then
ret = ret .. (skip_comma and " " or ", ")
end
if label == null then
if label == null then
ret = ret .. ((skip_comma or i == 1) and " " or ", ") .. l_id
ret = ret .. l_id
skip_comma = false
skip_comma = false
else
else
ret = ret .. ((skip_comma or i == 1) and " " or ", ") .. make_label(l_id, label)
ret = ret .. make_label(l_id, label)
skip_comma = label["omit_comma"] or false
skip_comma = label["omit_comma"] or false
end
end

Navigation menu