Module:grc-adj-decl : param : 2κλιτα - 3κλιτα : τεκμηρίωση
Κατηγορία:Πρότυπα κλίσης επιθέτων και μετοχών (αρχαία ελληνικά) - Κατηγορία:Έλεγχος κλίσης
Παράρτημα:Επίθετα και μετοχές (αρχαία ελληνικά) :  : - Κατηγορία:Επίθετα (αρχαία ελληνικά) - Κατηγορία:Μετοχές (αρχαία ελληνικά)
Βοήθεια:Πρότυπα κλίσης επιθέτων (αρχαία ελληνικά) - Module:grc-articles - Module:grk-stems



-- πολυτονικά, αρχαία ελληνικά ΕΠΙΘΕΤΑ και ΜΕΤΟΧΕΣ - κλίση για 3 γένη
-- polytonic ancient greek adjectives/participles with 3 genders - 2021.06. Sarri.greek
-- Also for Hellenistic Koine with |grc-koi=1 learned Mediaeval Greek |gkm=1 καθαρεύουσα |kath=1
--[=[
* INSTRUCTIONS for modules see bottom of page /  ΟΔΗΓΙΕΣ γι' αυτό το module, βλ. τέλος σελίδας
EDITOR CANNOT change the words (as we do with [[Module:el-nouns-decl]])
EDITOR can only ADD extra forms, παρατηρήσεις, τίτλος.

Sources:
* Smyth adjectives http://www.perseus.tufts.edu/hopper/text?doc=Perseus%3Atext%3A1999.04.0007%3Apart%3D2%3Achapter%3D13%3Asection%3D20
* schoolbook http://ebooks.edu.gr/ebooks/v/html/8547/2340/Grammatiki-Archaias-Ellinikis_Gymnasiou-Lykeiou_html-apli/index_02_09.html

EDITOR_MUST_DEFINE extra parameters at the following templates:
* δίχρ= 3#απάτωρ 3#άρρην 3#μείζων 3#σώφρων participles: #3λύσας #3λύων
* 2#μέγιστος param θηλυ=η+α OR θηλυ=α+η for exceptional variations

EXTERNAL_LINKS in args['σημ'] at #3βαθύς 3#λύων for the adjective [[ἄκων]] 3#εύελπις(like NOUNS#πατρίς)
PROBLEMS - TO DO
	* Perhaps aricles for each gender separately: αοε-αρσ, αοε-θηλ, αοε-ουδ
]=]--
--[=[
STRUCTURE - ΔΟΜΗ
	1) required, stems - προαπαιτούμενα required, δημιουργία θεμάτων
	2) links & style
	3) line 150 the TABLE
	4) line 1425 categories κατηγορίες
	5) line 1635 general functions at /param page with all parameters 
		γενικές κλίσεις decl στο /param με όλες τις παραμέτρους
	notes - σημειώσεις
]=]--




export = {} -- DO NOT write local export. It does not work.


--------------------------------------------------------------------------
-- 1. STEM PRODUCTION, REQUIRED MODULES / ΔΗΜΙΟΥΡΓΙΑ ΘΕΜΑΤΩΝ, MODULES   --
--------------------------------------------------------------------------

languages = mw.loadData("Module:Languages") -- to choose grc, gkm, kath, greek languages with same script

module_path = 'Module:grc-adj-decl'

m_2 = require(module_path .. "/2") 
-- cannot call them all directly from here. They call each other:
-- here we call m_2 = require(module_path .. "/2") -- 2nd&1st declension functions
		-- m_2 calls: m_3 = require(module_path .. "/3") -- 3rd&1st declension functions

-- do not name 'local': it does not work for subpages
m_stems = require("Module:grk-stems") -- stem production: 
	--functions:
		--word0 = no accent, word1 = accent on ultima,  word2 = accent on penultima
		--hasaccent = tells us if it has an accent
		
m_data = require("Module:grk-stems/data") -- for vowels, vowels+tonos etc
-- m_data.vowel_perispomeni = '[ᾶᾷἆᾆἇᾇῆῇἦᾖἧᾗῖἶἷῗῦὖὗῧῶῷὦᾦὧᾧἎᾎἏᾏἮᾞἯᾟἾἿὟὮᾮὯᾯ]' -- vowel+perispomeni
-- m_data.brachy_oxeia = '[έὲἔἒἕἓόὸὄὂὅὃΈῈἜἚἝἛΌῸὌὊὍὋ]' -- brachy+okseia or vareia
-- m_data.macron_oxeia = '[ήῄὴῂἤᾔἢᾒἥᾕἣᾓώῴὼῲὤᾤὢᾢὥᾥὣᾣΉῊἬᾜἪᾚᾚἭᾝἫᾛῺὬᾬὪᾪὭᾭὫᾫ]' -- macron+okseia or vareia
-- m_data.dichronon_oxeia = '[άᾴὰᾲἄᾄἂᾂἅᾅἃᾃίὶἴἲἵἳΐῒύὺὔὒὕὓΰῢΆᾺἌᾌἊᾊᾊἍᾍἋᾋΊῚἼἺἽἻΎῪὝὛ]' -- dichronon+okseia or vareia
	-- oops! need subscript too [[ἀπᾴδων]] DONE
-- m_data.diphthong_tonos = '[αΑεΕηΗοΟ][ίὶῖἴἲἶἵἳἷΊῚἼἺἾἽἻἿύὺῦὔὒὖὑὕὓὗΎῪὝὛὟ]' -- diphthong+tonos (okseia, vareia, perispomeni) NOT dialytics ΐῒῗΰῢῧ 

-- articles: USE at ARTICLES section: require ('Module:grc-articles').articles (args)
	-- DO NOT USE here,  m_art = require ('Module:grc-articles').articles (args)
	-- and DO NOT change at all any args for articles

-- call the page /param (it has all parameters) at bottom of this page


--------------------------------------------------------------------------
--             2. links & styles / σύνδεσμοι & στυλ                     --
--------------------------------------------------------------------------

-- =========== standard colours LightSteelBlue =  #b0c4de 70%-75%-GREY-95%)  GREY c3
-- borders
c_border = '#c9d7e8' -- same as c3 or stronger: same as c_1
c_bord = '#f4f4f4' -- or '#eeeeee' -- inner lighter borders
c_bordR = '' -- right border: if there are more columns, it is soft c_bord. If it is the end, it is c_border
-- background colours
c_extra = '#b0c4de' -- for extratitle
c_2 = '#93aed2' -- ROW title1 MAIN, number names, and border for title2 if it exists
c_1 = '#a5bcd9' -- title2 subtitles, genders of adjectives and border for title1
c_3 = '#e3e5e8' -- = from Grey --Ligthsteelblue was '#c9d7e8' -- title3, all the subtitles 
c_4 = '#edf2f7' -- background for notes 

-- font colours
c_ending = '#eb0000'			-- is DeepPink. For wikitext, template [[Πρότυπο:χκ]], never bold
c_stem = '#002000'				-- For wikitext, template [[Πρότυπο:χθ]], never bold
c_black = '#000000'				-- for subtitles
c_cccccc = '#cccccc'			-- not used here (possible for dubious forms)
c_green = '#008000'				-- not used here (possibly for infix)

-- =============== styles
-- for table style, cf. the beginning of fulltable

font_cell = "font-family:; letter-spacing:1px;"				-- tested, rejected: Palatino linotype; font-family:Times; 
fontsize_cell = "font-size:105%;"		-- tested: font-size:115%; (too big)

--  apply colours - εφαρμογή χρωμάτων
ending_color = function(suffix)
    return '<span style="color:' .. c_ending ..'; font-weight:normal;">' .. suffix .. '</span>'
end

stem_color = function(thema)
    return '<span style="color:' .. c_stem ..'; font-weight:normal;">' .. thema .. '</span>'
end

infix_color = function(infix) -- this is not an inifix. It is part of 2nd stem.
    return '<span style="color:' .. c_stem ..'; font-weight:normal;">' .. infix .. '</span>'
end

black_color = function(black_thing)
    return '<span style="color:' .. c_black ..'; font-weight:normal;">' .. black_thing .. '</span>'
end

	
-- ====================== Links for the words in the table
-- create_link = function(page, text) -- see at /param page


-- it controls stem and ending
linkcontrol2 = function(thema, suffix)
	thema = thema or '' -- needed when calling χχθ in functions like 'θάλασσα'
	suffix = suffix or ''	-- this was needed after introducing params for WORDS like οεΛ, γεΛ, etc.
	return create_link(thema .. suffix, stem_color(thema) ..  ending_color(suffix))
end

-- it controls stem, infix of extra stem-letters and ending
linkcontrol3 = function(thema, infix, suffix)
	thema = thema or '' -- need those, otherwise the function does not work at subpages
	suffix = sufffix or ''
	inffix = infffix or ''
	return create_link(thema .. infix .. suffix, stem_color(thema) ..  infix_color(infix) .. ending_color(suffix))
end


-- =========== Errors -- use it with writing: if blahblah then return errorhere('xxxxxx') end
errorhere = function(errstring)
    return '<div class="error">' .. errstring .. '</div>[[Κατηγορία:Σελίδες με σφάλματα στο πρότυπο κλίσης επιθέτων (αρχαία ελληνικά)]]'
end
-- if ambiguous dichrona vowels are not specified as macron or as brachy or as ?
-- όταν τα δίχρονα δεν έχουν προσωδία δίχρ=μ ή δίχρ=β ή δίχρ=?
-- use it with: if blahblah then return error_dichr end
error_dichr = function(errordichrstring)
	page = mw.title.getCurrentTitle()
	page.name = page.text:match( "^%s*(.-)%s*$" )
	if page.namespace == 0 then	-- Categories work only in MAIN namespace	
	return '<div style="font-size:15px; color:red;">* Κλίση: Θα πρέπει να ορίσουμε το δίχρονο φωνήεν με |δίχρ=β (βραχύ) ή |δίχρ=μ (μακρό).<br>Αν δεν υπάρχουν πληροφορίες, |δίχρ=?</div>'
	.. '[[Κατηγορία:Λήμματα χωρίς προσωδία σε δίχρονο φωνήεν (αρχαία ελληνικά)]]'	
	else
	return '<div style="font-size:15px; color:red;">* Κλίση: Θα πρέπει να ορίσουμε το δίχρονο φωνήεν με |δίχρ=β (βραχύ) ή |δίχρ=μ (μακρό).<br>Αν δεν υπάρχουν πληροφορίες, |δίχρ=?</div>'
	end
end


--------------------------------------------------------------------------
--                        3. TABLE / ΠΙΝΑΚΑΣ                            --
--------------------------------------------------------------------------

fulltable = function(args)
-- table: -- note: in some browsers, border is not visible. Need border="1"
local float = args['float'] or ''
	if args['float'] == 'left' then
table_style1 = 'style="clear:left; float:left; position:relative; margin: 0px 1.5em 0.5em 0px; background:#ffffff; border:1px solid' .. c_border ..'; text-align:left;" rules="none" border="1" cellpadding="3" cellspacing="0"'
	elseif args['float'] == 'center' then
table_style1 = 'style="margin-left:auto; margin-right:auto; margin-bottom:0.5em; background:#ffffff; border:1px solid' .. c_border ..'; text-align:center;" rules="none" border="1" cellpadding="3" cellspacing="0"'	
	else
table_style1 = 'style="clear:right; float:right; margin-left:0.5em; margin-bottom:0.5em;background:#ffffff; border:1px solid' .. c_border ..'; text-align:right;" rules="none" border="1" cellpadding="3" cellspacing="0"'
	end
-- check [[δισμύριοι]]
	
-- row for titles of dialects etc
	extratitle_str = args['mod-τίτλος'] or '' 
--	args['lang_title'] = args['lang_title'] or '' -- Used at /param page for LANGUAGES for CATEGORIES
	if args['lang_title'] ~= '' and args['lang_title'] ~=  nil then
		args['mod-τίτλος'] = args['lang_title'] .. '<br>' .. args['mod-τίτλος']
	end


-- =============== LANGUAGES for categories and notes
-- see /param page

-- =============== OTHER PARAMs
-- OTHER
	local columns = args['cols'] or ''		-- number of columns: 1+2 for each gender x 2 or x3
	local dichr = args['δίχρ'] or ''		-- for dichronous (either macron or brachy δίχρ=β is brachy)

	cat_pos = args['μέρος λόγου'] or 'Επίθετα' -- pos: Part of Speech

-- typos, klisi
	typos = args['τύπος'] or args['κατ'] or ''
	local klisi = args['κλίση'] or ''
		if args['κλίση'] == '1' then klisi = '1' end -- δεν υπάρχουν
		if args['κλίση'] == '2' then klisi = '2&1' end
		if args['κλίση'] == 'δεύτερη' then klisi = '2' end -- for δικατάληκτα -ος, -ος, -ον
		if args['κλίση'] == '2αττ' then klisi = '2αττ' end
		if args['κλίση'] == '3' then klisi = '3&1' end -- 3η κλίση (αρσ, ουδ) 2η θηλυκό (αναφέρεται)
		if args['κλίση'] == 'τρίτη' then klisi = '3' end -- for δικατάληκτα
		if args['κλίση'] == 'ανώμαλα' then klisi = 'ανώμαλα' end
		if args['κλίση'] == '0' then klisi = 'ανώμαλα' end

	local stem_line = ''
	local stem_cell = ''

-- row for gender subtitles
	local gender = '' -- this is not working properly ??
-- 1st  column subtitle	
	local gender_masc_str = ''
	if args['αθ'] == '1' then
		args['αρσενικό'] = '[[αρσενικό|' .. black_color('αρσενικό') .. ']] & [[θηλυκό|' .. black_color('θηλυκό') .. ']]' 
		else
		args['αρσενικό'] = '[[αρσενικό|' .. black_color('αρσενικό') .. ']]' 
	end
	
	-- 2nd column subtitle
	local gender_fem_str = ''
	args['θηλυκό'] = '[[θηλυκό|' .. black_color('θηλυκό') .. ']]' 
	
	-- 3rd column subitlte
	local gender_neu_str = ''
	args['ουδέτερο'] = '[[ουδέτερο|' .. black_color('ουδέτερο') .. ']]' 
	
-- Σημείωση: οι παράμετροι .... = '' χρειάζονται αν ΔΕΝ υπάρχει το /param

	-- numbers
	local sg_title_str = '' -- singularis title string / ενικός
	local pl_title_str = '' -- pluralis  title string / πληθυντικός
	local dualrow = ''				-- not always
	local du_title_str = ''			-- dualis title / δυϊκός
	-- cases singularis
    local nom_sg_masc_str = '' -- nominativus singularis mascul. / ονομαστική ενικός αρσενικό
    local nom_sg_fem_str = '' -- of feminine
    local nom_sg_neu_str = '' -- of neuter
    local nom_sg_common_str = '' -- masc+fem same
    local gen_sg_masc_str = '' -- genitivus / γενική
    local gen_sg_fem_str = ''
    local gen_sg_neu_str = ''
    local dat_sg_masc_str = '' -- dativus / δοτική
    local dat_sg_fem_str = ''
    local dat_sg_neu_str = ''
    local acc_sg_masc_str = '' -- accusativus / αιτιατική
    local acc_sg_fem_str = ''
    local acc_sg_neu_str = ''
    local voc_sg_masc_str = '' -- vocativus / κλητική
    local voc_sg_fem_str = ''
    local voc_sg_neu_str = ''
    -- cases pluarlis
    local nom_pl_masc_str = '' -- nominativus pluarlis mascul. / ονομαστική πληθυντικός αρσενικό
    local nom_pl_fem_str = '' -- of feminine
    local nom_pl_neu_str = '' -- of neuter
    local nom_pl_common_str = '' -- masc+fem same
    local gen_pl_masc_str = '' -- genitivus / γενική
    local gen_pl_fem_str = ''
    local gen_pl_neu_str = ''
    local dat_pl_masc_str = '' -- dativus / δοτική
    local dat_pl_fem_str = ''
    local dat_pl_neu_str = ''
    local acc_pl_masc_str = '' -- accusativus / αιτιατική
    local acc_pl_fem_str = ''
    local acc_pl_neu_str = ''
    local voc_pl_masc_str = '' -- vocativus / κλητική
    local voc_pl_fem_str = ''
    local voc_pl_neu_str = ''
    -- cases dualis
    local nom_du_masc_str = '' -- nominativus+acc+voc singularis mascul. / ονομαστική+αιτ+κλητ δυϊκός αρσενικό
    local nom_du_fem_str = '' -- of feminine
    local nom_du_neu_str = '' -- of neuter
    local nom_du_common_str = '' -- masc+fem same
    local gen_du_masc_str = '' -- genitivus+datives / γενική+δοτικη
    local gen_du_fem_str = ''
    local gen_du_neu_str = ''
--[=[ CREATING PROBLEM  function or expression too complex near   ! style="background: 
	-- articles 
    local a_nom_sg_masc_str = ''
    local a_nom_pl_masc_str = ''
    local a_nom_du_masc_str = ''
    local a_nom_sg_fem_str = ''
    local a_nom_pl_fem_str = ''
    local a_nom_du_fem_str = ''
    local a_nom_sg_neu_str = ''
    local a_nom_pl_neu_str = ''
    local a_nom_du_neu_str = ''
    local a_gen_sg_masc_str = ''
    local a_gen_pl_masc_str = ''
    local a_gen_du_masc_str = ''
    local a_gen_sg_fem_str = ''
    local a_gen_pl_fem_str = ''
    local a_gen_du_fem_str = ''
    local a_gen_sg_neu_str = ''
    local a_gen_pl_neu_str = ''
    local a_gen_du_neu_str = ''
    local a_dat_sg_masc_str = ''
    local a_dat_pl_masc_str = ''
    local a_dat_sg_fem_str = ''
    local a_dat_pl_fem_str = ''
    local a_dat_sg_neu_str = ''
    local a_dat_pl_neu_str = ''
     -- du not needed
    local a_acc_sg_masc_str = ''
    local a_acc_pl_masc_str = ''
    local a_acc_sg_fem_str = ''
    local a_acc_pl_fem_str = ''
    local a_acc_sg_neu_str = ''
    local a_acc_pl_neu_str = ''
    -- du not needed
    local a_voc_sg_masc_str = ''
    local a_voc_pl_masc_str = ''
    local a_voc_sg_fem_str = ''
    local a_voc_pl_fem_str = ''
    local a_voc_sg_neu_str = ''
    local a_vcc_pl_neu_str = ''
    -- du not needed
]=]--

-- ARTICLES  -- This section was placed in a declension module and is moved here. 
	-- vocatives are empty. (The ὦ!	is placed outside, as it is not an article - Compare to [[Module:el-nouns-decl]] where ε! is withdrawn)
	if args['ακε'] ~= '' and args['ακε'] ~= nil then args['ακε'] = args['ακε'] else args['ακε'] = '' end
	if args['ακπ'] ~= '' and args['ακπ'] ~= nil then args['ακπ'] = args['ακε'] else args['ακπ'] = '' end
	args['ακε2'] = ''
	args['ακπ2'] = ''
-- OMIT ARTICLES (the nbsp for better spacing of the cells)
	if args['άρθρα'] == '-' then
		args['αοε'] = '&nbsp;&nbsp;&nbsp;&nbsp;'
		args['αγε'] = ''
		args['αδε'] = ''
		args['ααε'] = ''
		args['ακε'] = ''
		args['αοπ'] = '&nbsp;&nbsp;&nbsp;&nbsp;'
		args['αγπ'] = ''
		args['αδπ'] = ''
		args['ααπ'] = ''
		args['ακπ'] = ''
		args['αοδ'] = '&nbsp;&nbsp;&nbsp;&nbsp;'
		args['αγδ'] = ''
	end
-- =============== singularia & pluralia (also for other Parts of speech)
-- for one number only (some Αριθμητικά pluralia like [[μύριοι]]) (difficult to have a special table)
	-- but easier solution: just empty cells (the module functions take care of the forms)
	-- see below, at CELLS by COLUMNS
	
-- ======================= genders: default masculine, feminine and neuter columns

    local has_fem = true		--(args['θηλ'] ~= nil) It HAS a separate column for feminines
    if args['θηλ'] == "-" then has_fem = false else args['θηλ'] = '1' end	 -- masc+fem share the same column
		-- probably possible to have 1st col: αθ, 2nc: Θηλ, 3rd ουδ
		-- now designed as: 1st col. masc, 2nd col: both feminine forms, 3rd col neu.
    local has_masc = true
    local has_neu = true

-- NUMBERS ================================================================
    local has_dual = true
	if args['δυ'] == '-' or args['καθ'] == '1' or args['kath'] == '1' then
		has_dual = false
	end
-- number of columns for full rows ?????? may write e.g. columns = '10' and it is ok
	-- for CASES  masc fem neu
	if args['θηλ'] ~= '-'
		then columns = '7'
	-- for CASES masc+fem neu
	else columns = '5'
	end

-- ======================= notes
    local paratirisi = ''			-- notes by editor
    local note = args['mod-σημ'] or  ''		-- standard notes by Template
    local appendix = ''				-- standard link to the Appendix [[Παράρτημα:Επίθετα και μετοχές (αρχαία ελληνικά)]]
	local append = ''				-- link to gourp, category and specific paradigm at Appendix

 -- group is a super-umbrella category if needed for similar declensions   
	local group = args['ομάδα']	or ''    	-- at functions
    	if group ~= '' and group ~= nil then
    		group = " [[:Κατηγορία:" .. cat_pos .. " που κλίνονται όπως η ομάδα '" .. group .. "' (" .. lang_name .. ")|ομάδα '" .. group .. "']], " 
    		--  if MAINSPACE see ομάδα added at ΚΑΤΗΓΟΡΙΕΣ
    	end
    	-- NEED to WRITE AGAIN at CATEGORIES under if mainspace and under nocat

-- cat_decl does ONE umbrella category for all the 'typos' categories in it, whatever PoS, whatever language (grc, koine)
    local cat_decl = args['κατηγορία κλίσης']	or ''    	--  at functions 
	if args['κατηγορία κλίσης'] == "-" or args['κατηγορία κλίσης'] == '' or args['κατηγορία κλίσης'] == nil then 
		cat_decl_str = '' -- control cat:
		
	elseif args['κατηγορία κλίσης'] ~= "-" and args['κατηγορία κλίσης'] ~= '' and args['κατηγορία κλίσης'] ~= nil then 
    	--write it aτ notes & add the category at ΚΑΤΗΓΟΡΙΕΣ under mainspace and uner nocat

    	if args['κατηγορία κλίσης'] == 'ανώμαλα' then
		  	cat_decl_str = " [[:Κατηγορία:Επίθετα ανώμαλα (αρχαία ελληνικά)|Κατηγορία '" .. cat_decl .. "']]"
    	else
    	-- in neuter singular, standard language
			cat_decl_str = " [[:Κατηγορία:" .. cat_pos .. " με κλίση όπως το '" .. cat_decl .. "' (" .. 'αρχαία ελληνικά' .. ")|Κατηγορία '" .. cat_decl .. "']]"
    	end
    end

-- όπως = a link to Appendix's clitic paradigm
    local as_in = args['όπως'] or ''
    	if as_in ~= '' and as_in ~= nil then
    		if args['κλίση'] == 'ανώμαλα' or args['κλίση'] == '0' then
    		as_in = ' όπως «[[Παράρτημα:Επίθετα και μετοχές (αρχαία ελληνικά)#' .. 'ανώμαλα' .. '|' .. as_in .. ']]»'
    		elseif args['κλίση'] == '2αττ' or args['κλίση'] == '2' or args['κλίση'] == 'δεύτερη' then
    		as_in = ' όπως «[[Παράρτημα:Επίθετα και μετοχές (αρχαία ελληνικά)/2#' .. as_in .. '|' .. as_in .. ']]»'
    		elseif args['κλίση'] == '3' or args['κλίση'] == 'τρίτη' then
    		as_in = ' όπως «[[Παράρτημα:Επίθετα και μετοχές (αρχαία ελληνικά)/3#' .. as_in .. '|' .. as_in .. ']]»'	
    		end
    	end

-- append WRITE the first part of the appendix line
	if args['κλίση'] == 'ανώμαλα' or args['κλίση'] == '0' then
		append = '[[Παράρτημα:Επίθετα και μετοχές (αρχαία ελληνικά)#ανώμαλα|ανώμαλη κλίση]], ' .. group .. cat_decl_str .. as_in .. ' - '
	elseif args['κλίση'] == '2αττ' then
		append = '[[Παράρτημα:Επίθετα και μετοχές (αρχαία ελληνικά)/2#αττικόκλιτα|2η κλίση - αττικόκλιτα]], ' .. group .. cat_decl_str .. as_in .. ' - '
	elseif args['κλίση'] == 'δεύτερη' then
		append = '[[Παράρτημα:Επίθετα και μετοχές (αρχαία ελληνικά)/2|2η κλίση]], ' .. group .. cat_decl_str .. as_in .. ' - '
	elseif args['κλίση'] == '2' then
		append = '[[Παράρτημα:Επίθετα και μετοχές (αρχαία ελληνικά)/2|2η&1η κλίση]], ' .. group .. cat_decl_str .. as_in .. ' - '	
	elseif args['κλίση'] == 'τρίτη' then
		append = '[[Παράρτημα:Επίθετα και μετοχές (αρχαία ελληνικά)/3|3η κλίση]], ' .. group .. cat_decl_str .. as_in .. ' - '
	elseif args['κλίση'] == '3' then
		append = '[[Παράρτημα:Επίθετα και μετοχές (αρχαία ελληνικά)/3|3η&1η κλίση]], ' .. group .. cat_decl_str .. as_in .. ' - '
	end

-- stem line MUST be placed at Section Rows
--[=[
    	if as_in == '' or as_in == nil then append = '' else
    		cat_pos = args['μέρος λόγου'] or 'Επίθετα'
    		if args['κλίση'] == 'ανώμαλα' or args['κλίση'] == '0' then
    		append = '[[Παράρτημα:Επίθετα και μετοχές (αρχαία ελληνικά)/ανώμαλα|ανώμαλη κλίση]],' .. group 
    		.. ' [[:Κατηγορία:' .. cat_pos .. " που κλίνονται όπως το '" .. typos .. "' (" .. lang_name 
    		.. ')|Κατηγορία]] όπως «[[Παράρτημα:Επίθετα και μετοχές (αρχαία ελληνικά)/ανώμαλα#' .. as_in .. '|' .. as_in .. ']]» - '

     		elseif args['κλίση'] == '3' then -- femnines always 2nd, refer 3&1
    		append = '[[Παράρτημα:Επίθετα και μετοχές (αρχαία ελληνικά)/3|3&1η κλίση]],' .. group 
    		.. ' [[:Κατηγορία:' .. cat_pos .. " που κλίνονται όπως το '" .. typos .. "' (" .. lang_name 
    		.. ')|Κατηγορία]] όπως «[[Παράρτημα:Επίθετα και μετοχές (αρχαία ελληνικά)/3#' .. as_in .. '|' .. as_in .. ']]» - '

     		elseif args['κλίση'] == 'τρίτη' then -- δικατάληκτα refer 3
    		append = '[[Παράρτημα:Επίθετα και μετοχές (αρχαία ελληνικά)/3|3η κλίση]],' .. group 
    		.. ' [[:Κατηγορία:' .. cat_pos .. " που κλίνονται όπως το '" .. typos .. "' (" .. lang_name 
    		.. ')|Κατηγορία]] όπως «[[Παράρτημα:Επίθετα και μετοχές (αρχαία ελληνικά)/3#' .. as_in .. '|' .. as_in .. ']]» - '

    		elseif args['κλίση'] == '2αττ' then
    		append = '[[Παράρτημα:Επίθετα και μετοχές (αρχαία ελληνικά)/2#αττικόκλιτα|2η κλίση - αττικόκλιτα]],' .. group 
    		.. ' [[:Κατηγορία:' .. cat_pos .. " που κλίνονται όπως το '" .. typos .. "' (" .. lang_name 
    		.. ')|Κατηγορία]] όπως «[[Παράρτημα:Επίθετα και μετοχές (αρχαία ελληνικά)/2#' .. as_in .. '|' .. as_in .. ']]» - '

     		elseif args['κλίση'] == 'δεύτερη' then -- δικατάληκτα refer 2
    		append = '[[Παράρτημα:Επίθετα και μετοχές (αρχαία ελληνικά)/2|2η κλίση]],' .. group 
    		.. ' [[:Κατηγορία:' .. cat_pos .. " που κλίνονται όπως το '" .. typos .. "' (" .. lang_name 
    		.. ')|Κατηγορία]] όπως «[[Παράρτημα:Επίθετα και μετοχές (αρχαία ελληνικά)/2#' .. as_in .. '|' .. as_in .. ']]» - '
    		else -- klisi  2&1
    		append = '[[Παράρτημα:Επίθετα και μετοχές (αρχαία ελληνικά)/2|2&1η κλίση]],' .. group 
    		.. ' [[:Κατηγορία:' .. cat_pos .. " που κλίνονται όπως το '" .. typos .. "' (" .. lang_name 
    		.. ')|Κατηγορία]] όπως «[[Παράρτημα:Επίθετα και μετοχές (αρχαία ελληνικά)/3#' .. as_in .. '|' .. as_in .. ']]» - '
    		end
    	end
]=]--
--[=[
    	if as_in == '' or as_in == nil then append = ''
    	else
    			cat_pos = args['μέρος λόγου'] or 'Επίθετα'
    			typos = args['τύπος'] or args['τύπος0'] or args['κατ'] or ''
    		if typos == '-' or typos == '' or typos == nil then
    		append = group .. " όπως «[[Παράρτημα:Επίθετα και μετοχές (αρχαία ελληνικά)|" .. as_in .. ']]» - '
    		else
    			
    			if args['κλίση'] == 'ανώμαλα' or args['κλίση'] == '0' then
    		append = '[[Παράρτημα:Επίθετα και μετοχές (αρχαία ελληνικά)/ανώμαλα|ανώμαλη κλίση]] όπως «[[Παράρτημα:Επίθετα και μετοχές (αρχαία ελληνικά)/ανώμαλα#' .. as_in .. '|' .. as_in .. ']]» - '
    			elseif args['κλίση'] == '2αττ' then
    		append = '[[Παράρτημα:Επίθετα και μετοχές (αρχαία ελληνικά)/2#αττικόκλιτα|2 κλίση - αττικόκλιτα]] όπως «[[Παράρτημα:Επίθετα και μετοχές (αρχαία ελληνικά)/2#' .. as_in .. '|' .. as_in .. ']]» - '
    			else -- klisi  2, 3
    		append = '[[Παράρτημα:Επίθετα και μετοχές (αρχαία ελληνικά)/' .. klisi .. '|' .. klisi .. 'όκλιτα]] όπως «[[Παράρτημα:Επίθετα και μετοχές (αρχαία ελληνικά)/' .. klisi .. '#' .. as_in .. '|' .. as_in .. ']]» - '
    			end
    		end
    	end
]=]--

-- ============== note lines / σημείωση παρατήρηση
--## CHECK THIS
-- get 5 columns  (1+4) if masc+fem share one column
if args['θηλ'] == "-" then
	if args['mod-σημ'] ~= '' or args['mod-σημ'] ~= nil then					-- pre-edited notes
    	if not (args['παρατήρηση'] == nil or mw.ustring.len(args['παρατήρηση']) < 1) then
        paratirisi = '|-' .. "\n" .. [=[| colspan="5" align="left" style="background:]=] .. c_4 .. [=[; font-size:80%; line-height:100%;" | ]=]
        paratirisi = paratirisi .. note .. '<br>' .. args['παρατήρηση'] .. "\n"
    	else
        paratirisi = '|-' .. "\n" .. [=[| colspan="5" align="left" style="background:]=] .. c_4 .. [=[; font-size:80%; line-height:100%;" | ]=]
        paratirisi = paratirisi .. note .. "\n"
    	end
    end
	if args['mod-σημ'] == '' or args['mod-σημ'] == nil then
    	if not (args['παρατήρηση'] == nil or mw.ustring.len(args['παρατήρηση']) < 1) then
        paratirisi = '|-' .. "\n" .. [=[| colspan="5" align="left" style="background:]=] .. c_4 .. [=[; font-size:80%; line-height:100%;" | ]=]
        paratirisi = paratirisi .. args['παρατήρηση'] .. "\n"
    	else
    	paratirisi = ''
    	end
    end
	-- appendix
	if args['παράρτημα'] == '-' then appendix = ''
	elseif args['παράρτημα'] ~= '-'  and args['παράρτημα'] ~= '' and args['παράρτημα'] ~= nil  then
        appendix = '|-' .. "\n" .. [=[| colspan="5" align="right" style="text-align:right; background:]=] .. c_4 .. [=[; font-size:70%; line-height:100%;" | ]=]
        appendix = appendix .. append .. args['παράρτημα'] .. "\n"
	else
        appendix = '|-' .. "\n" .. [=[| colspan="5" align="right" style="text-align:right; background:]=] .. c_4 .. [=[; font-size:70%; line-height:100%;" | ]=]
        appendix = appendix .. append .. '[[Παράρτημα:Επίθετα και μετοχές (αρχαία ελληνικά)|<span title="Παράρτημα:Επίθετα & Μετοχές">Παράρτημα:Επίθετα & Μετοχές</span>]]' .. "\n"
    end
else -- get full 7 columns for 1+all genders  
	if args['mod-σημ'] ~= '' or args['mod-σημ'] ~= nil then
    	if not (args['παρατήρηση'] == nil or mw.ustring.len(args['παρατήρηση']) < 1) then
        paratirisi = '|-' .. "\n" .. [=[| colspan="7" align="left" style="background:]=] .. c_4 .. [=[; font-size:80%; line-height:100%;" | ]=]
        paratirisi = paratirisi .. note .. '<br>' .. args['παρατήρηση'] .. "\n"
    	else
        paratirisi = '|-' .. "\n" .. [=[| colspan="7" align="left" style="background:]=] .. c_4 .. [=[; font-size:80%; line-height:100%;" | ]=]
        paratirisi = paratirisi .. note .. "\n"
    	end
    end
	if args['mod-σημ'] == '' or args['mod-σημ'] == nil then
    	if not (args['παρατήρηση'] == nil or mw.ustring.len(args['παρατήρηση']) < 1) then
        paratirisi = '|-' .. "\n" .. [=[| colspan="7" align="left" style="background:]=] .. c_4 .. [=[; font-size:80%; line-height:100%;" | ]=]
        paratirisi = paratirisi .. args['παρατήρηση'] .. "\n"
    	else
    	paratirisi = ''
    	end
    end
	-- appendix
	if args['παράρτημα'] == '-' then appendix = ''
		cat_pos = args['μέρος λόγου'] or 'Επίθετα'
	elseif args['παράρτημα'] ~= '-'  and args['παράρτημα'] ~= '' and args['παράρτημα'] ~= nil  then
        appendix = '|-' .. "\n" .. [=[| colspan="7" align="right" style="text-align:right; background:]=] .. c_4 .. [=[; font-size:70%; line-height:100%;" | ]=]
        appendix = appendix .. append .. args['παράρτημα'] .. "\n"
	else
        appendix = '|-' .. "\n" .. [=[| colspan="7" align="right" style="text-align:right; background:]=] .. c_4 .. [=[; font-size:70%; line-height:100%;" | ]=]
        appendix = appendix .. append .. '[[Παράρτημα:Επίθετα και μετοχές (αρχαία ελληνικά)|<span title="Παράρτημα:Επίθετα & Μετοχές">Παράρτημα:Επίθετα & Μετοχές</span>]]' .. "\n"
    end
end -- close notesrows

    
-- ========== CELLS  ===============================================    
-- extra title string
	if args['mod-τίτλος'] ~= '' and args['mod-τίτλος'] ~= nil then
		extratitle_str =  args['mod-τίτλος'] .. "\n"
	end

-- stem_cell --this is a full row, but it does not come first, it goes UNDER last row
   	if args['θέματα'] ~= '' and args['θέματα'] ~= nil then
   		-- colspan as in columms

        	stem_cell = [=[| style="background:]=] .. c_3 .. [=[; border-right:1px solid ]=] .. c_border .. [=[; ]=] .. font_cell .. fontsize_cell ..
        	[=["  colspan="]=] .. columns .. [=[" align="left" | ]=] .. args['θέματα'] .. "\n"
 
    end -- close stem_cell

    
-- cells by column
    if has_fem and has_masc then -- it always has masc
    	c_bordR = c_border
    	if args['άρθρα'] ~= '-' then
    		if args['αθ'] ~= '1' then
    -- [[μύριοι]]
    			if args['α'] == 'πλ' or args['α2'] == 'πλ' or args['α'] == 'πλδ' or args['α2'] == 'πλδ' then 
    				args['αοε'] = '&nbsp;&nbsp;&nbsp;&nbsp;' args['αγε'] = '' args['αδε'] = ''  args['ααε'] = ''
    			else
		args['αοε'] = create_link('ὁ', stem_color('ὁ'))
		args['αγε'] = create_link('τοῦ', stem_color('τοῦ'))
		args['αδε'] = create_link('τῷ', stem_color('τῷ'))
		args['ααε'] = create_link('τόν', stem_color('τὸν'))
    			end
    			if args['α'] == 'εν' or args['α2'] == 'εν' or args['α'] == 'ενδ' or args['α2'] == 'ενδ' then 
    				args['αοπ'] = '&nbsp;&nbsp;&nbsp;&nbsp;' args['αγπ'] = '' args['αδπ'] = ''  args['ααπ'] = ''
    			else
		args['αοπ'] = create_link('οἱ', stem_color('οἱ'))
		args['αγπ'] = create_link('τῶν', stem_color('τῶν'))
		args['αδπ'] = create_link('τοῖς', stem_color('τοῖς'))
		args['ααπ'] = create_link('τούς', stem_color('τοὺς'))
				end
    		elseif args['αθ'] == '1' then
    			if args['α'] == 'πλ' or args['α2'] == 'πλ' or args['α'] == 'πλδ' or args['α2'] == 'πλδ' then 
    				args['αοε'] = '&nbsp;&nbsp;&nbsp;&nbsp;' args['αγε'] = '' args['αδε'] = ''  args['ααε'] = ''
    			else
		args['αοε'] = create_link('ὁ', stem_color('ὁ')) .. '/' .. create_link('ἡ', stem_color('ἡ'))
		args['αγε'] = create_link('τοῦ', stem_color('τοῦ')) .. '/' .. create_link('τῆς', stem_color('τῆς'))
		args['αδε'] = create_link('τῷ', stem_color('τῷ')) .. '/' .. create_link('τῇ', stem_color('τῇ'))
		args['ααε'] = create_link('τόν', stem_color('τὸν')) .. '/' .. create_link('τήν', stem_color('τὴν'))
    			end
    			if args['α'] == 'εν' or args['α2'] == 'εν' or args['α'] == 'ενδ' or args['α2'] == 'ενδ' then 
    				args['αοπ'] = '&nbsp;&nbsp;&nbsp;&nbsp;' args['αγπ'] = '' args['αδπ'] = ''  args['ααπ'] = ''
    			else
		args['αοπ'] = create_link('οἱ', stem_color('οἱ')) .. '/' .. create_link('αἱ', stem_color('αἱ'))
		args['αγπ'] = create_link('τῶν', stem_color('τῶν'))
		args['αδπ'] = create_link('τοῖς', stem_color('τοῖς')) .. '/' .. create_link('ταῖς', stem_color('ταῖς'))
		args['ααπ'] = create_link('τούς', stem_color('τοὺς')) .. '/' .. create_link('τάς', stem_color('τὰς'))
				end
			end
		end
        gender_masc_str = [=[| style="background:]=] .. c_2 .. [=[; border-right:1px solid ]=] .. c_1 ..
        [=[; font-size:70%; font-style:italic; line-height:100%;" colspan="2" align="center"| ]=] .. args['αρσενικό'] .. "\n"
        a_nom_sg_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="center" | ]=] .. args['αοε'] ..  "\n"
        nom_sg_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['οεΛ-αρσ'] ..  "\n"
        a_gen_sg_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="center" | ]=] .. args['αγε'] ..  "\n"
        gen_sg_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['γεΛ-αρσ'] ..  "\n"
        a_dat_sg_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="center" | ]=] .. args['αδε'] ..  "\n"
        dat_sg_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['δεΛ-αρσ'] ..  "\n"   
        a_acc_sg_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="center" | ]=] .. args['ααε'] ..  "\n"
        acc_sg_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['αεΛ-αρσ'] ..  "\n"
        a_voc_sg_masc_str = [=[| style="]=] .. font_cell .. fontsize_cell ..  
        [=[" align="center" | ]=] .. args['ακε'] ..  "\n"
        voc_sg_masc_str =  [=[| style="border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['κεΛ-αρσ'] ..  "\n"
        
        a_nom_pl_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="center" | ]=] .. args['αοπ'] ..  "\n"
        nom_pl_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['οπΛ-αρσ'] ..  "\n"
        a_gen_pl_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="center" | ]=] .. args['αγπ'] ..  "\n"
        gen_pl_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['γπΛ-αρσ'] ..  "\n"
        a_dat_pl_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="center" | ]=] .. args['αδπ'] ..  "\n"
        dat_pl_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['δπΛ-αρσ'] ..  "\n"  
        a_acc_pl_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="center" | ]=] .. args['ααπ'] ..  "\n"
        acc_pl_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['απΛ-αρσ'] ..  "\n"
        a_voc_pl_masc_str = [=[| style="]=] .. font_cell .. fontsize_cell ..
        [=[" align="center"align="center" | ]=] .. args['ακπ'] ..  "\n"
        voc_pl_masc_str =  [=[| style="border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['κπΛ-αρσ'] ..  "\n"
     
        if has_dual then
    	if args['άρθρα'] ~= '-' then
    			if args['α'] == 'πλ' or args['α2'] == 'πλ' or args['α'] == 'εν' or args['α2'] == 'εν' or args['δυ'] == '-' then 
    				args['αοδ'] = '' args['αγδ'] = ''
    			else
		args['αοδ'] = create_link('τώ', stem_color('τὼ'))
		args['αγδ'] = create_link('τοῖν', stem_color('τοῖν'))
				end
    	end
        a_nom_du_masc_str = [=[| style="border-bottom:1px solid ]=] .. c_bord
        .. [=[; font-size:90%; line-height:100%;" align="center" | ]=]
        .. args['αοδ'] ..  "\n"
        nom_du_masc_str = [=[| style="border-bottom:1px solid ]=] .. c_bord.. [=[; ]=] .. font_cell
        .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; font-size:90%; line-height:100%;" align="left" | ]=]
        .. args['οδΛ-αρσ'] ..  "\n"
        a_gen_du_masc_str = [=[| style="border-bottom:1px solid ]=] .. c_bord.. [=[; ]=] .. font_cell
        .. [=[; font-size:90%; line-height:100%;" align="center" | ]=] 
        .. args['αγδ'] ..  "\n"
        gen_du_masc_str = [=[| style="border-bottom:1px solid ]=] .. c_bord.. [=[; ]=] .. font_cell
        .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; font-size:90%; line-height:100%;" align="left" | ]=] 
        .. args['γδΛ-αρσ'] ..  "\n"
        end
        
    elseif has_fem == false and has_masc == true then
    	c_bordR = c_border
--    	args['αθ'] = '1'
    	if args['άρθρα'] ~= '-' then
    		if args['αθ'] == '1' then
    			if args['α'] == 'πλ' or args['α2'] == 'πλ' or args['α'] == 'πλδ' or args['α2'] == 'πλδ' then 
    				args['αοε'] = '&nbsp;&nbsp;&nbsp;&nbsp;' args['αγε'] = '' args['αδε'] = ''  args['ααε'] = ''
    			else
		args['αοε'] = create_link('ὁ', stem_color('ὁ')) .. '/' .. create_link('ἡ', stem_color('ἡ'))
		args['αγε'] = create_link('τοῦ', stem_color('τοῦ')) .. '/' .. create_link('τῆς', stem_color('τῆς'))
		args['αδε'] = create_link('τῷ', stem_color('τῷ')) .. '/' .. create_link('τῇ', stem_color('τῇ'))
		args['ααε'] = create_link('τόν', stem_color('τὸν')) .. '/' .. create_link('τήν', stem_color('τὴν'))
    			end
    			if args['α'] == 'εν' or args['α2'] == 'εν' or args['α'] == 'ενδ' or args['α2'] == 'ενδ' then 
    				args['αοπ'] = '&nbsp;&nbsp;&nbsp;&nbsp;' args['αγπ'] = '' args['αδπ'] = ''  args['ααπ'] = ''
    			else
		args['αοπ'] = create_link('οἱ', stem_color('οἱ')) .. '/' .. create_link('αἱ', stem_color('αἱ'))
		args['αγπ'] = create_link('τῶν', stem_color('τῶν'))
		args['αδπ'] = create_link('τοῖς', stem_color('τοῖς')) .. '/' .. create_link('ταῖς', stem_color('ταῖς'))
		args['ααπ'] = create_link('τούς', stem_color('τοὺς')) .. '/' .. create_link('τάς', stem_color('τὰς'))
				end
			end
		end
        gender_masc_str = [=[| style="background:]=] .. c_2 .. [=[; border-right:1px solid ]=] .. c_1 ..
        [=[; font-size:70%; font-style:italic; line-height:100%;" colspan="2" align="center"| ]=] .. args['αρσενικό'] .. "\n"
        a_nom_sg_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="center" | ]=] .. args['αοε'] ..  "\n"
        nom_sg_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['οεΛ-αρσ'] ..  "\n"
        a_gen_sg_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="center" | ]=] .. args['αγε'] ..  "\n"
        gen_sg_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['γεΛ-αρσ'] ..  "\n"
        a_dat_sg_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="center" | ]=] .. args['αδε'] ..  "\n"
        dat_sg_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['δεΛ-αρσ'] ..  "\n" 
        a_acc_sg_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="center" | ]=] .. args['ααε'] ..  "\n"
        acc_sg_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['αεΛ-αρσ'] ..  "\n"
        a_voc_sg_masc_str = [=[| style="]=] .. font_cell .. fontsize_cell ..  
        [=[" align="center" | ]=] .. args['ακε'] ..  "\n"
        voc_sg_masc_str = [=[| style="border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['κεΛ-αρσ'] ..  "\n"
        
        a_nom_pl_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="center" | ]=] .. args['αοπ'] ..  "\n"
        nom_pl_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['οπΛ-αρσ'] ..  "\n"
        a_gen_pl_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="center" | ]=] .. args['αγπ'] ..  "\n"
        gen_pl_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['γπΛ-αρσ'] ..  "\n"
        a_dat_pl_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="center" | ]=] .. args['αδπ'] ..  "\n"
        dat_pl_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['δπΛ-αρσ'] ..  "\n"
        a_acc_pl_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="center" | ]=] .. args['ααπ'] ..  "\n"
        acc_pl_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['απΛ-αρσ'] ..  "\n"
        a_voc_pl_masc_str = [=[| style="]=] .. font_cell .. fontsize_cell ..
        [=[" align="center"align="center" | ]=] .. args['ακπ'] ..  "\n"
        voc_pl_masc_str =  [=[| style="border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['κπΛ-αρσ'] ..  "\n"
       
       
		if has_dual then
    	if args['άρθρα'] ~= '-' then
    			if args['α'] == 'πλ' or args['α2'] == 'πλ' or args['α'] == 'εν' or args['α2'] == 'εν' or args['δυ'] == '-' then 
    				args['αοδ'] = '' args['αγδ'] = ''
    			else
		args['αοδ'] = create_link('τώ', stem_color('τὼ'))
		args['αγδ'] = create_link('τοῖν', stem_color('τοῖν'))
				end
    	end
        a_nom_du_masc_str = [=[| style="border-bottom:1px solid ]=] .. c_bord.. [=[; ]=] .. font_cell
        .. [=[; font-size:90%; line-height:100%;" align="center" | ]=] 
        .. args['αοδ'] ..  "\n"
        nom_du_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord.. [=[; ]=] .. font_cell
        .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; font-size:90%; line-height:100%;" align="left" | ]=] 
        .. args['οδΛ-αρσ'] ..  "\n"
        a_gen_du_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord.. [=[; ]=] .. font_cell
        .. [=[; font-size:90%; line-height:100%;" align="center" | ]=] 
        .. args['αγδ'] ..  "\n"
        gen_du_masc_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord.. [=[; ]=] .. font_cell
        .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; font-size:90%; line-height:100%;" align="left" | ]=] 
        .. args['γδΛ-αρσ'] ..  "\n"
        end
    end

    if has_fem then
    	c_bordR = c_border
    	args['θηλ'] = '1'
    	if args['άρθρα'] ~= '-' then
    			if args['α'] == 'πλ' or args['α2'] == 'πλ' or args['α'] == 'πλδ' or args['α2'] == 'πλδ' then 
    				args['αοε'] = '&nbsp;&nbsp;&nbsp;&nbsp;' args['αγε'] = '' args['αδε'] = ''  args['ααε'] = ''
    			else
 		args['αοε'] = create_link('ἡ', stem_color('ἡ'))
		args['αγε'] = create_link('τῆς', stem_color('τῆς'))
		args['αδε'] = create_link('τῇ', stem_color('τῇ'))
		args['ααε'] = create_link('τήν', stem_color('τὴν'))
    			end
    			if args['α'] == 'εν' or args['α2'] == 'εν' or args['α'] == 'ενδ' or args['α2'] == 'ενδ' then 
    				args['αοπ'] = '&nbsp;&nbsp;&nbsp;&nbsp;' args['αγπ'] = '' args['αδπ'] = ''  args['ααπ'] = ''
    			else
		args['αοπ'] = create_link('αἱ', stem_color('αἱ'))
		args['αγπ'] = create_link('τῶν', stem_color('τῶν'))
		args['αδπ'] = create_link('ταῖς', stem_color('ταῖς'))
		args['ααπ'] = create_link('τάς', stem_color('τὰς'))
				end
		end
		
        gender_fem_str = [=[| style="background:]=] .. c_2 .. [=[; border-right:1px solid ]=] .. c_1 ..
        [=[; font-size:70%; font-style:italic; line-height:100%;" colspan="2" align="center"| ]=] .. args['θηλυκό'] .. "\n"
        a_nom_sg_fem_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="center" | ]=] .. args['αοε'] ..  "\n"
        nom_sg_fem_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['οεΛ-θηλ'] ..  "\n"
        a_gen_sg_fem_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="center" | ]=] .. args['αγε'] ..  "\n"
        gen_sg_fem_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['γεΛ-θηλ'] ..  "\n"
        a_dat_sg_fem_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="center" | ]=] .. args['αδε'] ..  "\n"
        dat_sg_fem_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['δεΛ-θηλ'] ..  "\n"   
        a_acc_sg_fem_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="center" | ]=] .. args['ααε'] ..  "\n"
        acc_sg_fem_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['αεΛ-θηλ'] ..  "\n"
        a_voc_sg_fem_str = [=[| style="]=] .. font_cell .. fontsize_cell ..  
        [=[" align="center" | ]=] .. args['ακε'] ..  "\n"
        voc_sg_fem_str = [=[| style="border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['κεΛ-θηλ'] ..  "\n"
        
        a_nom_pl_fem_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="center" | ]=] .. args['αοπ'] ..  "\n"
        nom_pl_fem_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['οπΛ-θηλ'] ..  "\n"
        a_gen_pl_fem_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="center" | ]=] .. args['αγπ'] ..  "\n"
        gen_pl_fem_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['γπΛ-θηλ'] ..  "\n"
        a_dat_pl_fem_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="center" | ]=] .. args['αδπ'] ..  "\n"
        dat_pl_fem_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['δπΛ-θηλ'] ..  "\n"  
        a_acc_pl_fem_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="center" | ]=] .. args['ααπ'] ..  "\n"
        acc_pl_fem_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['απΛ-θηλ'] ..  "\n"
        a_voc_pl_fem_str = [=[| style="]=] .. font_cell .. fontsize_cell ..  
        [=[" align="center" | ]=] .. args['ακπ'] ..  "\n"
        voc_pl_fem_str = [=[| style="border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['κπΛ-θηλ'] ..  "\n"

        if has_dual then
    	if args['άρθρα'] ~= '-' then
    			if args['α'] == 'πλ' or args['α2'] == 'πλ' or args['α'] == 'εν' or args['α2'] == 'εν' or args['δυ'] == '-' then 
    				args['αοδ'] = '' args['αγδ'] = ''
    			else
		args['αοδ'] = create_link('τώ', stem_color('τὼ'))
		args['αγδ'] = create_link('τοῖν', stem_color('τοῖν'))
				end
    	end
        a_nom_du_fem_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord.. [=[; ]=] .. font_cell
        .. [=[; font-size:90%; line-height:100%;" align="center" | ]=] 
        .. args['αοδ'] ..  "\n"
        nom_du_fem_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord.. [=[; ]=] .. font_cell
        .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; font-size:90%; line-height:100%;" align="left" | ]=] 
        .. args['οδΛ-θηλ'] ..  "\n"
        a_gen_du_fem_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord.. [=[; ]=] .. font_cell
        .. [=[; font-size:90%; line-height:100%;" align="center" | ]=] 
        .. args['αγδ'] ..  "\n"
        gen_du_fem_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord.. [=[; ]=] .. font_cell
        .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; font-size:90%; line-height:100%;" align="left" | ]=] 
        .. args['γδΛ-θηλ'] ..  "\n"
        end
    else
    		-- do nothing
    end

    if has_neu then -- If not, cells must be seen empty
    	c_bordR = c_border
    	args['ουδ'] = '1'
    	if args['άρθρα'] ~= '-' then
    			if args['α'] == 'πλ' or args['α2'] == 'πλ' or args['α'] == 'πλδ' or args['α2'] == 'πλδ' then 
    				args['αοε'] = '&nbsp;&nbsp;&nbsp;&nbsp;' args['αγε'] = '' args['αδε'] = ''  args['ααε'] = ''
    			else
		args['αοε'] = create_link('τό', stem_color('τὸ'))
		args['αγε'] = create_link('τοῦ', stem_color('τοῦ'))
		args['αδε'] = create_link('τῷ', stem_color('τῷ'))
		args['ααε'] = create_link('τό', stem_color('τὸ'))
    			end
    			if args['α'] == 'εν' or args['α2'] == 'εν' or args['α'] == 'ενδ' or args['α2'] == 'ενδ' then 
    				args['αοπ'] = '&nbsp;&nbsp;&nbsp;&nbsp;' args['αγπ'] = '' args['αδπ'] = ''  args['ααπ'] = ''
    			else
		args['αοπ'] = create_link('τά', stem_color('τὰ'))
		args['αγπ'] = create_link('τῶν', stem_color('τῶν'))
		args['αδπ'] = create_link('τοῖς', stem_color('τοῖς'))
		args['ααπ'] = create_link('τά', stem_color('τὰ'))
				end
		end
        gender_neu_str = [=[| style="background:]=] .. c_2 .. [=[; border-right:1px solid ]=] .. c_1 ..
        [=[; font-size:70%; font-style:italic; line-height:100%;" colspan="2" align="center"| ]=] .. args['ουδέτερο'] .. "\n"
        a_nom_sg_neu_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="center" | ]=] .. args['αοε'] ..  "\n"
        nom_sg_neu_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['οεΛ-ουδ'] ..  "\n"
        a_gen_sg_neu_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="center" | ]=] .. args['αγε'] ..  "\n"
        gen_sg_neu_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['γεΛ-ουδ'] ..  "\n"
        a_dat_sg_neu_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="center" | ]=] .. args['αδε'] ..  "\n"
        dat_sg_neu_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['δεΛ-ουδ'] ..  "\n"  
        a_acc_sg_neu_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="center" | ]=] .. args['ααε'] ..  "\n"
        acc_sg_neu_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['αεΛ-ουδ'] ..  "\n"
        a_voc_sg_neu_str = [=[| style="]=] .. font_cell .. fontsize_cell ..  
        [=[" align="center" | ]=] .. args['ακε'] ..  "\n"
        voc_sg_neu_str = [=[| style="border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['κεΛ-ουδ'] ..  "\n"
        
        a_nom_pl_neu_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="center" | ]=] .. args['αοπ'] ..  "\n"
        nom_pl_neu_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['οπΛ-ουδ'] ..  "\n"
        a_gen_pl_neu_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="center" | ]=] .. args['αγπ'] ..  "\n"
        gen_pl_neu_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['γπΛ-ουδ'] ..  "\n"
        a_dat_pl_neu_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="center" | ]=] .. args['αδπ'] ..  "\n"
        dat_pl_neu_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['δπΛ-ουδ'] ..  "\n"    
        a_acc_pl_neu_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="center" | ]=] .. args['ααπ'] ..  "\n"
        acc_pl_neu_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['απΛ-ουδ'] ..  "\n"
        a_voc_pl_neu_str = [=[| style="]=] .. font_cell .. fontsize_cell ..  
        [=[" align="center" | ]=] .. args['ακπ'] ..  "\n"
        voc_pl_neu_str = [=[| style="border-right:1px solid ]=] .. c_bordR .. [=[; ]=] .. font_cell .. fontsize_cell ..
        [=[;" align="left" | ]=] .. args['κπΛ-ουδ'] ..  "\n"
        

        if has_dual then
    	if args['άρθρα'] ~= '-' then
    			if args['α'] == 'πλ' or args['α2'] == 'πλ' or args['α'] == 'εν' or args['α2'] == 'εν' or args['δυ'] == '-' then 
    				args['αοδ'] = '' args['αγδ'] = ''
    			else
		args['αοδ'] = create_link('τώ', stem_color('τὼ'))
		args['αγδ'] = create_link('τοῖν', stem_color('τοῖν'))
				end
    	end
        a_nom_du_neu_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord.. [=[; ]=] .. font_cell
        .. [=[; font-size:90%; line-height:100%;" align="center" | ]=] 
        .. args['αοδ'] ..  "\n"
        nom_du_neu_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord.. [=[; ]=] .. font_cell
        .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; font-size:90%; line-height:100%;" align="left" | ]=] 
        .. args['οδΛ-ουδ'] ..  "\n"
        a_gen_du_neu_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord.. [=[; ]=] .. font_cell
        .. [=[; font-size:90%; line-height:100%;" align="center" | ]=] 
        .. args['αγδ'] ..  "\n"
        gen_du_neu_str =  [=[| style="border-bottom:1px solid ]=] .. c_bord.. [=[; ]=] .. font_cell
        .. [=[; border-right:1px solid ]=] .. c_bordR .. [=[; font-size:90%; line-height:100%;" align="left" | ]=] 
        .. args['γδΛ-ουδ'] ..  "\n"
        end 
    end



-- ============================= ROWS
-- extra title
	if args['mod-τίτλος'] ~= '' and args['mod-τίτλος'] ~= nil then extratitle =
'|-' ..  extratitle_str .. "\n" ..   [=[|-]=]
	end

-- 2nd column for stem_line
-- stem_line
	if args['θέματα'] ~= '' and args['θέματα'] ~= nil then stem_line =
'|-' .. "\n" .. [=[| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 .. [=[; line-height:100%;" align="left"|  ]=] .. "\n" .. stem_cell .. [=[|-]=]
	end


-- 2nd column for genders if masc+fem+neu
	if args['θηλ'] ~= '-' then gender =
'|-' .. "\n" .. [=[| style="background:]=] .. c_2 .. [=[; border-right:1px solid ]=] .. c_1 ..
[=[; text-align:center; font-size:70%; line-height:100%;" align="center"|  ]=] .. "\n" .. gender_masc_str .. gender_fem_str .. gender_neu_str .. [=[|-]=]
end
	-- if masc+fem have one column:
	if args['θηλ'] == '-' then gender =
'|-' .. "\n" .. [=[| style="background:]=] .. c_2 .. [=[; border-right:1px solid ]=] .. c_1 ..
[=[; text-align:center; font-size:70%; line-height:100%;" align="center"|  ]=] .. "\n" .. gender_masc_str .. gender_neu_str .. [=[|-]=]
	end


-- 2nd column for numbers	
        sg_title_str =  [=[! style="background:]=] .. c_1 .. [=[; border-right:1px solid ]=] .. c_border ..
        [=[; font-size:90%;" align="center" colspan="6" | &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[ενικός|<span title="ἑνικός ἀριθμός" style="color:black;">'''''ενικός'''''</span>]]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]=] .. "\n"

        pl_title_str = [=[! style="background:]=] .. c_1 .. [=[; border-right:1px solid ]=] .. c_border ..
        [=[; font-size:90%;" align="center" colspan="6"| &nbsp;&nbsp;[[πληθυντικός|<span title="πληθυντικός ἀριθμός" style="color:black;">'''''πληθυντικός'''''</span>]]&nbsp;&nbsp;]=] .. "\n"

		if has_dual then
        du_title_str = [=[! style="background:]=] .. c_1 .. [=[; border-right:1px solid ]=] .. c_border ..
        [=[; font-size:80%; line-height:100%;" align="center" colspan="6" | &nbsp;&nbsp;[[δυϊκός|<span title="δυϊκός ἀριθμός" style="color:black;">''δυϊκός''</span>]]&nbsp;&nbsp;]=] .. "\n"
		end

-- 1) WITH TITLE (a language title args['lang_title' at param page,  or the args['mod-τίτλος'] at functions or editor's args['τίτλος'])
if args['mod-τίτλος'] ~= '' and args['mod-τίτλος'] ~= nil then
	

if has_dual then

if args['θηλ'] ~= "-" then  -- ###############THERE IS A BUG HERE  at last line. Cannot add title, etc. 
	
    output = [=[{| ]=] .. table_style1 .. [=[
|-
| style="background:]=] .. c_extra .. [=[; border-right:1px solid ]=] .. c_extra ..
	[=[; text-align:center; line-height:100%;" align="center" colspan="7" |  ]=] .. extratitle_str ..
	   [=[|-
| style="background:]=] .. c_2 .. [=[; border-right:1px solid ]=] .. c_1 ..
	[=[; text-align:center; font-size:70%; line-height:100%;" align="center"| ''γένη''&nbsp;&rarr; ]=] ..
	"\n" .. gender_masc_str .. gender_fem_str .. gender_neu_str .. [=[|-
! style="background:]=] .. c_1 .. [=[; border-right:1px solid ]=] .. c_2 ..
	[=[; text-align:center;  font-size:90%;" align="center"| &darr;&nbsp;''πτώσεις'' ]=] ..
	"\n" .. sg_title_str .. stem_line ..  [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| [[ονομαστική|<span title="πτῶσις ὀνομαστική" style="color:black;">'''''ονομαστική'''''</span>]]]=] ..
	"\n" .. a_nom_sg_masc_str .. nom_sg_masc_str .. a_nom_sg_fem_str .. nom_sg_fem_str .. a_nom_sg_neu_str .. nom_sg_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[γενική|<span title="πτῶσις γενική" style="color:black;">'''''γενική'''''</span>]]]=] ..
	"\n" .. a_gen_sg_masc_str .. gen_sg_masc_str .. a_gen_sg_fem_str .. gen_sg_fem_str .. a_gen_sg_neu_str .. gen_sg_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[δοτική|<span title="πτῶσις δοτική" style="color:black;">'''''δοτική'''''</span>]]]=] ..
	"\n" .. a_dat_sg_masc_str .. dat_sg_masc_str .. a_dat_sg_fem_str .. dat_sg_fem_str .. a_dat_sg_neu_str .. dat_sg_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;[[αιτιατική|<span title="πτῶσις αἰτιατική" style="color:black;">'''''αιτιατική'''''</span>]]]=] ..
	"\n" .. a_acc_sg_masc_str .. acc_sg_masc_str .. a_acc_sg_fem_str .. acc_sg_fem_str .. a_acc_sg_neu_str .. acc_sg_neu_str .. [=[|-
| style="background:]=] .. c_3 ..
	[=[; text-align:right;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[κλητική|<span title="πτῶσις κλητική" style="color:black; font-size:90%;">'''''κλητική'''''</span>]] [[ὦ|<span style="color:black;">ὦ</span>]]!]=] ..
	"\n" .. a_voc_sg_masc_str .. voc_sg_masc_str .. a_voc_sg_fem_str .. voc_sg_fem_str .. a_voc_sg_neu_str .. voc_sg_neu_str .. [=[|-



! style="background:]=] .. c_1 .. [=[; border-right:1px solid ]=] .. c_2 ..
	[=[; text-align:center;  font-size:90%;" align="center"| &darr;&nbsp;''πτώσεις'' ]=] ..
	"\n" .. pl_title_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| [[ονομαστική|<span title="πτῶσις ὀνομαστική" style="color:black;">'''''ονομαστική'''''</span>]]]=] ..
	"\n" .. a_nom_pl_masc_str .. nom_pl_masc_str .. a_nom_pl_fem_str .. nom_pl_fem_str .. a_nom_pl_neu_str .. nom_pl_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[γενική|<span title="πτῶσις γενική" style="color:black;">'''''γενική'''''</span>]]]=] ..
	"\n" .. a_gen_pl_masc_str .. gen_pl_masc_str .. a_gen_pl_fem_str .. gen_pl_fem_str .. a_gen_pl_neu_str .. gen_pl_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[δοτική|<span title="πτῶσις δοτική" style="color:black;">'''''δοτική'''''</span>]]]=] ..
	"\n" .. a_dat_pl_masc_str .. dat_pl_masc_str .. a_dat_pl_fem_str .. dat_pl_fem_str .. a_dat_pl_neu_str .. dat_pl_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;[[αιτιατική|<span title="πτῶσις αἰτιατική" style="color:black;">'''''αιτιατική'''''</span>]]]=] ..
	"\n" .. a_acc_pl_masc_str .. acc_pl_masc_str .. a_acc_pl_fem_str .. acc_pl_fem_str .. a_acc_pl_neu_str .. acc_pl_neu_str .. [=[|-
| style="background:]=] .. c_3 ..
	[=[; text-align:right;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[κλητική|<span title="πτῶσις κλητική" style="color:black; font-size:90%;">'''''κλητική'''''</span>]] [[ὦ|<span style="color:black;">ὦ</span>]]!]=] ..
	"\n" .. a_voc_pl_masc_str .. voc_pl_masc_str .. a_voc_pl_fem_str .. voc_pl_fem_str .. a_voc_pl_neu_str .. voc_pl_neu_str .. [=[|-

| style="background:]=] .. c_1 .. [=[; border-right:1px solid ]=] .. c_2 ..
	[=[; text-align:center; font-size:80%; line-height:100%;" align="center"| &nbsp; ]=] ..
	"\n" .. du_title_str .. [=[|-

| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| [[ονομαστική|<span title="πτώσεις ὀνομαστικὴ, αἰτιατική καὶ κλητική" style="color:black;">''ονομ-αιτ-κλ''</span>]]]=] ..
	"\n" .. a_nom_du_masc_str .. nom_du_masc_str .. a_nom_du_fem_str .. nom_du_fem_str .. a_nom_du_neu_str .. nom_du_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[γενική|<span title="πτώσεις γενικὴ καὶ δοτική" style="color:black;">''γεν-δοτ''</span>]]]=] ..
	"\n" .. a_gen_du_masc_str .. gen_du_masc_str .. a_gen_du_fem_str .. gen_du_fem_str .. a_gen_du_neu_str .. gen_du_neu_str .. paratirisi .. appendix .. [=[|}]=]



elseif args['θηλ'] == "-"  then

	

	
    output = [=[{| ]=] .. table_style1 .. [=[
|-
| style="background:]=] .. c_extra .. [=[; border-right:1px solid ]=] .. c_extra ..
	[=[; text-align:center; line-height:100%;" align="center" colspan="7" |  ]=] .. extratitle_str ..
	   [=[|-
| style="background:]=] .. c_2 .. [=[; border-right:1px solid ]=] .. c_1 ..
	[=[; text-align:center; font-size:70%; line-height:100%;" align="center"| &rarr;&nbsp;''γένη'' ]=] ..
	"\n" .. gender_masc_str .. gender_neu_str  .. [=[|-
! style="background:]=] .. c_1 .. [=[; border-right:1px solid ]=] .. c_2 ..
	[=[; text-align:center;  font-size:90%;" align="center"| &darr;&nbsp;''πτώσεις'' ]=] ..
	"\n" .. sg_title_str .. stem_line  .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| [[ονομαστική|<span title="πτῶσις ὀνομαστική" style="color:black;">'''''ονομαστική'''''</span>]]]=] ..
	"\n" .. a_nom_sg_masc_str .. nom_sg_masc_str .. a_nom_sg_neu_str .. nom_sg_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[γενική|<span title="πτῶσις γενική" style="color:black;">'''''γενική'''''</span>]]]=] ..
	"\n" .. a_gen_sg_masc_str .. gen_sg_masc_str .. a_gen_sg_neu_str .. gen_sg_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[δοτική|<span title="πτῶσις δοτική" style="color:black;">'''''δοτική'''''</span>]]]=] ..
	"\n" .. a_dat_sg_masc_str .. dat_sg_masc_str .. a_dat_sg_neu_str .. dat_sg_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;[[αιτιατική|<span title="πτῶσις αἰτιατική" style="color:black;">'''''αιτιατική'''''</span>]]]=] ..
	"\n" .. a_acc_sg_masc_str .. acc_sg_masc_str .. a_acc_sg_neu_str .. acc_sg_neu_str .. [=[|-
| style="background:]=] .. c_3 ..
	[=[; text-align:right;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[κλητική|<span title="πτῶσις κλητική" style="color:black; font-size:90%;">'''''κλητική'''''</span>]] [[ὦ|<span style="color:black;">ὦ</span>]]!]=] ..
	"\n" .. a_voc_sg_masc_str .. voc_sg_masc_str .. a_voc_sg_neu_str .. voc_sg_neu_str .. [=[|-



! style="background:]=] .. c_1 .. [=[; border-right:1px solid ]=] .. c_2 ..
	[=[; text-align:center;  font-size:90%;" align="center"| &darr;&nbsp;''πτώσεις'' ]=] ..
	"\n" .. pl_title_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| [[ονομαστική|<span title="πτῶσις ὀνομαστική" style="color:black;">'''''ονομαστική'''''</span>]]]=] ..
	"\n" .. a_nom_pl_masc_str .. nom_pl_masc_str .. a_nom_pl_neu_str .. nom_pl_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[γενική|<span title="πτῶσις γενική" style="color:black;">'''''γενική'''''</span>]]]=] ..
	"\n" .. a_gen_pl_masc_str .. gen_pl_masc_str .. a_gen_pl_neu_str .. gen_pl_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[δοτική|<span title="πτῶσις δοτική" style="color:black;">'''''δοτική'''''</span>]]]=] ..
	"\n" .. a_dat_pl_masc_str .. dat_pl_masc_str .. a_dat_pl_neu_str .. dat_pl_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;[[αιτιατική|<span title="πτῶσις αἰτιατική" style="color:black;">'''''αιτιατική'''''</span>]]]=] ..
	"\n" .. a_acc_pl_masc_str .. acc_pl_masc_str .. a_acc_pl_neu_str .. acc_pl_neu_str .. [=[|-
| style="background:]=] .. c_3 ..
	[=[; text-align:right;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[κλητική|<span title="πτῶσις κλητική" style="color:black; font-size:90%;">'''''κλητική'''''</span>]] [[ὦ|<span style="color:black;">ὦ</span>]]!]=] ..
	"\n" .. a_voc_pl_masc_str .. voc_pl_masc_str .. a_voc_pl_neu_str .. voc_pl_neu_str  .. [=[|-

| style="background:]=] .. c_1 .. [=[; border-right:1px solid ]=] .. c_2 ..
	[=[; text-align:center; font-size:80%; line-height:100%;" align="center"| &nbsp; ]=] ..
	"\n" .. du_title_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| [[ονομαστική|<span title="πτώσεις ὀνομαστικὴ, αἰτιατική καὶ κλητική" style="color:black;">''ονομ-αιτ-κλ''</span>]]]=] ..
	"\n" .. a_nom_du_masc_str .. nom_du_masc_str .. a_nom_du_neu_str .. nom_du_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[γενική|<span title="πτώσεις γενικὴ καὶ δοτική" style="color:black;">''γεν-δοτ''</span>]]]=] ..
	"\n" .. a_gen_du_masc_str .. gen_du_masc_str .. a_gen_du_neu_str .. gen_du_neu_str .. paratirisi .. appendix .. [=[|}]=]

	
end -- close if θηλ=- ορ αθ=1	
 
else -- nooooooooooooooooooooooooooooooooo dual


if args['θηλ'] ~= "-"  then  -- ###############THERE IS A BUG HERE  at last line. Cannot add title, etc. 
	
    output = [=[{| ]=] .. table_style1 .. [=[
|-
| style="background:]=] .. c_extra .. [=[; border-right:1px solid ]=] .. c_extra ..
	[=[; text-align:center; line-height:100%;" align="center" colspan="7" |  ]=] .. extratitle_str ..
	   [=[|-
| style="background:]=] .. c_2 .. [=[; border-right:1px solid ]=] .. c_1 ..
	[=[; text-align:center; font-size:70%; line-height:100%;" align="center"| ''γένη''&nbsp;&rarr; ]=] ..
	"\n" .. gender_masc_str .. gender_fem_str .. gender_neu_str .. [=[|-
! style="background:]=] .. c_1 .. [=[; border-right:1px solid ]=] .. c_2 ..
	[=[; text-align:center;  font-size:90%;" align="center"| &darr;&nbsp;''πτώσεις'' ]=] ..
	"\n" .. sg_title_str .. stem_line ..  [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| [[ονομαστική|<span title="πτῶσις ὀνομαστική" style="color:black;">'''''ονομαστική'''''</span>]]]=] ..
	"\n" .. a_nom_sg_masc_str .. nom_sg_masc_str .. a_nom_sg_fem_str .. nom_sg_fem_str .. a_nom_sg_neu_str .. nom_sg_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[γενική|<span title="πτῶσις γενική" style="color:black;">'''''γενική'''''</span>]]]=] ..
	"\n" .. a_gen_sg_masc_str .. gen_sg_masc_str .. a_gen_sg_fem_str .. gen_sg_fem_str .. a_gen_sg_neu_str .. gen_sg_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[δοτική|<span title="πτῶσις δοτική" style="color:black;">'''''δοτική'''''</span>]]]=] ..
	"\n" .. a_dat_sg_masc_str .. dat_sg_masc_str .. a_dat_sg_fem_str .. dat_sg_fem_str .. a_dat_sg_neu_str .. dat_sg_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;[[αιτιατική|<span title="πτῶσις αἰτιατική" style="color:black;">'''''αιτιατική'''''</span>]]]=] ..
	"\n" .. a_acc_sg_masc_str .. acc_sg_masc_str .. a_acc_sg_fem_str .. acc_sg_fem_str .. a_acc_sg_neu_str .. acc_sg_neu_str .. [=[|-
| style="background:]=] .. c_3 ..
	[=[; text-align:right;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[κλητική|<span title="πτῶσις κλητική" style="color:black; font-size:90%;">'''''κλητική'''''</span>]] [[ὦ|<span style="color:black;">ὦ</span>]]!]=] ..
	"\n" .. a_voc_sg_masc_str .. voc_sg_masc_str .. a_voc_sg_fem_str .. voc_sg_fem_str .. a_voc_sg_neu_str .. voc_sg_neu_str .. [=[|-



! style="background:]=] .. c_1 .. [=[; border-right:1px solid ]=] .. c_2 ..
	[=[; text-align:center;  font-size:90%;" align="center"| &darr;&nbsp;''πτώσεις'' ]=] ..
	"\n" .. pl_title_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| [[ονομαστική|<span title="πτῶσις ὀνομαστική" style="color:black;">'''''ονομαστική'''''</span>]]]=] ..
	"\n" .. a_nom_pl_masc_str .. nom_pl_masc_str .. a_nom_pl_fem_str .. nom_pl_fem_str .. a_nom_pl_neu_str .. nom_pl_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[γενική|<span title="πτῶσις γενική" style="color:black;">'''''γενική'''''</span>]]]=] ..
	"\n" .. a_gen_pl_masc_str .. gen_pl_masc_str .. a_gen_pl_fem_str .. gen_pl_fem_str .. a_gen_pl_neu_str .. gen_pl_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[δοτική|<span title="πτῶσις δοτική" style="color:black;">'''''δοτική'''''</span>]]]=] ..
	"\n" .. a_dat_pl_masc_str .. dat_pl_masc_str .. a_dat_pl_fem_str .. dat_pl_fem_str .. a_dat_pl_neu_str .. dat_pl_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;[[αιτιατική|<span title="πτῶσις αἰτιατική" style="color:black;">'''''αιτιατική'''''</span>]]]=] ..
	"\n" .. a_acc_pl_masc_str .. acc_pl_masc_str .. a_acc_pl_fem_str .. acc_pl_fem_str .. a_acc_pl_neu_str .. acc_pl_neu_str .. [=[|-
| style="background:]=] .. c_3 ..
	[=[; text-align:right;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[κλητική|<span title="πτῶσις κλητική" style="color:black; font-size:90%;">'''''κλητική'''''</span>]] [[ὦ|<span style="color:black;">ὦ</span>]]!]=] ..
	"\n" .. a_voc_pl_masc_str .. voc_pl_masc_str .. a_voc_pl_fem_str .. voc_pl_fem_str .. a_voc_pl_neu_str .. voc_pl_neu_str .. paratirisi .. appendix .. [=[|}]=]



elseif args['θηλ'] == "-" then

	

	
    output = [=[{| ]=] .. table_style1 .. [=[
|-
| style="background:]=] .. c_extra .. [=[; border-right:1px solid ]=] .. c_extra ..
	[=[; text-align:center; line-height:100%;" align="center" colspan="7" |  ]=] .. extratitle_str ..
	   [=[|-
| style="background:]=] .. c_2 .. [=[; border-right:1px solid ]=] .. c_1 ..
	[=[; text-align:center; font-size:70%; line-height:100%;" align="center"| &rarr;&nbsp;''γένη'' ]=] ..
	"\n" .. gender_masc_str .. gender_neu_str  .. [=[|-
! style="background:]=] .. c_1 .. [=[; border-right:1px solid ]=] .. c_2 ..
	[=[; text-align:center;  font-size:90%;" align="center"| &darr;&nbsp;''πτώσεις'' ]=] ..
	"\n" .. sg_title_str .. stem_line  .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| [[ονομαστική|<span title="πτῶσις ὀνομαστική" style="color:black;">'''''ονομαστική'''''</span>]]]=] ..
	"\n" .. a_nom_sg_masc_str .. nom_sg_masc_str .. a_nom_sg_neu_str .. nom_sg_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[γενική|<span title="πτῶσις γενική" style="color:black;">'''''γενική'''''</span>]]]=] ..
	"\n" .. a_gen_sg_masc_str .. gen_sg_masc_str .. a_gen_sg_neu_str .. gen_sg_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[δοτική|<span title="πτῶσις δοτική" style="color:black;">'''''δοτική'''''</span>]]]=] ..
	"\n" .. a_dat_sg_masc_str .. dat_sg_masc_str .. a_dat_sg_neu_str .. dat_sg_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;[[αιτιατική|<span title="πτῶσις αἰτιατική" style="color:black;">'''''αιτιατική'''''</span>]]]=] ..
	"\n" .. a_acc_sg_masc_str .. acc_sg_masc_str .. a_acc_sg_neu_str .. acc_sg_neu_str .. [=[|-
| style="background:]=] .. c_3 ..
	[=[; text-align:right;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[κλητική|<span title="πτῶσις κλητική" style="color:black; font-size:90%;">'''''κλητική'''''</span>]] [[ὦ|<span style="color:black;">ὦ</span>]]!]=] ..
	"\n" .. a_voc_sg_masc_str .. voc_sg_masc_str .. a_voc_sg_neu_str .. voc_sg_neu_str .. [=[|-



! style="background:]=] .. c_1 .. [=[; border-right:1px solid ]=] .. c_2 ..
	[=[; text-align:center;  font-size:90%;" align="center"| &darr;&nbsp;''πτώσεις'' ]=] ..
	"\n" .. pl_title_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| [[ονομαστική|<span title="πτῶσις ὀνομαστική" style="color:black;">'''''ονομαστική'''''</span>]]]=] ..
	"\n" .. a_nom_pl_masc_str .. nom_pl_masc_str .. a_nom_pl_neu_str .. nom_pl_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[γενική|<span title="πτῶσις γενική" style="color:black;">'''''γενική'''''</span>]]]=] ..
	"\n" .. a_gen_pl_masc_str .. gen_pl_masc_str .. a_gen_pl_neu_str .. gen_pl_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[δοτική|<span title="πτῶσις δοτική" style="color:black;">'''''δοτική'''''</span>]]]=] ..
	"\n" .. a_dat_pl_masc_str .. dat_pl_masc_str .. a_dat_pl_neu_str .. dat_pl_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;[[αιτιατική|<span title="πτῶσις αἰτιατική" style="color:black;">'''''αιτιατική'''''</span>]]]=] ..
	"\n" .. a_acc_pl_masc_str .. acc_pl_masc_str .. a_acc_pl_neu_str .. acc_pl_neu_str .. [=[|-
| style="background:]=] .. c_3 ..
	[=[; text-align:right;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[κλητική|<span title="πτῶσις κλητική" style="color:black; font-size:90%;">'''''κλητική'''''</span>]] [[ὦ|<span style="color:black;">ὦ</span>]]!]=] ..
	"\n" .. a_voc_pl_masc_str .. voc_pl_masc_str .. a_voc_pl_neu_str .. voc_pl_neu_str  .. paratirisi .. appendix .. [=[|}]=]

	
end -- close if θηλ=- ορ αθ=1	

end ----------------------------close dual
 
else --##################### NO extra title
	

if has_dual then

if args['θηλ'] ~= "-"  then  -- ###############THERE IS A BUG HERE  at last line. Cannot add title, etc. 
	
    output = [=[{| ]=] .. table_style1 .. [=[
|-
| style="background:]=] .. c_2 .. [=[; border-right:1px solid ]=] .. c_1 ..
	[=[; text-align:center; font-size:70%; line-height:100%;" align="center"| ''γένη''&nbsp;&rarr; ]=] ..
	"\n" .. gender_masc_str .. gender_fem_str .. gender_neu_str .. [=[|-
! style="background:]=] .. c_1 .. [=[; border-right:1px solid ]=] .. c_2 ..
	[=[; text-align:center;  font-size:90%;" align="center"| &darr;&nbsp;''πτώσεις'' ]=] ..
	"\n" .. sg_title_str .. stem_line ..  [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| [[ονομαστική|<span title="πτῶσις ὀνομαστική" style="color:black;">'''''ονομαστική'''''</span>]]]=] ..
	"\n" .. a_nom_sg_masc_str .. nom_sg_masc_str .. a_nom_sg_fem_str .. nom_sg_fem_str .. a_nom_sg_neu_str .. nom_sg_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[γενική|<span title="πτῶσις γενική" style="color:black;">'''''γενική'''''</span>]]]=] ..
	"\n" .. a_gen_sg_masc_str .. gen_sg_masc_str .. a_gen_sg_fem_str .. gen_sg_fem_str .. a_gen_sg_neu_str .. gen_sg_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[δοτική|<span title="πτῶσις δοτική" style="color:black;">'''''δοτική'''''</span>]]]=] ..
	"\n" .. a_dat_sg_masc_str .. dat_sg_masc_str .. a_dat_sg_fem_str .. dat_sg_fem_str .. a_dat_sg_neu_str .. dat_sg_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;[[αιτιατική|<span title="πτῶσις αἰτιατική" style="color:black;">'''''αιτιατική'''''</span>]]]=] ..
	"\n" .. a_acc_sg_masc_str .. acc_sg_masc_str .. a_acc_sg_fem_str .. acc_sg_fem_str .. a_acc_sg_neu_str .. acc_sg_neu_str .. [=[|-
| style="background:]=] .. c_3 ..
	[=[; text-align:right;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[κλητική|<span title="πτῶσις κλητική" style="color:black; font-size:90%;">'''''κλητική'''''</span>]] [[ὦ|<span style="color:black;">ὦ</span>]]!]=] ..
	"\n" .. a_voc_sg_masc_str .. voc_sg_masc_str .. a_voc_sg_fem_str .. voc_sg_fem_str .. a_voc_sg_neu_str .. voc_sg_neu_str .. [=[|-



! style="background:]=] .. c_1 .. [=[; border-right:1px solid ]=] .. c_2 ..
	[=[; text-align:center;  font-size:90%;" align="center"| &darr;&nbsp;''πτώσεις'' ]=] ..
	"\n" .. pl_title_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| [[ονομαστική|<span title="πτῶσις ὀνομαστική" style="color:black;">'''''ονομαστική'''''</span>]]]=] ..
	"\n" .. a_nom_pl_masc_str .. nom_pl_masc_str .. a_nom_pl_fem_str .. nom_pl_fem_str .. a_nom_pl_neu_str .. nom_pl_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[γενική|<span title="πτῶσις γενική" style="color:black;">'''''γενική'''''</span>]]]=] ..
	"\n" .. a_gen_pl_masc_str .. gen_pl_masc_str .. a_gen_pl_fem_str .. gen_pl_fem_str .. a_gen_pl_neu_str .. gen_pl_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[δοτική|<span title="πτῶσις δοτική" style="color:black;">'''''δοτική'''''</span>]]]=] ..
	"\n" .. a_dat_pl_masc_str .. dat_pl_masc_str .. a_dat_pl_fem_str .. dat_pl_fem_str .. a_dat_pl_neu_str .. dat_pl_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;[[αιτιατική|<span title="πτῶσις αἰτιατική" style="color:black;">'''''αιτιατική'''''</span>]]]=] ..
	"\n" .. a_acc_pl_masc_str .. acc_pl_masc_str .. a_acc_pl_fem_str .. acc_pl_fem_str .. a_acc_pl_neu_str .. acc_pl_neu_str .. [=[|-
| style="background:]=] .. c_3 ..
	[=[; text-align:right;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[κλητική|<span title="πτῶσις κλητική" style="color:black; font-size:90%;">'''''κλητική'''''</span>]] [[ὦ|<span style="color:black;">ὦ</span>]]!]=] ..
	"\n" .. a_voc_pl_masc_str .. voc_pl_masc_str .. a_voc_pl_fem_str .. voc_pl_fem_str .. a_voc_pl_neu_str .. voc_pl_neu_str .. [=[|-

| style="background:]=] .. c_1 .. [=[; border-right:1px solid ]=] .. c_2 ..
	[=[; text-align:center; font-size:80%; line-height:100%;" align="center"| &nbsp; ]=] ..
	"\n" .. du_title_str .. [=[|-

| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| [[ονομαστική|<span title="πτώσεις ὀνομαστικὴ, αἰτιατική καὶ κλητική" style="color:black;">''ονομ-αιτ-κλ''</span>]]]=] ..
	"\n" .. a_nom_du_masc_str .. nom_du_masc_str .. a_nom_du_fem_str .. nom_du_fem_str .. a_nom_du_neu_str .. nom_du_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[γενική|<span title="πτώσεις γενικὴ καὶ δοτική" style="color:black;">''γεν-δοτ''</span>]]]=] ..
	"\n" .. a_gen_du_masc_str .. gen_du_masc_str .. a_gen_du_fem_str .. gen_du_fem_str .. a_gen_du_neu_str .. gen_du_neu_str .. paratirisi .. appendix .. [=[|}]=]



elseif args['θηλ'] == "-"  then

	

	
    output = [=[{| ]=] .. table_style1 .. [=[
|-
| style="background:]=] .. c_2 .. [=[; border-right:1px solid ]=] .. c_1 ..
	[=[; text-align:center; font-size:70%; line-height:100%;" align="center"| &rarr;&nbsp;''γένη'' ]=] ..
	"\n" .. gender_masc_str .. gender_neu_str  .. [=[|-
! style="background:]=] .. c_1 .. [=[; border-right:1px solid ]=] .. c_2 ..
	[=[; text-align:center;  font-size:90%;" align="center"| &darr;&nbsp;''πτώσεις'' ]=] ..
	"\n" .. sg_title_str .. stem_line  .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| [[ονομαστική|<span title="πτῶσις ὀνομαστική" style="color:black;">'''''ονομαστική'''''</span>]]]=] ..
	"\n" .. a_nom_sg_masc_str .. nom_sg_masc_str .. a_nom_sg_neu_str .. nom_sg_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[γενική|<span title="πτῶσις γενική" style="color:black;">'''''γενική'''''</span>]]]=] ..
	"\n" .. a_gen_sg_masc_str .. gen_sg_masc_str .. a_gen_sg_neu_str .. gen_sg_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[δοτική|<span title="πτῶσις δοτική" style="color:black;">'''''δοτική'''''</span>]]]=] ..
	"\n" .. a_dat_sg_masc_str .. dat_sg_masc_str .. a_dat_sg_neu_str .. dat_sg_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;[[αιτιατική|<span title="πτῶσις αἰτιατική" style="color:black;">'''''αιτιατική'''''</span>]]]=] ..
	"\n" .. a_acc_sg_masc_str .. acc_sg_masc_str .. a_acc_sg_neu_str .. acc_sg_neu_str .. [=[|-
| style="background:]=] .. c_3 ..
	[=[; text-align:right;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[κλητική|<span title="πτῶσις κλητική" style="color:black; font-size:90%;">'''''κλητική'''''</span>]] [[ὦ|<span style="color:black;">ὦ</span>]]!]=] ..
	"\n" .. a_voc_sg_masc_str .. voc_sg_masc_str .. a_voc_sg_neu_str .. voc_sg_neu_str .. [=[|-



! style="background:]=] .. c_1 .. [=[; border-right:1px solid ]=] .. c_2 ..
	[=[; text-align:center;  font-size:90%;" align="center"| &darr;&nbsp;''πτώσεις'' ]=] ..
	"\n" .. pl_title_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| [[ονομαστική|<span title="πτῶσις ὀνομαστική" style="color:black;">'''''ονομαστική'''''</span>]]]=] ..
	"\n" .. a_nom_pl_masc_str .. nom_pl_masc_str .. a_nom_pl_neu_str .. nom_pl_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[γενική|<span title="πτῶσις γενική" style="color:black;">'''''γενική'''''</span>]]]=] ..
	"\n" .. a_gen_pl_masc_str .. gen_pl_masc_str .. a_gen_pl_neu_str .. gen_pl_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[δοτική|<span title="πτῶσις δοτική" style="color:black;">'''''δοτική'''''</span>]]]=] ..
	"\n" .. a_dat_pl_masc_str .. dat_pl_masc_str .. a_dat_pl_neu_str .. dat_pl_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;[[αιτιατική|<span title="πτῶσις αἰτιατική" style="color:black;">'''''αιτιατική'''''</span>]]]=] ..
	"\n" .. a_acc_pl_masc_str .. acc_pl_masc_str .. a_acc_pl_neu_str .. acc_pl_neu_str .. [=[|-
| style="background:]=] .. c_3 ..
	[=[; text-align:right;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[κλητική|<span title="πτῶσις κλητική" style="color:black; font-size:90%;">'''''κλητική'''''</span>]] [[ὦ|<span style="color:black;">ὦ</span>]]!]=] ..
	"\n" .. a_voc_pl_masc_str .. voc_pl_masc_str .. a_voc_pl_neu_str .. voc_pl_neu_str  .. [=[|-

| style="background:]=] .. c_1 .. [=[; border-right:1px solid ]=] .. c_2 ..
	[=[; text-align:center; font-size:80%; line-height:100%;" align="center"| &nbsp; ]=] ..
	"\n" .. du_title_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| [[ονομαστική|<span title="πτώσεις ὀνομαστικὴ, αἰτιατική καὶ κλητική" style="color:black;">''ονομ-αιτ-κλ''</span>]]]=] ..
	"\n" .. a_nom_du_masc_str .. nom_du_masc_str .. a_nom_du_neu_str .. nom_du_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[γενική|<span title="πτώσεις γενικὴ καὶ δοτική" style="color:black;">''γεν-δοτ''</span>]]]=] ..
	"\n" .. a_gen_du_masc_str .. gen_du_masc_str .. a_gen_du_neu_str .. gen_du_neu_str .. paratirisi .. appendix .. [=[|}]=]

	
end -- close if θηλ=- ορ αθ=1	
 
else -- nooooooooooooooooooooooooooooooooo dual


if args['θηλ'] ~= "-"  then  -- ###############THERE IS A BUG HERE  at last line. Cannot add title, etc. 
	
    output = [=[{| ]=] .. table_style1 .. [=[
|-
| style="background:]=] .. c_2 .. [=[; border-right:1px solid ]=] .. c_1 ..
	[=[; text-align:center; font-size:70%; line-height:100%;" align="center"| ''γένη''&nbsp;&rarr; ]=] ..
	"\n" .. gender_masc_str .. gender_fem_str .. gender_neu_str .. [=[|-
! style="background:]=] .. c_1 .. [=[; border-right:1px solid ]=] .. c_2 ..
	[=[; text-align:center;  font-size:90%;" align="center"| &darr;&nbsp;''πτώσεις'' ]=] ..
	"\n" .. sg_title_str .. stem_line ..  [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| [[ονομαστική|<span title="πτῶσις ὀνομαστική" style="color:black;">'''''ονομαστική'''''</span>]]]=] ..
	"\n" .. a_nom_sg_masc_str .. nom_sg_masc_str .. a_nom_sg_fem_str .. nom_sg_fem_str .. a_nom_sg_neu_str .. nom_sg_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[γενική|<span title="πτῶσις γενική" style="color:black;">'''''γενική'''''</span>]]]=] ..
	"\n" .. a_gen_sg_masc_str .. gen_sg_masc_str .. a_gen_sg_fem_str .. gen_sg_fem_str .. a_gen_sg_neu_str .. gen_sg_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[δοτική|<span title="πτῶσις δοτική" style="color:black;">'''''δοτική'''''</span>]]]=] ..
	"\n" .. a_dat_sg_masc_str .. dat_sg_masc_str .. a_dat_sg_fem_str .. dat_sg_fem_str .. a_dat_sg_neu_str .. dat_sg_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;[[αιτιατική|<span title="πτῶσις αἰτιατική" style="color:black;">'''''αιτιατική'''''</span>]]]=] ..
	"\n" .. a_acc_sg_masc_str .. acc_sg_masc_str .. a_acc_sg_fem_str .. acc_sg_fem_str .. a_acc_sg_neu_str .. acc_sg_neu_str .. [=[|-
| style="background:]=] .. c_3 ..
	[=[; text-align:right;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[κλητική|<span title="πτῶσις κλητική" style="color:black; font-size:90%;">'''''κλητική'''''</span>]] [[ὦ|<span style="color:black;">ὦ</span>]]!]=] ..
	"\n" .. a_voc_sg_masc_str .. voc_sg_masc_str .. a_voc_sg_fem_str .. voc_sg_fem_str .. a_voc_sg_neu_str .. voc_sg_neu_str .. [=[|-



! style="background:]=] .. c_1 .. [=[; border-right:1px solid ]=] .. c_2 ..
	[=[; text-align:center;  font-size:90%;" align="center"| &darr;&nbsp;''πτώσεις'' ]=] ..
	"\n" .. pl_title_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| [[ονομαστική|<span title="πτῶσις ὀνομαστική" style="color:black;">'''''ονομαστική'''''</span>]]]=] ..
	"\n" .. a_nom_pl_masc_str .. nom_pl_masc_str .. a_nom_pl_fem_str .. nom_pl_fem_str .. a_nom_pl_neu_str .. nom_pl_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[γενική|<span title="πτῶσις γενική" style="color:black;">'''''γενική'''''</span>]]]=] ..
	"\n" .. a_gen_pl_masc_str .. gen_pl_masc_str .. a_gen_pl_fem_str .. gen_pl_fem_str .. a_gen_pl_neu_str .. gen_pl_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[δοτική|<span title="πτῶσις δοτική" style="color:black;">'''''δοτική'''''</span>]]]=] ..
	"\n" .. a_dat_pl_masc_str .. dat_pl_masc_str .. a_dat_pl_fem_str .. dat_pl_fem_str .. a_dat_pl_neu_str .. dat_pl_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;[[αιτιατική|<span title="πτῶσις αἰτιατική" style="color:black;">'''''αιτιατική'''''</span>]]]=] ..
	"\n" .. a_acc_pl_masc_str .. acc_pl_masc_str .. a_acc_pl_fem_str .. acc_pl_fem_str .. a_acc_pl_neu_str .. acc_pl_neu_str .. [=[|-
| style="background:]=] .. c_3 ..
	[=[; text-align:right;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[κλητική|<span title="πτῶσις κλητική" style="color:black; font-size:90%;">'''''κλητική'''''</span>]] [[ὦ|<span style="color:black;">ὦ</span>]]!]=] ..
	"\n" .. a_voc_pl_masc_str .. voc_pl_masc_str .. a_voc_pl_fem_str .. voc_pl_fem_str .. a_voc_pl_neu_str .. voc_pl_neu_str .. paratirisi .. appendix .. [=[|}]=]



elseif args['θηλ'] == "-"  then

	

	
    output = [=[{| ]=] .. table_style1 .. [=[
|-
| style="background:]=] .. c_2 .. [=[; border-right:1px solid ]=] .. c_1 ..
	[=[; text-align:center; font-size:70%; line-height:100%;" align="center"| &rarr;&nbsp;''γένη'' ]=] ..
	"\n" .. gender_masc_str .. gender_neu_str  .. [=[|-
! style="background:]=] .. c_1 .. [=[; border-right:1px solid ]=] .. c_2 ..
	[=[; text-align:center;  font-size:90%;" align="center"| &darr;&nbsp;''πτώσεις'' ]=] ..
	"\n" .. sg_title_str .. stem_line  .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| [[ονομαστική|<span title="πτῶσις ὀνομαστική" style="color:black;">'''''ονομαστική'''''</span>]]]=] ..
	"\n" .. a_nom_sg_masc_str .. nom_sg_masc_str .. a_nom_sg_neu_str .. nom_sg_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[γενική|<span title="πτῶσις γενική" style="color:black;">'''''γενική'''''</span>]]]=] ..
	"\n" .. a_gen_sg_masc_str .. gen_sg_masc_str .. a_gen_sg_neu_str .. gen_sg_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[δοτική|<span title="πτῶσις δοτική" style="color:black;">'''''δοτική'''''</span>]]]=] ..
	"\n" .. a_dat_sg_masc_str .. dat_sg_masc_str .. a_dat_sg_neu_str .. dat_sg_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;[[αιτιατική|<span title="πτῶσις αἰτιατική" style="color:black;">'''''αιτιατική'''''</span>]]]=] ..
	"\n" .. a_acc_sg_masc_str .. acc_sg_masc_str .. a_acc_sg_neu_str .. acc_sg_neu_str .. [=[|-
| style="background:]=] .. c_3 ..
	[=[; text-align:right;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[κλητική|<span title="πτῶσις κλητική" style="color:black; font-size:90%;">'''''κλητική'''''</span>]] [[ὦ|<span style="color:black;">ὦ</span>]]!]=] ..
	"\n" .. a_voc_sg_masc_str .. voc_sg_masc_str .. a_voc_sg_neu_str .. voc_sg_neu_str .. [=[|-



! style="background:]=] .. c_1 .. [=[; border-right:1px solid ]=] .. c_2 ..
	[=[; text-align:center;  font-size:90%;" align="center"| &darr;&nbsp;''πτώσεις'' ]=] ..
	"\n" .. pl_title_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| [[ονομαστική|<span title="πτῶσις ὀνομαστική" style="color:black;">'''''ονομαστική'''''</span>]]]=] ..
	"\n" .. a_nom_pl_masc_str .. nom_pl_masc_str .. a_nom_pl_neu_str .. nom_pl_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[γενική|<span title="πτῶσις γενική" style="color:black;">'''''γενική'''''</span>]]]=] ..
	"\n" .. a_gen_pl_masc_str .. gen_pl_masc_str .. a_gen_pl_neu_str .. gen_pl_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[δοτική|<span title="πτῶσις δοτική" style="color:black;">'''''δοτική'''''</span>]]]=] ..
	"\n" .. a_dat_pl_masc_str .. dat_pl_masc_str .. a_dat_pl_neu_str .. dat_pl_neu_str .. [=[|-
| style="background:]=] .. c_3 .. [=[; border-bottom:1px solid ]=] .. c_4 ..
	[=[; text-align:right; font-size:90%;"| &nbsp;&nbsp;&nbsp;&nbsp;[[αιτιατική|<span title="πτῶσις αἰτιατική" style="color:black;">'''''αιτιατική'''''</span>]]]=] ..
	"\n" .. a_acc_pl_masc_str .. acc_pl_masc_str .. a_acc_pl_neu_str .. acc_pl_neu_str .. [=[|-
| style="background:]=] .. c_3 ..
	[=[; text-align:right;"| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[κλητική|<span title="πτῶσις κλητική" style="color:black; font-size:90%;">'''''κλητική'''''</span>]] [[ὦ|<span style="color:black;">ὦ</span>]]!]=] ..
	"\n" .. a_voc_pl_masc_str .. voc_pl_masc_str .. a_voc_pl_neu_str .. voc_pl_neu_str  .. paratirisi .. appendix .. [=[|}]=]

	
end -- close if θηλ=- ορ αθ=1	

end ----------------------------close dual

end --################## close no extra title



--------------------------------------------------------------------------
--                   4. Categories / Κατηγορίες                         --
-- cf /param for LANGUAGES for CATEGORIES
-- μέρος λόγου = the PartOfSpeech (plus as participles etc)
-- τύπος = the catchword of the category in quotation marks
	-- may be τύπος=-
-- κατ = overrides τύπος
-- and free categories
--------------------------------------------------------------------------
-- Categories only in mainspace
	local page = mw.title.getCurrentTitle()
    page.name = page.text:match( "^%s*(.-)%s*$" )
    if page.namespace == 0 then
-- nocat=1
if (args['nocat'] ~= '' and args['nocat'] ~= nil) or (args['00'] ~= '' and args['00'] ~= nil) then
	output = output
else
		-- κατηγορία= overrides everything	
    	if args['κατηγορία'] ~= '' and args['κατηγορία'] ~= nil then -- free text for Category
    		output = output .. '[[Κατηγορία:' .. args['κατηγορία'] .. ']]'
    	else
    		
		local group = args['ομάδα']	or ''	-- need to write it AGAIN HERE
		if args['ομάδα'] ~= '' and args['ομάδα'] ~= nil then
		-- see above the appendix line
		output = output .. "[[Κατηγορία:" .. cat_pos .. " που κλίνονται όπως η ομάδα '" .. group .. "' (" .. 'αρχαία ελληνικά' .. ")]]"
--		output = output .. "[[Κατηγορία:" .. 'Επίθετα' .. " που κλίνονται όπως η ομάδα '" .. group .. "' (" .. 'αρχαία ελληνικά' .. ")]]"
--    	output = output .. "[[Κατηγορία:" .. cat_pos .. " που κλίνονται όπως η ομάδα '" .. group .. "' (" .. lang_name .. ")]]"
		end
		
    	-- see above the appendix line
    	-- SEE notes & add the category at ΚΑΤΗΓΟΡΙΕΣ under mainspace and uner nocat
    	-- all the neuter plurals:
    	if args['κατηγορία κλίσης'] == 'ανώμαλα'
    	then
    	output = output .. "[[Κατηγορία:" .. cat_pos ..  ' ' .. cat_decl .. " (" .. 'αρχαία ελληνικά' .. ")]]"
    	else
    	-- in neuter singular
    	output = output .. "[[Κατηγορία:" .. cat_pos .. " με κλίση όπως το '" .. cat_decl .. "' (" .. 'αρχαία ελληνικά' .. ")]]"
    	end

		-- special categories (irregulars) override all categories for declensions, etc.
		if args['ανώμ'] == '1' or args['κλίση'] == 'ανώμαλα' or args['κλίση'] == '0' then -- βλ. και ανώμ+
			output = output .. '[[Κατηγορία:' .. cat_pos .. 'ανώμαλα (' .. lang_name ..')]]'
-- DO NOT add 'else' here. Irregulars also form categories of their own
		end
		
		
		-- param κατ= για δημιουργία κατηγοριών που συμπληρώνει ο συντάκτης - editor creates Categories ad libitum
		-- Υπερισχύει του 'τύπος' - It overrides 'τύπος'

		typos = args['τύπος'] or args['κατ'] or ''
		-- CONTROL category
			if args['τύπος'] == '-' or args['κατ'] == '-'
			then output = output		-- control category:  [[:Κατηγορία:Ουσιαστικά που κλίνονται όπως το '' (' .. lang_name ..')]]'
			else -- when τύπος is NOT '-'
				-- κατ=
				if args['κατ'] ~= '' and args ['κατ'] ~= nil and args ['κατ'] ~= '-' then
				typos = args['κατ']		-- check [[ἀντίκοιλον]]
				output = output .. '[[Κατηγορία:' .. cat_pos .. " που κλίνονται όπως το '" .. typos .. "' (" .. lang_name .. ")]]"

				else -- NOT κατ=
				typos = args['τύπος']

   	if args['κλίση'] == 'ανώμαλα' or args['κλίση'] == '0' then -- but not ανώμ=1, this is ONLY for categories
   	-- ανώμαλα
   	cat_decl_str = ' [[:Κατηγορία:' .. 'Επίθετα' .. " με κλίση όπως τα '" .. cat_decl .. "' (" .. 'αρχαία ελληνικά' .. ')|Κατηγορία]]'
   	.. '[[Κατηγορία:' .. 'Επίθετα' .. " με κλίση όπως τα '" .. cat_decl .. "' (" .. 'αρχαία ελληνικά' .. ')]]'
	elseif args['κλίση'] == '2αττ' then
	cat_decl_str = ' [[:Κατηγορία:' .. 'Επίθετα' .. " με κλίση όπως το '" .. cat_decl .. "' (" .. 'αρχαία ελληνικά' .. ')|Κατηγορία]]' 
	.. '[[Κατηγορία:' .. 'Επίθετα' .. " με κλίση όπως το '" .. cat_decl .. "' (" .. 'αρχαία ελληνικά' .. ')]]'
	else -- klisi δεύτερη, τρίτη, 2, 3 (επίθετα ή μετοχές)
	cat_decl_str = ' [[:Κατηγορία:' .. cat_pos .. " με κλίση όπως το '" .. cat_decl .. "' (" .. 'αρχαία ελληνικά' .. ')|Κατηγορία]]'
	.. '[[Κατηγορία:' .. cat_pos .. " με κλίση όπως το '" .. cat_decl .. "' (" .. 'αρχαία ελληνικά' .. ')]]'
	end

	
				-- NO special ifs here for special categories
				end -- close κατ=

			end -- close if = '-''
    		
    	end -- close  κατηγορία
    	
       
-- ΑΛΛΕΣ ΚΑΤΗΓΟΡΙΕΣ
	-- ανώμαλα (irregulars) --################### check if this should be uplevel
	if args['ανώμ'] == '1' then
		output = output .. '[[Κατηγορία:' .. cat_pos .. ' ανώμαλα (αρχαία ελληνικά)]]'
	end
-- κλίσεις  2, 3 & βλ. ανώμ=1 
-- DOES NOT EXIST	if args['κλίση'] == '1' then output = output .. '[[Κατηγορία:' .. cat_pos .. ' 1ης κλίσης (' .. lang_name .. ')]]' end
--	if args['κλίση'] == '2' then output = output .. '[[Κατηγορία:' .. cat_pos .. ' 2ης&1ης κλίσης (' .. lang_name .. ')]]' end
	if args['κλίση'] == '2' then output = output .. '[[Κατηγορία:' .. cat_pos .. ' 2ης κλίσης (' .. lang_name .. ')]]' end
	if args['κλίση'] == 'δεύτερη' then output = output .. '[[Κατηγορία:' .. cat_pos .. ' 2ης κλίσης (' .. lang_name .. ')]]' end
	if args['κλίση'] == '2αττ' then output = output .. '[[Κατηγορία:' .. cat_pos .. ' 2ης κλίσης αττικόκλιτα (' .. lang_name .. ')]]' end
	if args['κλίση'] == 'τρίτη' then output = output .. '[[Κατηγορία:' .. cat_pos .. ' 3ης κλίσης (' .. lang_name .. ')]]' end
--	if args['κλίση'] == '3' then output = output .. '[[Κατηγορία:' .. cat_pos .. ' 3ης&1ης κλίσης (' .. lang_name .. ')]]' end
	if args['κλίση'] == '3' then output = output .. '[[Κατηγορία:' .. cat_pos .. ' 3ης κλίσης (' .. lang_name .. ')]]' end


-- plus, see above,  args['εξ'] == '1' creates Κατηγορία:..... εξαιρέσεις
		-- IF exception, then 
		if args['εξ'] == '1' or args['εξαίρεση'] == '1' then -- check [[δεσπότης]] [[Σουσάννα]]
		output = output .. '[[Κατηγορία:' .. cat_pos .. " που κλίνονται όπως το '" .. typos .. "' εξαιρέσεις (" .. lang_name .. ")]]"
		else
		output = output .. '[[Κατηγορία:' .. cat_pos .. " που κλίνονται όπως το '" .. typos .. "' (" .. lang_name .. ")]]"
		end
		
-- ======= EXTRA CATEGORIES: zero is reserved for the module ONLY, not for editors
-- free category, ελεύθερη κατηγορία +part of speech + language
	if args['υποκατ'] ~= '' and args ['υποκατ'] ~= nil then
		output = output .. '[[Κατηγορία:' .. cat_pos .. ' ' .. args['υποκατ'] .. ' (' .. lang_name .. ')]]'
	end
	if args['υποκατ1'] ~= '' and args ['υποκατ1'] ~= nil then
		output = output .. '[[Κατηγορία:' .. cat_pos .. ' ' .. args['υποκατ1'] .. ' (' .. lang_name .. ')]]'
	end
	if args['υποκατ2'] ~= '' and args ['υποκατ2'] ~= nil then
		output = output .. '[[Κατηγορία:' .. cat_pos .. ' ' .. args['υποκατ2'] .. ' (' .. lang_name .. ')]]'
	end
	if args['υποκατ3'] ~= '' and args ['υποκατ3'] ~= nil then
		output = output .. '[[Κατηγορία:' .. cat_pos .. ' ' .. args['υποκατ3'] .. ' (' .. lang_name .. ')]]'
	end
	-- for Module use ONLY 
	if args['υποκατ0'] ~= '' and args ['υποκατ0'] ~= nil then
		output = output .. '[[Κατηγορία:' .. cat_pos .. ' ' .. args['υποκατ0'] .. ' (' .. lang_name .. ')]]'
	end
	if args['υποκατ01'] ~= '' and args ['υποκατ01'] ~= nil then
		output = output .. '[[Κατηγορία:' .. cat_pos .. ' ' .. args['υποκατ01'] .. ' (' .. lang_name .. ')]]'
	end
	if args['υποκατ02'] ~= '' and args ['υποκατ02'] ~= nil then
		output = output .. '[[Κατηγορία:' .. cat_pos .. ' ' .. args['υποκατ02'] .. ' (' .. lang_name .. ')]]'
	end
	if args['υποκατ03'] ~= '' and args ['υποκατ03'] ~= nil then
		output = output .. '[[Κατηγορία:' .. cat_pos .. ' ' .. args['υποκατ03'] .. ' (' .. lang_name .. ')]]'
	end
	if args['υποκατ04'] ~= '' and args ['υποκατ04'] ~= nil then
		output = output .. '[[Κατηγορία:' .. cat_pos .. ' ' .. args['υποκατ04'] .. ' (' .. lang_name .. ')]]'
	end
-- free category, ελεύθερη κατηγορία + language
	if args['κατηγ'] ~= '' and args['κατηγ'] ~= nil then
			output = output .. '[[Κατηγορία:' .. args['κατηγ'] .. ' (' .. lang_name .. ')]]'
	end
	if args['κατηγ1'] ~= '' and args['κατηγ1'] ~= nil then
			output = output .. '[[Κατηγορία:' .. args['κατηγ1'] .. ' (' .. lang_name .. ')]]'
	end
	if args['κατηγ2'] ~= '' and args['κατηγ2'] ~= nil then
			output = output .. '[[Κατηγορία:' .. args['κατηγ2'] .. ' (' .. lang_name .. ')]]'
	end
	if args['κατηγ3'] ~= '' and args['κατηγ3'] ~= nil then
			output = output .. '[[Κατηγορία:' .. args['κατηγ3'] .. ' (' .. lang_name .. ')]]'
	end
	-- for Module use ONLY 
	if args['κατηγ0'] ~= '' and args['κατηγ0'] ~= nil then
			output = output .. '[[Κατηγορία:' .. args['κατηγ0'] .. ' (' .. lang_name .. ')]]'
	end
	if args['κατηγ01'] ~= '' and args['κατηγ01'] ~= nil then
			output = output .. '[[Κατηγορία:' .. args['κατηγ01'] .. ' (' .. lang_name .. ')]]'
	end
	if args['κατηγ02'] ~= '' and args['κατηγ02'] ~= nil then
			output = output .. '[[Κατηγορία:' .. args['κατηγ02'] .. ' (' .. lang_name .. ')]]'
	end
	if args['κατηγ03'] ~= '' and args['κατηγ03'] ~= nil then
			output = output .. '[[Κατηγορία:' .. args['κατηγ03'] .. ' (' .. lang_name .. ')]]'
	end
	if args['κατηγ04'] ~= '' and args['κατηγ04'] ~= nil then
			output = output .. '[[Κατηγορία:' .. args['κατηγ04'] .. ' (' .. lang_name .. ')]]'
	end
	
-- free category, ελεύθερη κατηγορία NO LANGUAGE no restrictions, write free text
	if args['cat-extra'] ~= '' and args['cat-extra'] ~= nil then
			output = output .. '[[Κατηγορία:' .. args['cat-extra'] .. ']]'
	end
	if args['cat-extra1'] ~= '' and args['cat-extra1'] ~= nil then
			output = output .. '[[Κατηγορία:' .. args['cat-extra1'] .. ']]'
	end
	if args['cat-extra2'] ~= '' and args['cat-extra2'] ~= nil then
			output = output .. '[[Κατηγορία:' .. args['cat-extra2'] .. ']]'
	end
	if args['cat-extra3'] ~= '' and args['cat-extra3'] ~= nil then
			output = output .. '[[Κατηγορία:' .. args['cat-extra3'] .. ']]'
	end
	-- for Module use ONLY 
	if args['cat-extra0'] ~= '' and args['cat-extra0'] ~= nil then
			output = output .. '[[Κατηγορία:' .. args['cat-extra0'] .. ']]'
	end
	if args['cat-extra01'] ~= '' and args['cat-extra01'] ~= nil then
			output = output .. '[[Κατηγορία:' .. args['cat-extra01'] .. ']]'
	end
	if args['cat-extra02'] ~= '' and args['cat-extra02'] ~= nil then
			output = output .. '[[Κατηγορία:' .. args['cat-extra02'] .. ']]'
	end
	if args['cat-extra03'] ~= '' and args['cat-extra03'] ~= nil then
			output = output .. '[[Κατηγορία:' .. args['cat-extra03'] .. ']]'
	end
	if args['cat-extra04'] ~= '' and args['cat-extra04'] ~= nil then
			output = output .. '[[Κατηγορία:' .. args['cat-extra04'] .. ']]'
	end
	
end -- close nocat	
end -- close 'if namespace'



return output -- close fulltable

end


--------------------------------------------------------------------------
--          5. GENERAL DECLENSIONS  / ΓΕΝΙΚΕΣ ΚΛΙΣΕΙΣ                   --
--------------------------------------------------------------------------

----------------------------------------------------------------------------------------
--    GENERAL PATTERNS of DECLENSIONS  / ΜΗΤΡΙΚΕΣ ΛΕΙΤΟΥΡΓΙΕΣ ΚΛΙΣΕΩΝ
-----------------------------------------------------------------------------------------

--------------------------------5. DECL--------------------------------------
-- decl - it creates functions for specific declensions at the function pages
-- otherwise, it is EXACTLY like free
-----------------------------------------------------------------------------
decl = function(args)	-- creates functions at the /function page

-- all the declension parameters & functions: ======================
require ('Module:grc-adj-decl/param').param (args)

------------
return fulltable(args)
end




--------------------------------------------------------------------------
--                   CREATE TEMPLATE with all parameters             --
--------------------------------------------------------------------------
-- [[Πρότυπο:grc-adj-decl]]

export.free = function(frame)
--local args = frame:getParent().args	-- for Templates
local args = frame.args		-- invoke

-- all the declension parameters & functions: ======================
require ('Module:grc-adj-decl/param').param (args)

------------
return fulltable(args)
end


--------------------------------------------------------------------------
--           SPECIFIC TEMPLAGES / ΕΠΙΜΕΡΟΥΣ ΠΡΟΤΥΠΑ                     --
--------------------------------------------------------------------------
-- =================== α...ω ======================= --

-- see subpages 

return export


--[=[
ΣΗΜΕΙΩΣΕΙΣ (in English, below)
	Ο συντάκτης μπορεί να αλλάξει μόνο ολόκληρες λέξεις του module γράφοντας 
		π.χ. |οεΛ-αρσ= (ονομαστική.ενικόςΛέξη-αρσενικό=) Χρησιμοπιούμε το Πρότυπο:λθκ για να γράψουμε θέμα+κατάληξη.
	ΣΤΗΛΕΣ: γένη: αρσενικό, θηλυκό, ουδέτερο. Κάθε πτώση έχει 2 κελλιά: άρθρο+λέξη.
		Τα άρθρα μπορούν να παραλείπονται με |άρθρα=-
		Και πίνακας με 2 στήλες: αρσενικό+θηλυκό, ουδέτερο
	ΛΕΞΗ: = θέμα + κατάληξη με σύνδεσμο
	Λκειμ = προσθέτουμ κείμενο μετά τη λέξης
Π.χ. οεθ-αρσ = θέμα ονομαστικής ενικού αρσενικού
Π.χ. γπ-ουδ = κατάληξη γενικής ουδέτερου
Π.χ. απΛ-θηλ = ολόκληρη η λέξη στην αιτιατική θηλυκού
	Default θέμα, το λήμμα μείον 2 γράμματα από το τέλος ή όπως ζητήσει ο συντάκτης με |μείον=
		Το θέμα με μετακίνηση τόνου δημιουργείται από το [[Module:grk-stems]]
	decl function κλίσης με όλες τις παραμέτρους
NOTES
* cases: initial greek letters for case + number e.g. οε= nominative.singular. γε= gen.sg. γπ= gen.plural.
	and Λ = Λέξη (word) for whole words and the whole string e.g. οεΛ= word nom.sg.
	and θ = stem for this case, e.g. οεθ= stem for nom.sg.
	and Λκειμ = text after word
* genders: add suffix -αρσ (masculine) -θηλ (feminine) -ουδ (neuter)
E.g. οε-αρσ = ending of nominative singular masculine
Ε.γ. γπθ-ουδ = stem for genitive plural neuter
E.g. γπΛ-θηλ = the whole word, genitive plural feminine
	
* mod- Prefix for params defined IN the module at function pages
	mod-τίτλος (the eidtor may suppress, and write τίτλος=)
	Editor can suppress modules words only for whole words with 
		e.g. |οεΛ-αρσ= (nominative.singularWord-masculine=) Use Template:λθκ to write stem+ending.
	COLUMNS: genders: masculine, feminine, neuter. Every case has 2 cells: article+the adjective.
		If not desired, articles may by omitted with  |άρθρα=-
]=]--


--[=[
STEMS: default stem is minus 2 letters from the end (stemnumber 3) args['μείον'] = 2 
		as in [[Module:grk-stems]]
		- otherwise stems should be written out
		If special features are needed (brackets, etc), then the full line should be written, 
		with create_link, as in /param page
	-- In general, i rewrite it, to have a clear view of the whole word.
	Examples:
	local stem = {}
	stem["θ"] = mw.ustring.sub(args['λήμμα'],1,-3)		-- stem as found in lemma -- start from 1st letter of lemma, stop at 3rd from the end (minus 2 letters)
	stem["θ0"] = m_stems.word0(stem["θ"])				-- remove accent
	stem["θ1"] = m_stems.word1(stem["θ0"])				-- accent on 1st syllable from the end (Accent is tonos or oksia. Used mainly for monotonic script)
	stem["θ1"] = m_stems.PerispomeniToOxia(stem["θ"])	-- convert perispomeni to oxia, or let it be -- also named θ1οξ
	stem["θ1π"] = m_stems.OxiaToPerispomeni(stem["θ"])	-- convert oxeia to perispomeni, or let it be
		args['μείον'] = 1 -- skip default stemnumber = 3 (μείον 2)
		stem["θ"] = mw.ustring.sub(args['λήμμα'],1,-2)
-- Smyth adjectives http://www.perseus.tufts.edu/hopper/text?doc=Perseus%3Atext%3A1999.04.0007%3Apart%3D2%3Achapter%3D13%3Asection%3D20
]=]--