Module:labels: Difference between revisions

m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
mNo edit summary
Line 31: Line 31:
local label = l_data.labels[l_id]
local label = l_data.labels[l_id]
if i > 1 then
if i > 1 then
local conjunctions = {"with", "and", "or"}
local conjunctions = {["with"] = true, ["and"] = true, ["or"] = true}
if conjunctions[labels[i]] or conjunctions[labels[i+1]] then
if conjunctions[labels[i]] or conjunctions[labels[i+1]] then
skip_comma = true
skip_comma = true