10,735
edits
TheNightAvl (talk | contribs) mNo edit summary |
TheNightAvl (talk | contribs) (Begun table formatting) |
||
Line 3: | Line 3: | ||
local m_stem = require("Module:rad-stem") | local m_stem = require("Module:rad-stem") | ||
local m_parameters = require("Module:parameters") | local m_parameters = require("Module:parameters") | ||
Line 30: | Line 29: | ||
return temp | return temp | ||
end | |||
function rad_link(word) | |||
return require("Module:links").full_link{ | |||
term = word, | |||
language = m_languages.get_by_code("rad") | |||
} | |||
end | |||
function rad_IPA(word) | |||
local IPA = require("Module:rad-IPA").generate{ | |||
word, | |||
"format", | |||
"nolarge" | |||
} | |||
return "<span style=\"color:dimgrey\">" .. IPA .. "</span>" | |||
end | end | ||
Line 39: | Line 54: | ||
local adj_broken_e = "" | local adj_broken_e = "" | ||
if adj then | if adj then | ||
adj_broken = break_adj(adj) | adj_broken = args['adjbreak'] or break_adj(adj) | ||
adj_broken_e = mw.ustring.gsub(adj_broken, "(uș)$", "ûș") | adj_broken_e = mw.ustring.gsub(adj_broken, "(uș)$", "ûș") | ||
end | end | ||
return | local format_table = {} | ||
local function add(code) | |||
table.insert(format_table, code) | |||
end | |||
local decl_type = { | |||
["C"] = "heavy", | |||
["CH"] = "spirant", | |||
["VH"] = "spirant", | |||
["V"] = "light", | |||
["G"] = "semi-light" | |||
} | |||
add("<table class=\"mw-collapsible mw-collapsed wikitable inflection table\" style=\"text-align: center\">") | |||
add("<tr>") | |||
add("<th colspan=\"4\">Declension of <i>" .. stems.nom .. "</i> (" .. decl_type[stems['type']] .. ") </th>") | |||
add("</tr>") | |||
add("</table>") | |||
return table.concat(format_table) | |||
end | end | ||