Template:Mainonly: Difference between revisions
From Workers & Resources: Soviet Republic Official Wiki
workers-resources-fandom>Letter N (Created page with "{{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{{1|}}}|{{{2|}}}}}<noinclude>{{Documentation}}</noinclude>") |
workers-resources-fandom>Abominação No edit summary |
||
Line 1: | Line 1: | ||
{{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{{1|}}}|{{{2|}}}}}<noinclude>{{Documentation}}</noinclude> | {{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{{1|}}}|{{{2|}}}}}<noinclude> | ||
{{Documentation}} | |||
[[Category:Auxiliary templates]] | |||
</noinclude> |
Revision as of 01:24, 10 January 2023
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).