Module:otk-decl

Hello, you have come here looking for the meaning of the word Module:otk-decl. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:otk-decl, but we will also tell you about its etymology, its characteristics and you will know how to say Module:otk-decl in singular and plural. Everything you need to know about the word Module:otk-decl you have here. The definition of the word Module:otk-decl will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:otk-decl, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.


local export = {}

local full_link = require("Module:links").full_link
local lang = require("Module:languages").getByCode("otk")
local sc = require("Module:scripts").getByCode("Orkh")

local function link(term, tr)
	return full_link({
		term = term,
		lang = lang,
		sc = sc,
		tr = tr
	})
end

local wikicode = mw.getCurrentFrame():expandTemplate {
	title = 'inflection-table-top',
	args = {
		title = 'Declension of %s',
		palette = 'grey',
		tall = 'yes',
		class = "tr-alongside"
	}
}

wikicode = wikicode .. [=[
! 
! singular
! definite plural
|-
! nominative
| %s
| %s
|-
! dative
| %s
| %s
|-
! accusative
| %s
| %s
|-
! locative
| %s
| %s
|-
! ablative
| %s
| %s
|-
! instrumental
| %s
| %s
|-
! equative
| %s
|
|-
! directive
| %s
|
|-
! similative
| %s 
|
]=]

wikicode = wikicode .. mw.getCurrentFrame():expandTemplate {
	title = 'inflection-table-bottom',
}

function export.show(frame)
	
	local params = {
		 = { required = true },
		 = { required = true },
		 = { required = true },
		 = {},
		 = {},
	}

	local args = require("Module:parameters").process(frame:getParent().args, params, nil)
	
	local lemma = args.pagename or mw.loadData("Module:headword/data").pagename
	local f = args:lower() == "f" -- "f" (front) or "b" (back)
	local a = args:lower() == "a" -- "a" or "u"
	local c = args:lower() == "c" -- "c" (consonant) or "v" (vowel)
	local tr = args
	

	return string.format(wikicode,
		link(lemma, "-"), -- title
		link(lemma), -- nominative singular
		link((f and (lemma .. "𐰠𐰼")) or (lemma .. "𐰞𐰺")), -- nominative plural
		link(f and (lemma .. "π°šπ°€") or (lemma .. "𐰴𐰀")), -- dative singular
		link(f and (lemma .. "π° π°Όπ°šπ°€") or (lemma .. "π°žπ°Ίπ°΄π°€")), -- dative plural
		link(f and (c and (a and (lemma .. "𐰃𐰏") or (lemma .. "𐰇𐰏")) or (lemma .. "𐰏")) or (c and (a and (lemma .. "𐰃𐰍") or (lemma .. "𐰆𐰍")) or (lemma .. "𐰍"))), -- accusative singular
		link(f and (lemma .. "𐰠𐰼𐰏") or (lemma .. "𐰞𐰺𐰍")), -- accusative plural
		link(f and (lemma .. "𐰓𐰀") or (lemma .. "𐰑𐰀")), -- locative singular
		link(f and (lemma .. "𐰠𐰼𐰓𐰀") or (lemma .. "π°žπ°Ίπ°‘π°€")), -- locative plural
		link(f and (lemma .. "𐰓𐰃𐰀") or (lemma .. "𐰑𐰃𐰣")), -- ablative singular
		link(f and (lemma .. "𐰠𐰼𐰓𐰀") or (lemma .. "π°žπ°Ίπ°‘π°£")), -- ablative plural
		link(f and (c and (a and (lemma .. "𐰃𐰀") or (lemma .. "𐰇𐰀")) or (lemma .. "𐰀")) or (c and (a and (lemma .. "𐰃𐰣") or (lemma .. "𐰆𐰣")) or (lemma .. "𐰣"))), -- instrumental singular
		link(f and (lemma .. "𐰠𐰼𐰀") or (lemma .. "𐰞𐰺𐰣")), -- instrumental plural
		link(lemma .. "𐰲𐰀"), -- equative singular
		link(f and (lemma .. "𐰏𐰼𐰇") or (lemma .. "𐰍𐰺𐰆")), -- directive singular 1
		link(f and (lemma .. "π° π°˜π°‡") or (lemma .. "π°žπ°–π°†")) -- similative singular
	)
end

return export