Template:ChallengeCats/doc

This template is used for automatically generating categories for the Creature template and the Person template when a Challenge Rating (CR) has been specified. It is not meant to be used as a stand-alone template.

Usage
This template expects two positional parameters and has an optional named parameter, npc. The first parameter,, is the edition number as an integer. Use 3 for both 3rd and 3.5 editions because we do not make a distinction between them in the categories (but we do in the infobox). Use 5 for 5th edition, and so on. The second positional parameter,, is the CR as either an integer or a fraction. Fractions such as ½, 1/2, and  should all work. Do not use a decimal point. The template will generate one category each time it is called. Setting the optional parameter npc to any non-blank value will change the category from "Creatures" to "Inhabitants". See the examples below.

Examples
Here are some examples of template calls and the categories produced. For creatures: → →  → For persons/NPCs: →