Module:rad-stem/templates: Difference between revisions

m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
mNo edit summary
Line 1,709: Line 1,709:
for i, j in pairs(pp) do
for i, j in pairs(pp) do
if type(j) == "string" then
if not (table_type == "intr" and i == "rpst") then
table.insert(review, "* <code>" .. string.upper(i) .. "</code>: '''" .. j .. "'''" .. endings[i])
if type(j) == "string" then
elseif type(j) == "table" then
table.insert(review, "* <code>" .. string.upper(i) .. "</code>: '''" .. j .. "'''" .. endings[i])
for k, l in ipairs(j) do
elseif type(j) == "table" then
local temp = "* <code>" .. string.upper(i) .. "[" .. k .. "]</code>: '''" .. l.word .. "'''" .. endings[i]
for k, l in ipairs(j) do
if l.note then temp = temp .. " (" .. l.note .. ")" end
local temp = "* <code>" .. string.upper(i) .. "[" .. k .. "]</code>: '''" .. l.word .. "'''" .. endings[i]
table.insert(review, temp)
if l.note then temp = temp .. " (" .. l.note .. ")" end
table.insert(review, temp)
end
end
end
end
end