local export = {}
local temp = {}
local temp_d = nil
local extra = {}
local extra_d = nil
local single_subs = {
= "и",
= "и",
= "и",
= "и",
= "И",
= "И",
= "И",
= "И",
= "е",
= "Е",
= "ф",
= "Ф",
}
local old_to_new = function(s)
s = mw.ustring.gsub(s, ".", single_subs)
s = mw.ustring.gsub(s, "ъи", "ы")
s = mw.ustring.gsub(s, "", "Ы")
s = mw.ustring.gsub(s, "$", "")
s = mw.ustring.gsub(s, "%f", "")
return s
end
function export.gen(frame)
local args = frame:getParent().args
local realword = (args ~= "" and args) or mw.title.getCurrentTitle().subpageText
args = args or realword
args = args or (args ~= "" and args) or "noun"
args = mw.ustring.gsub(args, "^.", mw.ustring.upper, 1)
args = args or old_to_new(realword)
args = mw.ustring.gsub(args or "", "!", "|")
args = mw.ustring.gsub(args or "", "!", "|")
args = mw.ustring.gsub(args or "", "!", "|")
-- local f = extra] or extra_d; f(args)
return require("Module:string utilities").format(temp] or temp_d, args)
end
temp = [===[==Russian==
===Adjective===
{\op}{\op}ru-adj|{word}{h}{\cl}{\cl}
# {\op}{\op}ru-pre-reform|{new}{\cl}{\cl}
====Declension====
{\op}{\op}ru-adj-old|{word}{d}{\cl}{\cl}]===]
temp = [===[==Russian==
===Adverb===
{\op}{\op}ru-adv|{word}{h}{\cl}{\cl}
# {\op}{\op}ru-pre-reform|{new}{\cl}{\cl}]===]
temp = [===[==Russian==
===Proper noun===
{\op}{\op}ru-proper noun+|old=1{p}|{word}{d}{h}{\cl}{\cl}
# {\op}{\op}ru-pre-reform|{new}{\cl}{\cl}
====Declension====
{\op}{\op}ru-noun-table|old=1{p}|{word}{d}|n=sg{\cl}{\cl}]===]
temp = [===[==Russian==
===Noun===
{\op}{\op}ru-noun+|old=1{p}|{word}{d}{h}{\cl}{\cl}
# {\op}{\op}ru-pre-reform|{new}{\cl}{\cl}
====Declension====
{\op}{\op}ru-noun-table|old=1{p}|{word}{d}{\cl}{\cl}]===]
temp = [===[==Russian==
===Verb===
{\op}{\op}ru-verb|{word}{h}{\cl}{\cl}
# {\op}{\op}ru-pre-reform|{new}{\cl}{\cl}]===]
temp_d = [===[==Russian==
==={Pos}===
{\op}{\op}head|ru|{pos}|head={word}{h}{\cl}{\cl}
# {\op}{\op}ru-pre-reform|{new}{\cl}{\cl}]===]
extra = function(args)
_, _, args, args = mw.ustring.find(args, "^(.*)(.)$")
if args then
args = args
args = "|" .. args .. args
end
if args then
args = args
end
args = args or (args ~= "" and args) or ""
end
extra = extra
extra = function(args)
_, _, args, args = mw.ustring.find(args, "^(.-)(?)$")
args = args or (args ~= "" and args) or ""
if args ~= "" and args ~= "Ь" then
args = "ь"
end
end
extra_d = function(args)
end
return export