Module:rad-stem/templates: Difference between revisions

Jump to navigation Jump to search
m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
mNo edit summary
Line 1,769: Line 1,769:
if type(pp['2s']) == "table" then
if type(pp['2s']) == "table" then
for i,j in ipairs(pp['2s']) do
for i,j in ipairs(pp['2s']) do
local temp = "* <code>DEPERS[" .. i .. "]</code>: '''" .. j['word'] .. "''' (<code>2S[" .. i .. "]</code>)"
local temp = "* <code>DEPERS[" .. i .. "]</code>: '''" .. mw.ustring.gsub(j['word'], "nv$", "nu") .. "''' (<code>2S[" .. 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)
end
end
elseif type(pp['2s']) == "string" then
elseif type(pp['2s']) == "string" then
table.insert(review, "* <code>DEPERS</code>: '''" .. pp['2s'] .. "''' (<code>2S</code>)")
table.insert(review, "* <code>DEPERS</code>: '''" .. mw.ustring.gsub(pp['2s'], "nv$", "nu") .. "''' (<code>2S</code>)")
end
end
end
end

Navigation menu