Template:Alignment/doc


 * This template is originally from the Forgotten Realms Wiki.

The template Alignment is used in infoboxes of articles that display a certain alignment: the given or possible alignment of creatures, companions and deities and alignment restrictions/prerequisites for classes.

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. Which alignment is set to which state is determined by filling the appropriate parameters accordingly: their default value is "no", a defined alignment uses "yes", and if for e.g. classes the alignment can be chosen from a number of possible ones or if a companion's alignment may shift due to the protagonist's influence, "opt" can be set for optional.


 * Parameters

If all parameters use their default value of "no", "Alignment" isn't shown in the infobox.

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. For example, if it's intended to note that an alignment shift for a companion will happen when their quest is solved in a certain manner, it's preferable to mark the infobox alignment as optional and explain the background in the according section of the article.

Usage
An example creature with an almost empty infobox:
 * One defined and two optional alignments

Filling the infobox as this will display:


 * All parameters on their default "no"

No changes to the default infobox will display: