Module:rad-stem/templates: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 2,476: Line 2,476:
if not ((table_type == "intr" or table_type == "impers") and i == "rpst") and not nonforms[i] and not ((i == "apst" or i == "rpst" or i == "pl" or i == "vnoun" or i == "1s") and table_type == "impers") then
if not ((table_type == "intr" or table_type == "impers") and i == "rpst") and not nonforms[i] and not ((i == "apst" or i == "rpst" or i == "pl" or i == "vnoun" or i == "1s") and table_type == "impers") then
if type(j) == "string" then
if type(j) == "string" then
if mw.ustring.find(j, "%*") then
j = "*" .. mw.ustring.gsub(j, "%*", "")
end
table.insert(review, "* <code>" .. string.upper(i) .. "</code>: '''" .. j .. "'''" .. endings[i])
table.insert(review, "* <code>" .. string.upper(i) .. "</code>: '''" .. j .. "'''" .. endings[i])
elseif type(j) == "table" then
elseif type(j) == "table" then
for k, l in ipairs(j) do
for k, l in ipairs(j) do
if mw.ustring.find(l.word, "%*") then
l.word = "*" .. mw.ustring.gsub(l.word, "%*", "")
end
local temp = "* <code>" .. string.upper(i) .. "[" .. k .. "]</code>: '''" .. l.word .. "'''" .. endings[i]
local temp = "* <code>" .. string.upper(i) .. "[" .. k .. "]</code>: '''" .. l.word .. "'''" .. endings[i]
if l.note then temp = temp .. " (" .. l.note .. ")" end
if l.note then temp = temp .. " (" .. l.note .. ")" end