Template talk:fi-gradation

Produces a consonant gradation summary table, as used in Appendix:Finnish conjugation types/sanoa or Appendix:Finnish declension types/valo. See those for parameters.

Designed to allow any details of formatting to be easily adjusted, without having to touch the 75-odd places it is used. This makes the template implementation a bit tricky, but the benefit is that style adjustments only need to be made in just a couple of places.

Template parameters

 * row=name of row
 * grade=strength of row - must be "strong" or "weak"
 * kk="stem" of kk→k example word, ie the bit that appears to the left of the kk/k in every row. If omitted, there is no kk→k word, and the column is omitted.
 * tt,t,lt,kj,kv,xa,xb: as for kk, but other gradations. Last few are k→j, k→v, and two custom ones.
 * kk<,etc: substitute "prefix" for kk→k word in the nth row, instead of kk. Implemented for rows 1 and 4 only — extend as needed.
 * xas,xaw,xbs,xbw: Specify the custom gradations → and →
 * kk,pp,etc: "suffix" for kk→k,pp→p word in the nth row, ie the bit that appears to the right of the kk/k. Only row 1 normally needs to be specified for regular gradation, the other rows are automated.
 *  : specifies what   from row 1 maps to in row . Eg if kk1=oa and oa2=on, then the second row of kk→k has the suffix -on. This would be overridden if kk2 is manually specified.