Difference between revisions of "Template:Documentation"

From BPM Wiki
Jump to navigation Jump to search
(Created page with "<noinclude><div style="display:none;"></noinclude><div style="border:1px solid black; margin:1em; margin-top:3em;"><div style="background:#ddd; color:#111; padding:1em; margin...")
 
 
Line 1: Line 1:
<noinclude><div style="display:none;"></noinclude><div style="border:1px solid black; margin:1em; margin-top:3em;"><div style="background:#ddd; color:#111; padding:1em; margin:0em;">'''Template documentation''' <span style="font-size:85%;">(for the template above, sometimes hidden or invisible)</span></div><div style="padding:1em; padding-bottom:0em; margin:0em;">{{{{PAGENAME}}/doc}}
+
<noinclude><div style="display:none;"></noinclude><div style="border:1px solid black; margin:1em; margin-top:3em;"><div style="background:#ddd; color:#111; padding:1em; margin:0em;">'''Template documentation''' <span style="font-size:85%;">(for the template above, sometimes hidden or invisible)</span></div><div style="padding:1em; padding-bottom:0em; margin:0em;">
 +
{{{{PAGENAME}}/doc}}<!-- Must be in its own line -->
 
</div><br style="clear:both;"/><div style="background:#ddd; color:#111; padding:0.5em; margin:0em; font-size:85%; text-align:right;">Visit [[Template:{{PAGENAME}}/doc]] to edit this text. ([[Template:Documentation|How does this work]]?)</div></div><noinclude></div>
 
</div><br style="clear:both;"/><div style="background:#ddd; color:#111; padding:0.5em; margin:0em; font-size:85%; text-align:right;">Visit [[Template:{{PAGENAME}}/doc]] to edit this text. ([[Template:Documentation|How does this work]]?)</div></div><noinclude></div>
 
{{documentation}}[[Category:Template documentation| ]]</noinclude>
 
{{documentation}}[[Category:Template documentation| ]]</noinclude>

Latest revision as of 14:13, 20 September 2020

Template documentation (for the template above, sometimes hidden or invisible)

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..


Template documentation (for the template above, sometimes hidden or invisible)

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..