Template:TlDoc/doc: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Caesar Schinas
No edit summary
imported>Caesar Schinas
No edit summary
Line 1: Line 1:
<!-- Do not remove this line. Replace the instructions below with the correct documentation. -->
<!-- Do not remove this line. Replace the instructions below with the correct documentation. -->
==== Usage ====
==== Usage ====
<code><nowiki>{{TlDoc}}</nowiki></code> is used to include template documentation, stored on the <code>.../doc</code> [[CZ:Subpage|subpage]] of that template (to minimize the size of the template), when a template page is viewed directly.<br />
<code><nowiki>{{TlDoc}}</nowiki></code> is used to include template documentation, stored on the <code>.../doc</code> [[CZ:Subpage|subpage]] of that template (to minimize the size of the template), when a template page is viewed directly.<br />

Revision as of 01:55, 5 May 2009

Usage

{{TlDoc}} is used to include template documentation, stored on the .../doc subpage of that template (to minimize the size of the template), when a template page is viewed directly.
Important: Wrap the call to {{TlDoc}} inside <noinclude>...</noinclude> tags as seen below, to prevent the documentation from being shown on pages where the template is used.

Example

The following code should be used on the template page :

<includeonly>
...template code here...
</includeonly><noinclude>{{TlDoc}}</noinclude>

to give the following result when the template page is viewed :


No documentation has yet been written for this template. Create Documentation