Documentation for this module may be created at Module:testing/param/τεκμηρίωση

-- parameters data [[wikt:el:Sarri.greek]]

--[=[
INSTRUCTIONS for param page:
Call if from the Module by placing EXACTLY where it is needed:
	require ('Module:xxx/zzz').zzz (args)
	DO NOT change anything else. DO NOT add at top of page a m_zzz = require this and that.
The name of the page 'param' or zzz is also the name of the local function zzz (args), and at the end, return {zzz = zzz}
-- USE: local for the functions of THIS module

--------------------------------------------------------------------------
-- COPY HERE parameters or functions needed from the Module
--------------------------------------------------------------------------
-- ...



--[=[--------------------------< I S _ S E T >------------ -- by [[w:en:User talk:Trappist the monk]]
Returns true if argument is set; false otherwise. Argument is 'set' when it exists (not nil) or when it is not an empty string.
]]
--[=[ explanation:
The is_set() function may be added so that tests like this:
	if args['ακε'] ~= '' and args['ακε'] ~= nil then args['ακε'] = args['ακε'] else args['ακε'] = '' end
can be reduced to:
	if not is_set (args['ακε']) then args['ακε'] = '' end
]=]--

local function is_set (var)
	return not (var == nil or var == '');
end

--------------------------------------------------------------------------
--                            function                           --
--------------------------------------------------------------------------
local function param (args)


-- PARAMETERS args =============== DO NOT MOVE under the if lang, then subpages
-- FOR EDITOR, named and numbered
mylang = args['iso'] or args['1'] or ''		args['iso'] = args['iso'] or ''
		-- yes, it also sees args['1']
-- see at subpages: myauthor, mywork, mychapter, myline

-- other params for editor, named not numbered

mypage = args['page'] or args['σελ'] or ''		args['page'] = args['page'] or ''
	-- number of page for external links
-- and see at the BLOCKS
mypretitle = args['.τίτλος'] or args['.title'] or ''		args['.τίτλος'] = args['.τίτλος'] or ''
	if mypretitle ~= '' and mypretitle ~= nil then mypretitle = mypretitle .. ' ' end -- add space at end
myposttitle = args['τίτλος+'] or args['title+'] or ''	args['τίτλος+'] = args['τίτλος+'] or ''
myaltchapter = args['altchapter'] or args['εμφκεφ'] or '' args['altchapter'] = args['altchapter'] or ''
myaltline = args['εμφ'] or args['alt'] or ''	args['εμφ'] = args['εμφ'] or '' -- editor changes myline
mypassage = args['vv'] or args['στίχοι'] or ''	args['vv'] = args['vv'] or '' -- editor adds passage verse numbers e.g. (50-55)
	-- mycomment
	
-- to OMIT something:
mynopreliminaries = args['0'] or  ''				args['0'] = args['0'] or ''
	-- we write 0=-  to take off the symbol and time-centuries
mynocat = args['00'] or args['nocat'] or ''			args['00'] = args['00'] or ''
	-- we write 00=- or nocat=1 to take away the categories added by the symbol (is param subject=)	See above:quotation Section.
mynodata  = args['000'] or args['nodata'] or ''		args['000'] = args['000'] or ''
	-- we write 000=- or nocata=1 to take away everything except the chapter/line sourceblock

-- for grc (Ancient Greek) function translation to Κέντρο Ελληνικής Γλώσσας.
	-- param names as in [[wikt:el:Template:ΠΜ:ΚΕΓ]]
trans_id = args['μτφ'] or args['p'] or ''		args['μτφ'] = args['μτφ'] or ''
trans_hi = args['φ'] or args['hi'] or ''			args['φ'] = args['φ'] or ''
trans_auth = args['συγγ'] or args['auth'] or ''	args['συγγ'] = args['συγγ'] or ''




-- ---------------------------------
end -- close function

return {param = param}