Template:MainOnly/doc

< Template:MainOnly
Revision as of 13:53, 4 June 2024 by Auron956 (talk | contribs) (Docs for new template)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Allows the specified piece of text to be displayed only when included within the main namespace. Useful for adding things to templates (such as categories) which should only be shown when the template is transcluded within another page.

The first parameter specifies the text to be displayed, example: {{MainOnly|[[Category:Dungeons]]}}