Template:TOCright/doc

This template both forces the contents box to appear on an article and also floats it to the right, placing a maximum limit on its width.

Usage (at the top of an article):