Template:Mainonly

From Create: Minecraft Mod Wiki
Revision as of 09:18, 14 April 2021 by Create: Minecraft Mod Wiki>Joker876 (Created page with "{{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{{1|}}}|{{{2|}}}}}<noinclude>{{Documentation}}</noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
[view | edit | history | purge]Documentation

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

{{Mainonly|content}}

Example

{{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).

[view | edit | history | purge]The above documentation is transcluded from Template:Mainonly/doc.