Template:Alignment class/doc


 * This template is originally from the Forgotten Realms Wiki.

The template alignment class is used in the infobox class and displays the possible alignments, this class can choose from.

It displays a square grid of three times three squares that highlight given alignments with a different background color and optional ones with a frame only. Alignment labels are abbreviated with two upper-case letters and link to their article. Which alignment is set to which state is determined by filling the appropriate parameters accordingly: their default value is "no", restriction to a single alignment uses "yes", and if it's possible to choose from multiple alignments, "opt" is set for optional. All definite and optional alignments will add the article automatically to the according "classes by alignment" categories.


 * Parameters

The template and its parameters as value for  could be overwritten inside the infobox to display something else than the grid, though there aren't many cases where this seems useful.

Usage

 * Some possible alignments

Filling the infobox as this will display:


 * A strictly restricted choice of alignments

Using "yes" instead of "opt" will display: