Template:Mainonly/doc: Difference between revisions

From Create: Minecraft Mod Wiki
Jump to navigation Jump to search
Create: Minecraft Mod Wiki>Joker876
Created page with "{{Documentation subpage}} Only inserts content onto the main namespace. As such, its primary use is within templates, for any information you'd only want di..."
 
BoxWithout (talk | contribs)
m 1 revision imported
 
(No difference)

Latest revision as of 21:33, 14 February 2025

This is a documentation subpage for Template:Mainonly.
It contains usage information, categories and other content that is not part of the original template page.

Only inserts content onto the main namespace. As such, its primary use is within templates, for any information you'd only want displayed on article pages (such as categories).

See {{Namespace}} for a template with more options.

Syntax[edit source]

{{Mainonly|content}}

Example[edit source]

{{Mainonly|Categories rock! [[Category:Browse]]}}

is entered in below, but not displayed as this page is on the Template namespace (Note that as this is on a documentation page, it will never actually be on the main namespace).