Template:FileOnly/doc

< Template:FileOnly
Revision as of 15:41, 17 June 2024 by Ricewind (talk | contribs) (Created page with "Allows the specified piece of text to be displayed only when included within the File 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: {{T|FileOnly|<nowiki>Category:Dungeons</nowiki>}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Allows the specified piece of text to be displayed only when included within the File 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: {{FileOnly|[[Category:Dungeons]]}}