Template:Template doc page viewed directly/doc

This template takes an optional parameter which replaces the name of the template, intended for use where one page contains the documentation for several related templates.

Usage
Normal usage:

If it is the documentation page for the two templates "A" and "B":