Difference between revisions of "Template:Mainonly/doc"
Jump to navigation
Jump to search
Oath2order (talk | contribs) (Created page with "==Description== This '''Mainonly''' template allows a particular piece of text to only be displayed when included in the main namespace. Useful for adding category links to te...") |
Margotbean (talk | contribs) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
==Description== | ==Description== | ||
− | This | + | This template allows a particular piece of text to be displayed only when included in the main namespace. Useful for adding category links to templates. Nameless first parameter is the text to be included. |
− | == | + | ==Use== |
This template can be used by entering the following onto a relevant page. | This template can be used by entering the following onto a relevant page. | ||
<pre>{{Mainonly}}</pre> | <pre>{{Mainonly}}</pre> | ||
− | <includeonly>[[Category: | + | <includeonly>{{Addlanglinks}}[[Category:Templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> |
Latest revision as of 21:54, 8 January 2023
Description
This template allows a particular piece of text to be displayed only when included in the main namespace. Useful for adding category links to templates. Nameless first parameter is the text to be included.
Use
This template can be used by entering the following onto a relevant page.
{{Mainonly}}