Module:rad-stem/templates: Difference between revisions

m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
mNo edit summary
Line 80: Line 80:
local decl_type = {
local decl_type = {
["C"] = "heavy",
["C"] = "heavy",
["CH"] = "spirant",
["CH"] = "heavy spirant",
["VH"] = "spirant",
["VH"] = "light spirant",
["V"] = "light",
["V"] = "light",
["G"] = "semi-light"
["G"] = "semi-light"
}
}
local type_name = decl_type[stems['type']]
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\">")
add("<tr>")
add("<tr>")
th("Declension of <i>" .. stems.nom .. "</i> (" .. decl_type[stems['type']] .. ") &nbsp", 1, 4)
th("Declension of <i>" .. stems.nom .. "</i> (" .. type_name .. ") &nbsp", 1, 4)
add("</tr>")
add("</tr>")
add("</table>")
add("</table>")
add("<includeonly>[[Category:Radestrian " .. type_name .. " stems]]</includeonly>")
return table.concat(format_table)
return table.concat(format_table)