Difference between revisions of "Template:Tl"
m (19 revisions imported) |
m (1 revision imported from legacy:Template:Tl) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#if:{{{ | + | <includeonly><nowiki>{{</nowiki>{{#if:{{{subst|}}}|[[Help:Templates#Substitution|subst]]:}}{{#ifeq:{{NAMESPACE:{{{1|{{FULLPAGENAME}}}}}}}||<!-- |
− | |{{# | + | this is intended to be either a page in the main namespace or in the template namespace |
− | + | -->{{#ifeq:{{{1|{{FULLPAGENAME}}}}}|:{{PAGENAME:{{{1|{{FULLPAGENAME}}}}}}}<!-- | |
− | + | this is intended to be in the main namespace | |
− | + | -->|<nowiki>:</nowiki>[[:{{{LANG|}}}{{{SISTER|}}}{{{1|{{PAGENAME}}}}}|{{PAGENAME:{{{1|{{FULLPAGENAME}}}}}}}]]<!-- | |
− | | | + | this is intended to be in the template namespace |
− | {{ | + | -->|[[:{{{LANG|}}}{{{SISTER|}}}Template:{{{1|{{PAGENAME}}}}}|{{{1|{{PAGENAME}}}}}]]}}<!-- |
− | + | namespace was included | |
+ | -->|[[:{{{LANG|}}}{{{SISTER|}}}{{{1|{{FULLPAGENAME}}}}}|{{{1|{{FULLPAGENAME}}}}}]] | ||
+ | }}<nowiki>}}</nowiki></includeonly><noinclude> | ||
+ | {{Documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 23:47, 15 February 2017
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
![]() |
The above documentation is transcluded from Template:Tl/doc. Please add categories to the /doc subpage. Subpages of this template. |