Template:Documentation/doc: Difference between revisions
From Eco - English Wiki
[checked revision] | [checked revision] |
No edit summary Tag: 2017 source edit |
No edit summary Tag: 2017 source edit |
||
Line 4: | Line 4: | ||
==Syntax== | ==Syntax== | ||
Add <code><nowiki><noinclude>{{Documentation}}</noinclude></nowiki></code> at the end of the template page. | Add <code><nowiki><noinclude>{{Documentation}}</noinclude></nowiki></code> at the end of the template page. | ||
==Usage== | ==Usage== | ||
Line 11: | Line 9: | ||
===On the Template page=== | ===On the Template page=== | ||
This is the normal format when used: | This is the normal format when used: | ||
<syntaxhighlight lang="mediawiki"> | |||
TEMPLATE CODE | |||
<includeonly>Any categories to be inserted into articles by the template</includeonly> | |||
<noinclude>{{Documentation}}</noinclude> | |||
</syntaxhighlight> | |||
===On the documentation page=== | |||
The documentation page is usually located on the /doc subpage for a template, but a different page can be specified with the first parameter of the template. | |||
<includeonly>[[Category:Documentation templates]]</includeonly><noinclude></noinclude> | <includeonly>[[Category:Documentation templates]]</includeonly><noinclude></noinclude> | ||
<noinclude>[[Category:Template Docs]]</noinclude> | <noinclude>[[Category:Template Docs]]</noinclude> |
Revision as of 08:56, 20 May 2024
Description
This template is used to insert descriptions on template pages.
Syntax
Add <noinclude>{{Documentation}}</noinclude>
at the end of the template page.
Usage
On the Template page
This is the normal format when used:
TEMPLATE CODE
<includeonly>Any categories to be inserted into articles by the template</includeonly>
<noinclude>{{Documentation}}</noinclude>
On the documentation page
The documentation page is usually located on the /doc subpage for a template, but a different page can be specified with the first parameter of the template.