Template talk:Template link: Difference between revisions
m Sorry, edited wrong window |
→Documentation: added usual self reference to "see also" replacing the unnecessary "history" |
||
Line 1: | Line 1: | ||
{{compactDocToc}} |
{{compactDocToc}} |
||
=Documentation= |
=Documentation= |
||
== Purpose == |
|||
{{[[Template:Tl|Tl]]}} is used to display a template name as a link to the template. Its name is an acronym for ''Template Link''. |
|||
<!-- explain what this template does; use it in a sentence --> |
|||
== Usage == |
== Usage == |
||
<!-- Abstract usage of the template, one variable per row. --> |
|||
<pre> |
<pre> |
||
{{Tl|template name to display}} |
{{Tl|template name to display}} |
||
</pre> |
</pre> |
||
<!-- explain what this template's parameters do -- if no params, delete the definition --> |
|||
== Example == |
== Example == |
||
{| class="wikitable" |
{| class="wikitable" |
||
! Code |
! Code |
||
! Result |
! Result |
||
|- |
|||
|- style="vertical-align:top;" |
|||
| <code>{{Tl|tfd}}</code> |
|||
| <pre> |
|||
{{Tl|tfd}} |
| {{Tl|tfd}} |
||
</pre> |
|||
||{{Tl|tfd}} |
|||
|} |
|} |
||
<!-- customize if needed to illustrate parameter use --> |
|||
== See also == |
== See also == |
||
* {{ |
* {{Lts|tl}} - links and edit history of this template. |
||
* {{ |
* {{Lts|tlp}} - Template link, with single parameter. |
||
* {{ |
* {{Lts|ttl}} - Template link(no params), followed by talk and whatlinkshere, as "(t/l)" |
||
* {{Lts|ti}} - Template name, followed by "(talk, links, edit)" |
|||
* {{teti|tic}} - Nearly identical to ti. |
|||
* {{ |
* {{Lts|tic}} - Nearly identical to ti. |
||
* {{ |
* {{Lts|tls}} - Template link(no params), subst'ed. |
||
* {{ |
* {{Lts|tlt}} - Template link(no params), followed by talk, as "(doc/talk)" |
||
* {{ |
* {{Lts|tetl}} - Template link(no params), followed by edit, talk, links" |
||
* {{ |
* {{Lts|teti}} - Template name, followed by edit, talk, links, as "(edit, talk, links)" |
||
* <!-- links to simlar of linked templates --> |
* <!-- links to simlar of linked templates --> |
||
== History == |
|||
; ReCreated : <sub>→<font style="color:#975612">[[User:AzaToth|Aza]]</font><font style="color:#325596">[[User_talk:AzaToth|Toth]]</font></sub> 19:41, 27 December 2005 (UTC) |
|||
<!-- sign here with tildes --> |
|||
<!--if documenting existing template, then delete line and replace with "Added documentation" and sign --> |
|||
= Discussion = |
= Discussion = |
Revision as of 00:24, 21 March 2006
Documentation
{{Tl}} is used to display a template name as a link to the template. Its name is an acronym for Template Link.
Usage
{{Tl|template name to display}}
Example
Code | Result |
---|---|
{{Tl|tfd}}
|
{{tfd}} |
See also
- Template:Tl( talk links history) - links and edit history of this template.
- Template:Tlp( talk links history) - Template link, with single parameter.
- Template:Ttl( talk links history) - Template link(no params), followed by talk and whatlinkshere, as "(t/l)"
- Template:Ti( talk links history) - Template name, followed by "(talk, links, edit)"
- Template:Tic( talk links history) - Nearly identical to ti.
- Template:Tls( talk links history) - Template link(no params), subst'ed.
- Template:Tlt( talk links history) - Template link(no params), followed by talk, as "(doc/talk)"
- Template:Tetl( talk links history) - Template link(no params), followed by edit, talk, links"
- Template:Teti( talk links history) - Template name, followed by edit, talk, links, as "(edit, talk, links)"
Discussion
Alphax comment
A version which takes parameters exists at Template:Template link with parameters, with a shortcut at {{tl2}}. Alphax τεχ 01:10, 30 May 2005 (UTC)
I'll have to say...
This is a really good idea! — Ambush Commander(Talk) 13:54, August 6, 2005 (UTC)
Please change this template
I suggest this template to be changed to
{{[[Template:{{{1}}}|{{{1}}}]]}}
This way it won't break things if it's subst'd (&
added in source here so it's displayed right) →AzaToth 19:28, 27 December 2005 (UTC)
I think not it would also be better to change it to
{{[[Template:{{{1}}}|{{lcfirst:{{{1}}}}}]]}}
i.e. add a lcfirst on the name so it will always shown with the first letter as lower case (As I think most people writes it when they call the template) →AzaToth 17:11, 2 January 2006 (UTC)
- do they? I'd have said that the split was about 50-50. Certainly most of the templates that I call up I use a capital letter first (but then again, a lot of the templates I use start with proper nouns - specifically, country names). It's also useful to be able to have the first letter as l.c. or u.c. if the template is mentioned as the first thing in a sentence (as it quite often is at TFD, SFD, or WP:WSS). Why limit it to always rendering as lower case? Grutness...wha? 22:34, 2 January 2006 (UTC)
I'd leave it be for now. There may be a certain "suprise factor" when someone uses this and it doesn't display the uppercase as they'd expect. -- Netoholic @ 22:46, 2 January 2006 (UTC)
Interwiki Link
I've been looking for a while to find the matching template to the one used on the french Wikipédia for showing a template's syntax while linking to it in the form {{Template}}. It's not exactly the same but since it's used for the same purposes in about the same way, I think the following should be added to the current template :
<!-- Interwiki Link --> [[fr:Modèle:M]]
Interwiki linkage of the most commonly used templates really facilitates the users' ability to adapt quickly the syntax on any local wiki... : ) Stéphane Thibault 20:50, 7 January 2006 (UTC) Talk fr:Discuter Modèle:LienModèle
T1 Redirect
Template {{T1}} redirects to this template. Is this intentional, considering the history of T1 indicates that it's completely unrelated? --TheParanoidOne 10:42, 12 February 2006 (UTC)