Module:gloss grid: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 31: Line 31:
-- build split IPA row
-- build split IPA row
mw.logObject(data)
if data.IPAs and #data.IPAs > 0 then
if data.IPAs ~= nil and data.IPAs ~= {} then
build("<tr>")
build("<tr>")
for i = 1, term_count do
for i = 1, term_count do
Line 55: Line 54:
-- build gloss row
-- build gloss row
if data.glosses ~= nil and data.glosses ~= {} then
if data.glosses and #data.glosses > 0 then
build("<tr>")
build("<tr>")
for i = 1, term_count do
for i = 1, term_count do
Line 68: Line 67:
-- build split translation row
-- build split translation row
if data.translations ~= nil and data.translations ~= {} then
if data.translations and #data.translations > 0 then
build("<tr>")
build("<tr>")
for i = 1, term_count do
for i = 1, term_count do