Template:el-conjug-sub2

From Wiktionary, the free dictionary
Jump to navigation Jump to search

An internally used sub-template for Greek conjugation inflection tables which returns one of the following:

  • A "free text" form created by the editor.
  • A "dash" indicating absence ({{el-conjug-sub2a}} leaves a nothing).
  • The default form.
Positional/numbered parameters
  1. The free text form set by the editor - must be linked where required - (eg  a-past-2s ,  a-impf-3s , etc);
    a hyphen may be used to produce a blank cell.
  2. The "absent tense" flag set by the editor, blanks the whole tense (eg  no-a-imperfect ).
  3. The verb's usual default inflected form.
used by 1st and 2nd-B
: arguments are NOT linked before o/p

* <1> = text set by editor
* <2> = a "no" flag (eg no-a-imperfect) - for blanking whole tense
* <3> = the default form
IF <1> EXISTS
	THEN IF <1> EQ "-"   (a hyphen, ascii#45)
			THEN o/p m-dash
			ELSE IF <2> EXISTS
					THEN o/p m-dash   (blanking whole tense)
					ELSE <3>
					ENDIF
			ENDIF
For example
|a-impf-1s=
     {{el-conjug-sub2
         |{{{a-impf-1s|}}}                                 a form set by the calling editor
         |{{{no-a-imperfect|}}}                            usually used to blank the whole of one tense
         |[[{{{a-imperfect|}}}α]]{{#if:{{{a-imperfect-2|}}}|, [[{{{a-imperfect-2|}}}α]] }}
                                                           individually set default/s
         }}