Difference between revisions of "Template:Documentation/doc"

From BPM Wiki
Jump to navigation Jump to search
 
Line 3: Line 3:
  
 
== Usage ==
 
== Usage ==
<code><nowiki>
+
<pre><nowiki>
(template code goes here...)<noinclude>{{documentation}}</noinclude>
+
...template code...<noinclude>{{documentation}}</noinclude>
</nowiki></code>
+
</nowiki></pre>
Do ''not'' add whitespace between the template code and the <code><nowiki>{{documentation}}</nowiki></code>.
+
 
 +
One should be careful to ''not'' add whitespace between the template code and the <code><nowiki>{{documentation}}</nowiki></code> tag, or it can insert an extraneous space whenever the template is used, which may not be desirable in some cases..

Latest revision as of 14:37, 20 September 2020

Purpose[edit]

This is a template to document templates.

Usage[edit]

...template code...<noinclude>{{documentation}}</noinclude>

One should be careful to not add whitespace between the template code and the {{documentation}} tag, or it can insert an extraneous space whenever the template is used, which may not be desirable in some cases..