Template:el-decl-adj

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

Use[edit]

  • Template to display declension tables for Greek adjectives, including as requested positive, comparative, relative superlative and absolute superlative forms.
  • {{el-decl-adj}} uses a number of templates which should only be accessed via this one.
  • Example:

{{el-decl-adj|stem=μητρικ|dec=ός-ή-ό}} which gives:


Syntax[edit]

Variable Description Example Notes
Positive inflections and periphrastic derivations (πιο forms)
dec The appropriate declension ID, for example  ός-ή-ό .
To be found at Wiktionary:Greek adjective inflection-table templates
dec=ός-ή-ό Obligatory
stem The stem for positive forms (ie the lemma form without ending) stem=αύξ Obligatory
stem2 The stem with altered stress (where relevant) stem2=αυξ Optional
part For participles - ensures the correct declension category part=1 As appopriate
long May be used for long words which run off the screen long=1 Only use when essential
nopio Any value supresses output of πιο forms nopio=1 optional
posnote Any necessary notes for positive forms posnote=Vocative forms are rare optional
Comparative, relative superlative and absolute superlative
compstem Use of this variable flags output of comparative and relative superlatives compstem=πονηρότερ optional
abstem Use of this variable flags output of absolute superlative abstem=πονηρότατ optional
docnote Any necessary notes for these DoCs (degrees of comparison) docnote=the absolute forms are rare optional
Exceptionally
lemma replaces PAGENAME in the table header

Operation[edit]

Although a number of templates are used to produce these tables, they are all accessed though {{el-decl-adj}}, only this one should be used.

The table below attempts to show its operation:

 el-decl-adj   with 'dec','stem',+ others
        call el-decl-adj-positive with 'dec','stem',+others
      print table outline for positive forms
      selects declension template to match 'dec'
              in this case dec='ος-η-ο', therefore:
call el-decl-adj-ος-η-ο with stem,+others
      sets appropriate numbered arguments for:
        call el-decl-adj-table with numbered arguments
     print values in appropriate cells
        print footers
      if 'compstem'
call el-decl-adj-degrees with 'compstem','abstem','note'
      print degrees of comparison table(s) outline
      nb 'ος-η-ο' is the standard paradigm for these forms
call el-decl-adj-ος-η-ο with 'compstem'
      sets appropriate numbered arguments for:
        call el-decl-adj-table with numbered arguments
     print values in appropriate cells
     if 'abstem'
call el-decl-adj-ος-η-ο with 'abstem'
      sets appropriate numbered arguments for:
        call el-decl-adj-table with numbered arguments
     print values in appropriate cells
        print footer