Template:Documentation: Difference between revisions

From wizzypedia
Jump to navigation Jump to search
en>Bsherr
(consistent with new substitution template format)
m (1 revision imported)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}<noinclude>
Used to create documentation for templates
<!-- Add categories to the /doc subpage -->
 
</noinclude>
==Usage==
There are two ways to use this template.
 
1. Add to the bottom of your template:
<pre><nowiki><noinclude>{{doc}}<noinclude></nowiki></pre>
 
Then click on the "Create" link to get started with your documentation.
 
2. Include the documentation directly in the template (not preferred method):
<pre><nowiki><noinclude>{{doc|text=
Documentation text
 
==Usage==
How to use the template, etc.
}}<noinclude></nowiki></pre>
 
<noinclude>[[Category:Documentation templates]]</noinclude>

Latest revision as of 15:45, 15 July 2022

Used to create documentation for templates

Usage

There are two ways to use this template.

1. Add to the bottom of your template:

<noinclude>{{doc}}<noinclude>

Then click on the "Create" link to get started with your documentation.

2. Include the documentation directly in the template (not preferred method):

<noinclude>{{doc|text=
Documentation text

==Usage==
How to use the template, etc.
}}<noinclude>