Module:tln-conj: Difference between revisions

Nehster9 (talk | contribs)
No edit summary
Nehster9 (talk | contribs)
mNo edit summary
(2 intermediate revisions by the same user not shown)
Line 141: Line 141:
     ["ᠨ"] = "n",
     ["ᠨ"] = "n",
     ["ᠴ"] = "č",
     ["ᠴ"] = "č",
     ["ᠶ"] = "y"
     ["ᠶ"] = "y",
    ["ᠳ"] = "d"
}
}


Line 158: Line 159:
local function make_cell(form)
local function make_cell(form)
     return "<div style='text-align:center;'>"
     return "<div style='text-align:center;'>"
         .. "[[" .. form .. "]]"
         .. "[[Contionary:" .. form .. "|" .. form .. "]]"
         .. "<br /><span style='color:#777777; font-size:90%;'>"
         .. "<br /><span style='color:#777777; font-size:90%;'>"
         .. romanize(form)
         .. romanize(form)
Line 166: Line 167:
local function combine(stem, ending)
local function combine(stem, ending)


     if mw.ustring.match(stem, "ᠨᠶ$") and
     if mw.ustring.match(stem, "$") and
       mw.ustring.match(ending, "^ᠢ") then
       mw.ustring.match(ending, "^ᠢ") then


Line 203: Line 204:
     local text =
     local text =
         '{| class="wikitable mw-collapsible mw-collapsed"\n'
         '{| class="wikitable mw-collapsible mw-collapsed"\n'
         .. '|+ Conjugation of [[' .. title .. ']] (<span style="color:#777777;">' .. romanize(title) .. '</span>)\n'
         .. '|+ Conjugation of [[Contionary:' .. title .. '|' .. title .. ']] (<span style="color:#777777;">' .. romanize(title) .. '</span>)\n'


         ----------------------------------------------------------------
         ----------------------------------------------------------------