Template:Tl/doc View history

No edit summary
Line 9: Line 9:
By default, the Template title, between the brackets, is an wikilink to the Template page itself.
By default, the Template title, between the brackets, is an wikilink to the Template page itself.


Use {{tlx|tl|TemplateName|NOLINK}} to create the same {{tl|TemplateName|NOLINK}} text, but without the wikilink. You can use the "nl" as a short keyword to replace "NOLINK".
Use {{tlx|tl|TemplateName|NOLINK}} to create the same {{tl|TemplateName|NOLINK}} text, but without the wikilink. For the ease of use, you can use {{Para||nl}} as a shorter second parameter to replace {{Para||NOLINK}}.


== Examples ==
== Examples ==
Line 30: Line 30:
|}
|}


See also
Incorrect usage of the second parameter (supposed to be {{Para||NOLINK}} or {{Para||nl}} will result in the display of an error handling as below:
 
{{tlx|tl|TemplateName|BadSecondParameter}}<br />
will produce :<br />
{{tl|TemplateName|BadSecondParameter}}
 
 
== See also ==
* [[Template:Tlx]]
* [[Template:Tlx]]



Revision as of 08:04, 1 July 2015

This is a documentation subpage for Template:Tl.
It contains usage information, categories and other content that is not part of the original template page.

The purpose of this template is to display a Template link in a wiki, under this format {{TemplateName}}, without triggering the Template transclusion as it would normally performed if you use this bracket syntax into the wikicode of the page. Its primary use is in instruction and documentation for designing Wiki pages.

Usage

Use {{tl|TemplateName}} to create {{TemplateName}} text.

By default, the Template title, between the brackets, is an wikilink to the Template page itself.

Use {{tl|TemplateName|NOLINK}} to create the same {{TemplateName}} text, but without the wikilink. For the ease of use, you can use |nl as a shorter second parameter to replace |NOLINK.

Examples

This wiki syntaxt will ... ... produce this displayed result
{{tl|TemplateName}} {{TemplateName}}
{{tl|TemplateName|NOLINK}} {{TemplateName}}
{{tl|TemplateName|nl}} {{TemplateName}}
{{tl|MAGICWORD|NOLINK}} {{MAGICWORD}}
{{tl|:MainPageName}} {{:[[::MainPageName|MainPageName]]}}
{{tl|User:UserPageName}} {{User:UserPageName}}

Incorrect usage of the second parameter (supposed to be |NOLINK or |nl will result in the display of an error handling as below:

{{tl|TemplateName|BadSecondParameter}}
will produce :
{{TemplateName}}


See also