Module:rad-stem/templates: Difference between revisions

Jump to navigation Jump to search
m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
mNo edit summary
Line 1,723: Line 1,723:
if pp.pl == nil then
if pp.pl == nil then
table.insert(review, "* <code>PL</code> = <code>2S</code>" .. endings['pl'])
if type(pp['2s']) == "table" then
for i,j in ipairs(pp['2s']) do
local temp = "* <code>PL[" .. i .. "]</code>: '''" .. j['word'] .. "'''" ..  endings['pl'] .. " (<code>2S[" .. i .. "]</code>" .. endings['pl'] .. ")"
if j['note'] then temp = temp .. " (" .. j['note'] .. ")" end
table.insert(review, temp)
end
elseif type(pp['2s']) == "string" then
table.insert(review, "* <code>PL</code>: '''" .. pp['2s'] .. "'''" .. endings['pl'] .. " (<code>2S</code>" .. endings['pl'] .. ")")
end
end
end
if pp.depers == nil then
if pp.depers == nil then
table.insert(review, "* <code>DEPERS</code> = <code>2S</code>")
if type(pp['2s']) == "table" then
for i,j in ipairs(pp['2s']) do
local temp = "* <code>DEPERS[" .. i .. "]</code>: '''" .. j['word'] .. "''' (<code>2S[" .. i .. "]</code>)"
if j['note'] then temp = temp .. " (" .. j['note'] .. ")" end
table.insert(review, temp)
end
elseif type(pp['2s']) == "string" then
table.insert(review, "* <code>DEPERS</code>: '''" .. pp['2s'] .. "''' (<code>2S</code>)")
end
end
end
if pp.imp == nil then
if pp.imp == nil then
Line 1,738: Line 1,754:
else
else
for i,j in ipairs(pp.a) do
for i,j in ipairs(pp.a) do
local temp = "* <code>IMP[" .. i .. "]</code> = <code>A[" .. i .. "]</code>"
local temp = "* <code>IMP[" .. i .. "]</code> = '''" .. j['word'] .. "''' (<code>A[" .. i .. "]</code>)"
if j['note'] then temp = temp .. " (" .. j['note'] .. ")" end
if j['note'] then temp = temp .. " (" .. j['note'] .. ")" end
table.insert(review, temp)
table.insert(review, temp)
Line 1,747: Line 1,763:
table.insert(review, "* <code>IMP</code>: '''" .. mw.ustring.gsub(pp.a, "va$", "ja") .. "'''")
table.insert(review, "* <code>IMP</code>: '''" .. mw.ustring.gsub(pp.a, "va$", "ja") .. "'''")
else
else
table.insert(review, "* <code>IMP</code> = <code>A</code>")
table.insert(review, "* <code>IMP</code>: '''" .. pp.a .. "''' (<code>A</code>)")
end
end
end
end

Navigation menu