Template:TlDoc: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Caesar Schinas
No edit summary
imported>Daniel Mietchen
 
Line 7: Line 7:
[[Category:Templates without documentation]]
[[Category:Templates without documentation]]
}}
}}
[[Category:Templates]]

Latest revision as of 06:11, 19 March 2010

This documentation is transcluded from Template:TlDoc/doc (edit | history)

{{TlDoc}} is used to include template documentation, stored on the .../doc subpage of each template, when a template page is viewed directly.

Usage

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.
<includeonly>
...template code here...
</includeonly><noinclude>{{TlDoc}}</noinclude>

The template has one optional parameter, complex, which causes a message to be displayed saying that the template uses complex code.

Examples

{{TlDoc}}
gives

This documentation is transcluded from Template:TlDoc/doc (edit | history)

Template loop detected: Template:TlDoc/doc


{{TlDoc|complex}}
gives

This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template.
If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages.
Remember that you can and should conduct experiments and test improvements in your user space before changing anything here.
This documentation is transcluded from Template:TlDoc/doc (edit | history)

Template loop detected: Template:TlDoc/doc