Template:Get regnum()/doc

Usage
Input: Taxon name

Output:
 * regnum (or equivalent higher category), linked

Calls Template:Is reg repeatedly for each taxon in a taxobox. Because that template returns a null string for all non-regna, all that remains will be the regnum. Pass this output to Taxobox colour to generate colours for a taxobox.