Template:Mainonly/doc

This Mainonly template allows a particular piece of text to only be displayed when included in the main namespace. Useful for adding category links to templates. Nameless first parameter is the text to be included.

Borrowed from Runescape wiki.