Langbahn Team – Weltmeisterschaft

Template talk:Template link: Difference between revisions

Content deleted Content added
Cuahl (talk | contribs)
m Sorry, edited wrong window
Omniplex (talk | contribs)
Documentation: added usual self reference to "see also" replacing the unnecessary "history"
Line 1: Line 1:
{{compactDocToc}}
{{compactDocToc}}
=Documentation=
=Documentation=
== Purpose ==


{{[[Template:Tl|Tl]]}} — The '''Template link (tl)''' template is used to display a template name as a link to the template.
{{[[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>{&#123;Tl&#124;tfd&#125;}</code>
| <pre>
{{Tl|tfd}}
| {{Tl|tfd}}
</pre>
||{{Tl|tfd}}
|}
|}
<!-- customize if needed to illustrate parameter use -->

== See also ==
== See also ==
* {{teti|tlp}} - Template link, with single parameter.
* {{Lts|tl}} - links and edit history of this template.
* {{teti|ttl}} - Template link(no params), followed by talk and whatlinkshere, as "(t/l)"
* {{Lts|tlp}} - Template link, with single parameter.
* {{teti|ti}} - Template name, followed by talk, whatlinkshere and edit, as "(talk, links, edit)"
* {{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.
* {{teti|tls}} - Template link(no params), subst'ed.
* {{Lts|tic}} - Nearly identical to ti.
* {{teti|cl}} - Category link, as "Cat:Category name"
* {{Lts|tls}} - Template link(no params), subst'ed.
* {{teti|tlt}} - Template link(no params), followed by talk, as "(doc/talk)"
* {{Lts|tlt}} - Template link(no params), followed by talk, as "(doc/talk)"
* {{teti|tetl}} - Template link(no params), followed by edit, talk, links, as "(edit · talk · links)"
* {{Lts|tetl}} - Template link(no params), followed by edit, talk, links"
* {{teti|teti}} - Template name, followed by edit, talk, links, as "(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

Template:CompactDocToc

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

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)[reply]

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

&#123;&#123;[[Template:{{{1}}}|{{{1}}}]]&#125;&#125;

This way it won't break things if it's subst'd (&amp; added in source here so it's displayed right) AzaToth 19:28, 27 December 2005 (UTC)[reply]

I think not it would also be better to change it to

&#123;&#123;[[Template:{{{1}}}|{{lcfirst:{{{1}}}}}]]&#125;&#125;

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)[reply]

  • 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)[reply]

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)[reply]

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[reply]

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)[reply]