Template:Table style/doc

Usage

 * This template allows shorthand table styling parameters. It supports up to 10 CSS style commands (e.g. "text-align:right;"), each bound to a shorthand code.
 * If you want to add a shorthand entry, add it to table style/parse.
 * Natural language codes that are not in the list of below, can be used in addition, or in combination with the shorthand codes. Natural language codes need to be terminated with the semicolon, while shorthand codes include the semicolon.
 * Units are px, em, %, but they are not part of the code. Consider the units in context.

Suggested codes

 * Suggested shorthand codes, indicated with yellow background do not exist.
 * The new shorthand codes (added on 2019-09-03) are additions and not replacements. Both codes are valid.
 * The digits in the suggested codes were padded with 0 for uniformity.

List of parameters

 * The suggested shorthand codes don't exist.
 * They would be additions and all codes both codes are valid.
 * These suggested shorthand codes were padded uniformity.
 * Shorthand codes may use use px, em, %, but these not indicated in the code.

Examples
  produces style="text-align:right; border:1px solid black; font-variant:small-caps;"

  produces style="text-align:right; vertical-align:top; padding-right:2.0em;"

Natural language code combined with shorthand code:
  produces style="text-align:right; padding-right:2.0em;"

Where to place the template in a table?
Either at the start of the table, or on a row break, or for an individual cell.

In the following example the templates first sets the text in all the cells to be centered. Then on the second row (after the heading row) all the text in the row to be left justified, finally the third row second column (the number of years) to be right justified.

Display as: