Template:TlDoc: Difference between revisions
Jump to navigation
Jump to search
imported>J. Noel Chiappa m (Italics) |
imported>David Yamakuchi mNo edit summary |
||
Line 1: | Line 1: | ||
<div class="template-documentation"><div style="padding-bottom:3px; border-bottom: 1px solid #aaa; margin-bottom:1ex">{{#ifexist: {{FULLPAGENAME}}/doc | __NOEDITSECTION__<div class="template-documentation"><div style="padding-bottom:3px; border-bottom: 1px solid #aaa; margin-bottom:1ex">{{#ifexist: {{FULLPAGENAME}}/doc | ||
|<span class="editsection plainlinks" id="doc_editlinks">''This documentation is transcluded from:'' [[{{FULLPAGENAME}}/doc]] <small style="font-style: normal">([{{fullurl:{{FULLPAGENAME}}/doc|action=edit}} edit] | [{{fullurl:{{FULLPAGENAME}}/doc|action=history}} history])</small></span> | |<span class="editsection plainlinks" id="doc_editlinks">''This documentation is transcluded from:'' [[{{FULLPAGENAME}}/doc]] <small style="font-style: normal">([{{fullurl:{{FULLPAGENAME}}/doc|action=edit}} edit] | [{{fullurl:{{FULLPAGENAME}}/doc|action=history}} history])</small></span> | ||
Revision as of 20:47, 22 July 2008
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 documentation is transcluded from: Template:TlDoc/doc (edit | history)
Template loop detected: Template:TlDoc/doc