सामग्री पर जाएँ

मॉड्यूल:akk-decl-noun/table

विक्षनरी से

"इस मॉड्यूल हेतु प्रलेख मॉड्यूल:akk-decl-noun/table/doc पर बनाया जा सकता है"

local export = {}
local links = require("Module:links")
local lang = require("Module:languages").getByCode("akk")


function export.render(cun, rom, gender, note) 
	for key, val in pairs(cun) do
		cun[key] = links.full_link({
			term = rom[key],
			alt  = val,
			lang = lang
		})
	end
	return 
		'{| class="inflection-table vsSwitcher autocollapsed" data-toggle-category="inflection" style="background:#FF; text-align:center; border: 0.5px solid #CCC;"'..
		'\n|- style="background: #dedede"'..
		'\n! class="vsToggleElement" style="text-align: center; width:20em" colspan="5" | Declension'..
		'\n|- class="vsHide"'..
		'\n! style="background-color:#dedede; min-width: 5em" colspan="1" |'..gender..
		'\n! style="background-color:#dedede; min-width: 6em" |singular'..
		'\n! style="background-color:#dedede; min-width: 6em" |dual'..
		'\n! style="background-color:#dedede; min-width: 6em" |plural'..
		'\n|- class="vsHide"'..
		'\n! style="background-color:#cdcdcd; min-width: 5em" rowspan="2"  | Nominative'..
		'\n| style="background-color:#fdfdfd; font-size: 80%;" |'..cun["nom.sg"]..
		'\n| style="background-color:#fdfdfd; font-size: 80%;" |'..cun["nom.du"]..
		'\n| style="background-color:#fdfdfd; font-size: 80%;" |'..cun["nom.pl"]..
		'\n|- class="vsHide"'..
		'\n| style="background-color:#fdfdfd; color:#888888;" |'..rom["nom.sg"]..
		'\n| style="background-color:#fdfdfd; color:#888888;" |'..rom["nom.du"]..
		'\n| style="background-color:#fdfdfd; color:#888888;" |'..rom["nom.pl"]..
		'\n|- class="vsHide"'..
		'\n! style="background-color:#cdcdcd; min-width: 5em" rowspan="2"  | Genitive'..
		'\n| style="background-color:#fdfdfd; font-size: 80%;" |'..cun["gen.sg"]..
		'\n| style="background-color:#fdfdfd; font-size: 80%;" |'..cun["gen.du"]..
		'\n| style="background-color:#fdfdfd; font-size: 80%;" |'..cun["gen.pl"]..
		'\n|- class="vsHide"'..
		'\n| style="background-color:#fdfdfd; color:#888888;" |'..rom["gen.sg"]..
		'\n| style="background-color:#fdfdfd; color:#888888;" |'..rom["gen.du"]..
		'\n| style="background-color:#fdfdfd; color:#888888;" |'..rom["gen.pl"]..
		'\n|- class="vsHide"'..
		'\n! style="background-color:#cdcdcd; min-width: 5em" rowspan="2"  | Accusative'..
		'\n| style="background-color:#fdfdfd; font-size: 80%;"|'..cun["acc.sg"]..
		'\n| style="background-color:#fdfdfd; font-size: 80%;"|'..cun["gen.du"]..
		'\n| style="background-color:#fdfdfd; font-size: 80%;"|'..cun["gen.pl"]..
		'\n|- class="vsHide"'..
		'\n| style="background-color:#fdfdfd; color:#888888;" |'..rom["acc.sg"]..
		'\n| style="background-color:#fdfdfd; color:#888888;" |'..rom["gen.du"]..
		'\n| style="background-color:#fdfdfd; color:#888888;" |'..rom["gen.pl"]..
		'\n|- class="vsHide"'..
		'\n! style="background-color:#cdcdcd; min-width: 5em" rowspan="2"  | Construct state'..
		'\n| style="background-color:#fdfdfd; font-size: 80%;" |'..cun.bound..
		'\n|- class="vsHide"'..
		'\n| style="background-color:#fdfdfd; color:#888888;" |'..rom.bound..
		'\n|- class="vsHide"'..
		'\n| style="font-size:85%; text-align:left; background-color:#fdfdfd" colspan="4" |'.. note..
		'\n|}'
end



return export