Template:Documentation/doc: Difference between revisions

Template page
(Created page with "== Usage == #Create a <code>/doc</code> page for your template that documents the usage. #Add the following to the bottom of your template: <pre><nowiki><noinclude>{{Documentation}}</noinclude></nowiki></pre>")
 
No edit summary
Line 5: Line 5:


<pre><nowiki><noinclude>{{Documentation}}</noinclude></nowiki></pre>
<pre><nowiki><noinclude>{{Documentation}}</noinclude></nowiki></pre>
You can override the default title of this section by providing a title argument:
<pre><nowiki><noinclude>{{Documentation|title=<title>}}</noinclude></nowiki></pre>

Revision as of 08:25, 11 September 2023

Usage

  1. Create a /doc page for your template that documents the usage.
  2. Add the following to the bottom of your template:
<noinclude>{{Documentation}}</noinclude>

You can override the default title of this section by providing a title argument:

<noinclude>{{Documentation|title=<title>}}</noinclude>