Line 1: |
Line 1: |
| ==Description== | | ==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 templates. Nameless first parameter is the text to be included. | + | 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== | | ==Use== |
Line 7: |
Line 7: |
| <pre>{{Mainonly}}</pre> | | <pre>{{Mainonly}}</pre> |
| | | |
− | <includeonly>[[Category:General wiki templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | + | <includeonly>{{Addlanglinks}}[[Category:Templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> |
− | <includeonly>{{Addlanglinks}}</includeonly>
| |