Module:rad-stem/templates: Difference between revisions

Jump to navigation Jump to search
m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
mNo edit summary
Line 187: Line 187:
end
end
end
end
local nom = get_forms("nom", stems.nom, adj_broken_e)
local nom = ""
local nom_cite = get_forms("nom", stems.nom, adj_broken_e, "", true)
local nom_cite = ""
if table_type == "adj" then
nom = get_forms("nom", stems.nompl, adj_broken_e)
nom_cite = get_forms("nom", stems.nompl, adj_broken_e, "", true)
else
nom = get_forms("nom", stems.nom, adj_broken_e)
nom_cite = get_forms("nom", stems.nom, adj_broken_e, "", true)
end
local gen = get_forms("gen", stems.gen, adj_broken, "k")
local gen = get_forms("gen", stems.gen, adj_broken, "k")
local dat = get_forms("dat", stems.dat, adj, "a")
local dat = get_forms("dat", stems.dat, adj, "a")
Line 212: Line 219:


add("<table class=\"mw-collapsible mw-collapsed wikitable inflection table\" style=\"text-align: center\">")
add("<table class=\"mw-collapsible mw-collapsed wikitable inflection table\" style=\"text-align: center\">")
if table_type == "sgpl" then
if table_type == "sgpl" or table_type == "adj" then
th("Declension of <i>" .. nom_cite .. "</i> (" .. type_name .. ") &nbsp;", 1, 4)
th("Declension of <i>" .. nom_cite .. "</i> (" .. type_name .. ") &nbsp;", 1, 4)
add("<tr>")
add("<tr>")
Line 222: Line 229:
th("nominative", 1, 2)
th("nominative", 1, 2)
if nom == nompl then
if nom == nompl then
td(nom, 1, 2)
td(nompl, 1, 2)
else
else
td(nom)
td(nom)

Navigation menu