Template:CR table/doc

This template is used within the Creature infobox for cases where a creature has different challenge ratings (CRs), depending on form, subrace, life stage, etc. Intended for the  and   fields of Creature, it uses a standard format to display the information and automatically generates the appropriate CR categories. If a creature has a different sizes for each of its challenge ratings—which is sometimes the case—you will likely also want to make use of the similar Size table.

Usage
This template takes up to twelve label/CR pairs, plus two optional parameters:
 * edition : Setting this to "3e" or "5e" indicates for which edition the categories should be generated. If absent, the template will not generate categories and will only format the table, acting as if  were used.
 * nocat  : Optional Setting this to   will suppress the generation of categories. Used mainly for documentation pages like this one.

Examples
This is an example of the template being used with the Creature template. (Most parts of that template are not shown.)

The previous code will generate the following categories automatically:
 * Category:Tiny creatures
 * Category:Large creatures
 * Category:Huge creatures
 * Category:Animals
 * Category:Animals (3e)
 * Category:Creatures of neutral alignment
 * Category:Creatures with a challenge rating less than 1 (3e)
 * Category:Creatures with a 1 challenge rating (3e)
 * Category:Creatures with a 2 challenge rating (3e)

Under the Hood
This template uses ChallengeCats to generate categories and Numeric table to format the information.