Difference between revisions of "Template:Template-linking templates"

From MINR.ORG WIKI
(Reverted 20 edits by User:DePiep. This new format is a torture. Long alphabetical lists of unknown stuff are already awful; complimenting it with impractical stats like "transclusion count" is pandemonium.)
Line 1: Line 1:
 
{{Navbar-header|{{lower|0.5em|{{resize|120%|'''Template-linking templates'''}}}}|Tl-nav|plain=1}}
 
{{Navbar-header|{{lower|0.5em|{{resize|120%|'''Template-linking templates'''}}}}|Tl-nav|plain=1}}
 
<noinclude>{{float|{{template shortcut|Tl-nav|Tl templates}}}}</noinclude>
 
<noinclude>{{float|{{template shortcut|Tl-nav|Tl templates}}}}</noinclude>
 +
===Templates by syntax===
 +
{| class="wikitable navbox collapsible" style="width:auto;font-size:90%;margin:1.0em auto 1.0em auto;vertical-align:top;text-align:center;"
 +
|+ Comparison of template-linking templates according to their style
 +
|-
 +
!style=*"|
 +
!style="background:#fcc;"| Link style →
 +
!style="background:#fee;"| Linked
 +
!style="background:#fee;"| Unlinked
 +
!style="background:#fee;"| Linked with subst
 +
!style="background:#fee;"| Linked including braces
 +
!style="background:#fee;"| Linked with alternative&nbsp;text
 +
|-
 +
!style="background:#ccf;"| Text style ↓
 +
|'''↓ {{tlx|tlg}} options<sup>1</sup> →'''
 +
|{{N/A}}
 +
|{{code|nolink{{=}}yes}}
 +
|{{code|subst{{=}}yes}}
 +
|{{code|braceinside{{=}}yes}}
 +
|{{code|alttext{{=}}Foo}}<br>{{code|2{{=}}Foo}}
 +
|-
 +
|style="background:#eef;"| Normal
 +
| {{N/A}}
 +
| {{nowrap|{{tlx|tlg}}<sup>1, 2</sup>}}<br>{{tlx|tl}}<br><code>{{tla|t links|2=t&nbsp;links}}</code><br>{{tlx|tlp}}<sup>2</sup>
 +
| {{tlx|tlf}}<sup>2</sup>
 +
| {{tlx|tls}}<br>{{tlx|tlsp}}
 +
| {{tlx|tn}}
 +
| {{tlx|tla}}
 +
|-
 +
!style="background:#eef;"| <code>Code</code>
 +
| {{code|code{{=}}yes}} or<br />{{code|tt{{=}}yes}}
 +
| {{tlx|tlx}}
 +
| {{tlx|tlc}}<sup>2</sup><br>{{tlx|tld}}<sup>2</sup><br>{{tlx|tnull}}
 +
| {{tlx|tlxs}}
 +
| colspan="2" {{N/A}}
 +
|-
 +
|style="background:#eef;"| '''Bold'''
 +
| {{code|bold{{=}}yes}}
 +
| {{tlx|tlb}}
 +
| rowspan="3" colspan="4" {{N/A}}
 +
|-
 +
|style="background:#eef;"| '''<code>Bold code</code>'''
 +
| {{code|bold{{=}}yes{{!}}code{{=}}yes}}
 +
| {{tlx|tlxb}}
 +
|-
 +
|style="background:#eef;" | ''<code>Italic code</code>''
 +
| {{code|italic{{=}}yes{{!}}code{{=}}yes}}
 +
| {{tlx|tlxi}}
 +
|}
 +
{{clear}}
 +
<div align=left style="font-size:90%; text-align:left;"><sup>1</sup> = {{tlx|tlg}} is the most general, allowing any combination of text style and/or link style options.<br />
 +
<sup>2</sup> = Prevents wrapping of text by placing it inside {{tag|span|params=class="nowrap"}}  tags.</div>
  
==Template linking, overview==
+
===Templates with example===
''This overview may be incomplete and miss certain features. See the documentation of individual templates.''
 
 
{| class="wikitable sortable" style="vertical-align:top;"
 
{| class="wikitable sortable" style="vertical-align:top;"
! code example !! effect !! essence !! supports<br>params? !! note !! transc's<!--April 2014-->
+
! code example !! effect !! note !! tc's<!--April 2014-->
 
|-
 
|-
| {{tlx|tl|Hatnote}}
+
| {{tlx|lts|Hatnote}} || {{lts|hatnote}}
| {{tlx|hatnote}}
 
| base
 
| no
 
 
|  
 
|  
| 2.5M
 
|-
 
| {{tlx|lts|Hatnote}}
 
| {{lts|hatnote}}
 
| base
 
| ?
 
|
 
 
| 14k
 
| 14k
 
|-
 
|-
| {{tlx|t links|Hatnote}}
+
| {{tlx|t links|Hatnote}} || {{t links|hatnote}}
| {{t links|hatnote}}
 
| base
 
| no
 
 
| For intensive template editing
 
| For intensive template editing
 
|
 
|
 
|-
 
|-
| {{tlx|tfd links|Hatnote}}
+
| {{tlx|tfd links|Hatnote}} || {{tfd links|hatnote}}
| {{tfd links|hatnote}}
+
| Used in [[WP:TfD]]
| base
 
| ?
 
| Used in heading of a [[WP:TfD]]
 
 
|
 
|
 
|-
 
|-
| {{tlx|tiw|Hatnote}}
+
| {{tlx|tiw|Hatnote}} || {{tiw|hatnote}}
| {{tiw|hatnote}}
 
| unk
 
| ?
 
 
|
 
|
 
| 300
 
| 300
 
|-
 
|-
| {{tlx|tla|Hatnote|some&nbsp;label}}
+
| {{tlx|tl|Hatnote}} || {{tlx|hatnote}}
| {{tla|hatnote|2=some label}}
+
|
| fmt
+
| 2.5M
| ?
+
|-
 +
| {{tlx|tl2|<nowiki>Hatnote|lang=fr</nowiki>}} || {{tl2|hatnote|lang=fr}}
 +
| Sister and other language wikis (e.g., fr:Hatnote)
 +
| 2600
 +
|-
 +
| {{tlx|tla|Hatnote|some&nbsp;label}} || {{tla|hatnote|2=some label}}
 
| To add a wikilabel
 
| To add a wikilabel
 
| 1000
 
| 1000
 
|-
 
|-
| {{tlx|tlb|Hatnote}}
+
| {{tlx|tlb|Hatnote}} || {{tlb|hatnote}}
| {{tlb|hatnote}}
 
| fmt
 
| ?
 
 
| [[Wikipedia:Templates_for_discussion#Template:Tlb|TfD]]
 
| [[Wikipedia:Templates_for_discussion#Template:Tlb|TfD]]
 
| 82
 
| 82
 
|-
 
|-
| {{tlx|tlc|Hatnote}}
+
| {{tlx|tlc|Hatnote}} || {{tlc|hatnote}}
| {{tlc|hatnote}}
 
| unk
 
| ?
 
 
|
 
|
 
| 200k
 
| 200k
 
|-
 
|-
| {{tlx|tld|Hatnote}}
+
| {{tlx|tld|Hatnote}} || {{tld|hatnote}}
| {{tld|hatnote}}
 
| unk
 
| ?
 
 
|
 
|
 
| 14k
 
| 14k
 
|-
 
|-
| {{tlx|tlf|Hatnote}}
+
| {{tlx|tlf|Hatnote}} || {{tlf|hatnote}}
| {{tlf|hatnote}}
 
| unk
 
| ?
 
 
|
 
|
 
| 8000
 
| 8000
 
|-
 
|-
| {{tlx|tlg|Hatnote}}
+
| {{tlx|tlg|Hatnote}} || {{tlg|hatnote}}
| {{tlg|hatnote}}
 
| unk
 
| ?
 
 
|
 
|
 
| 14k
 
| 14k
 
|-
 
|-
| {{tlx|tlp|Hatnote}}
+
| {{tlx|tlp|Hatnote}} || {{tlp|hatnote}}
| {{tlp|hatnote}}
 
| unk
 
| ?
 
 
|
 
|
 
| 194k
 
| 194k
 
|-
 
|-
| {{tlx|tlx|Hatnote}}
+
| {{tlx|tls|Hatnote}} || {{tls|hatnote}}
| {{tlx|hatnote}}
+
|
| fmt
+
| 21k
| ?
+
|-
 +
| {{tlx|tlsp|<nowiki>Hatnote|Some text</nowiki>}} || {{tlsp|Hatnote|2=Some text}}
 +
|
 +
| 4500
 +
|-
 +
| {{tlx|tlu|User:Ahunt/SSHFS}} || {{tlu|User:Ahunt/SSHFS}}
 +
| Any namespace
 +
| 4600
 +
|-
 +
| {{tlx|tlx|Hatnote}} || {{tlx|hatnote}}
 
|
 
|
 
| 850k
 
| 850k
 
|-
 
|-
| {{tlx|tlxb|Hatnote}}
+
| {{tlx|tlxb|Hatnote}} || {{tlxb|hatnote}}
| {{tlxb|hatnote}}
 
| fmt
 
| ?
 
 
| [[Wikipedia:Templates_for_discussion/Log/2014_April_20#Template:Tlxb|TfD]]
 
| [[Wikipedia:Templates_for_discussion/Log/2014_April_20#Template:Tlxb|TfD]]
 
| 22
 
| 22
 
|-
 
|-
| {{tlx|tlxi|Hatnote}}
+
| {{tlx|tlxi|Hatnote}} || {{tlxi|hatnote}}
| {{tlxi|hatnote}}
 
| fmt
 
| ?
 
 
| Italicises params. [[Wikipedia:Templates_for_discussion/Log/2014_April_20#Template:Tlxi|TfD]]
 
| Italicises params. [[Wikipedia:Templates_for_discussion/Log/2014_April_20#Template:Tlxi|TfD]]
 
| 8
 
| 8
 
|-
 
|-
| {{tlx|tn|Hatnote}}
+
| {{tlx|tlxs|Hatnote}} || {{tlxs|hatnote}}
| {{tn|hatnote}}
+
|
| fmt
+
|
| ?
+
|-
| [[Wikipedia:Templates_for_discussion/Log/2014_April_20#Template:Tn|TfD]]
+
| {{tlx|tn|Hatnote}} || {{tn|hatnote}}
 +
| [[Wikipedia:Templates_for_discussion/Log/2014_April_20#Template:Tn|TfD]]  
 
| 12k
 
| 12k
 
|-
 
|-
| {{tlx|tnull|Hatnote}}
+
| {{tlx|tnull|Hatnote}} || {{tnull|hatnote}}
| {{tnull|hatnote}}
 
| unk
 
| ?
 
 
|
 
|
 
| 4000
 
| 4000
 
|-
 
|-
| {{tlx|xpd|<nowiki>Hatnote|Some hatnote text</nowiki>}}
+
| {{tlx|xpd|<nowiki>Hatnote|Some hatnote text</nowiki>}} || {{xpd|hatnote|Some hatnote text}}
| {{xpd|hatnote|Some hatnote text}}
 
| unk
 
| ?
 
 
| Show expanded text
 
| Show expanded text
 
| 64
 
| 64
|-
 
| {{tlx|tls|Hatnote}}
 
| {{tls|hatnote}}
 
| subst
 
| ?
 
|
 
| 21k
 
|-
 
| {{tlx|tlsp|<nowiki>Hatnote|Some text</nowiki>}}
 
| {{tlsp|Hatnote|2=Some text}}
 
| subst
 
| ?
 
|
 
| 4500
 
|-
 
| {{tlx|tlxs|Hatnote}}
 
| {{tlxs|hatnote}}
 
| subst, fmt
 
| ?
 
|
 
|
 
|-
 
| {{tlx|tlu|User:Ahunt/SSHFS}}
 
| {{tlu|User:Ahunt/SSHFS}}
 
| ns
 
| ?
 
| Any namespace
 
| 4600
 
|-
 
| {{tlx|tl2|<nowiki>Hatnote|lang=fr</nowiki>}}
 
| {{tl2|hatnote|lang=fr}}
 
| iw
 
| ?
 
| Sister and other language wikis (e.g., fr:Hatnote)
 
| 2600
 
|-
 
|style="background:#eef;" | tetl
 
| 2
 
| unk
 
| ?
 
| 5
 
|
 
|-
 
|style="background:#eef;" | ti
 
| 2
 
| unk
 
| ?
 
| 5
 
|
 
|-
 
|style="background:#eef;" | tic
 
| 2
 
| unk
 
| ?
 
| 5
 
|
 
|-
 
|style="background:#eef;" | tiw
 
| 2
 
| unk
 
| ?
 
| 5
 
|
 
|-
 
|style="background:#eef;" | tlc
 
| 2
 
| unk
 
| ?
 
| 5
 
|
 
|-
 
|style="background:#eef;" | tltlsetlc
 
| 2
 
| unk
 
| ?
 
| 5
 
|
 
|-
 
|style="background:#eef;" | tlt
 
| 2
 
| unk
 
| ?
 
| 5
 
|
 
|-
 
|style="background:#eef;" | ttl
 
| 2
 
| unk
 
| ?
 
| 5
 
|
 
|-
 
|style="background:#eef;" | twln
 
| 2
 
| unk
 
| ?
 
| 5
 
|
 
|-
 
|style="background:#eef;" | tltt
 
| 2
 
| unk
 
| ?
 
| 5
 
|
 
 
|}
 
|}
* [[:Category:Internal link templates]]
 
{{clear}}
 
===Templates by syntax===
 
{| class="wikitable navbox collapsible" style="width:auto;font-size:90%;margin:1.0em auto 1.0em auto;vertical-align:top;text-align:center;"
 
|+ Comparison of template-linking templates according to their style
 
|-
 
!style=*"|
 
!style="background:#fcc;"| Link style →
 
!style="background:#fee;"| Linked
 
!style="background:#fee;"| Unlinked
 
!style="background:#fee;"| Linked with subst
 
!style="background:#fee;"| Linked including braces
 
!style="background:#fee;"| Linked with alternative&nbsp;text
 
|-
 
!style="background:#ccf;"| Text style ↓
 
|'''↓ {{tlx|tlg}} options<sup>1</sup> →'''
 
|{{N/A}}
 
|{{code|nolink{{=}}yes}}
 
|{{code|subst{{=}}yes}}
 
|{{code|braceinside{{=}}yes}}
 
|{{code|alttext{{=}}Foo}}<br>{{code|2{{=}}Foo}}
 
|-
 
|style="background:#eef;"| Normal
 
| {{N/A}}
 
| {{nowrap|{{tlx|tlg}}<sup>1, 2</sup>}}<br>{{tlx|tl}}<br><code>{{tla|t links|2=t&nbsp;links}}</code><br>{{tlx|tlp}}<sup>2</sup>
 
| {{tlx|tlf}}<sup>2</sup>
 
| {{tlx|tls}}<br>{{tlx|tlsp}}
 
| {{tlx|tn}}
 
| {{tlx|tla}}
 
|-
 
!style="background:#eef;"| <code>Code</code>
 
| {{code|code{{=}}yes}} or<br />{{code|tt{{=}}yes}}
 
| {{tlx|tlx}}
 
| {{tlx|tlc}}<sup>2</sup><br>{{tlx|tld}}<sup>2</sup><br>{{tlx|tnull}}
 
| {{tlx|tlxs}}
 
| colspan="2" {{N/A}}
 
|-
 
|style="background:#eef;"| '''Bold'''
 
| {{code|bold{{=}}yes}}
 
| {{tlx|tlb}}
 
| rowspan="3" colspan="4" {{N/A}}
 
|-
 
|style="background:#eef;"| '''<code>Bold code</code>'''
 
| {{code|bold{{=}}yes{{!}}code{{=}}yes}}
 
| {{tlx|tlxb}}
 
|-
 
|style="background:#eef;" | ''<code>Italic code</code>''
 
| {{code|italic{{=}}yes{{!}}code{{=}}yes}}
 
| {{tlx|tlxi}}
 
|}
 
{{clear}}
 
<div align=left style="font-size:90%; text-align:left;"><sup>1</sup> = {{tlx|tlg}} is the most general, allowing any combination of text style and/or link style options.<br />
 
<sup>2</sup> = Prevents wrapping of text by placing it inside {{tag|span|params=class="nowrap"}}  tags.</div>
 

Revision as of 06:52, 27 April 2014

Template:Navbar-header Template:Float

Templates by syntax

1 = {{tlg}} is the most general, allowing any combination of text style and/or link style options.
2 = Prevents wrapping of text by placing it inside <span class="nowrap">...</span> tags.

Templates with example

code example effect note tc's
{{lts|Hatnote}} Template:Lts 14k
{{t links|Hatnote}} Hatnote (edit talk history links # /subpages /doc /doc edit /sbox /sbox diff /test) · Module:hatnote For intensive template editing
{{tfd links|Hatnote}} Template:Hatnote (edit · talk · history · links · logs · subpages · delete) Used in WP:TfD
{{tiw|Hatnote}} Template:hatnote (backlinks edit) 300
{{tl|Hatnote}} {{hatnote}} 2.5M
{{tl2|Hatnote|lang=fr}} {{hatnote}} Sister and other language wikis (e.g., fr:Hatnote) 2600
{{tla|Hatnote|some label}} Template:Tla To add a wikilabel 1000
{{tlb|Hatnote}} Template:Tlb TfD 82
{{tlc|Hatnote}} {{hatnote}} 200k
{{tld|Hatnote}} {{hatnote}} 14k
{{tlf|Hatnote}} {{hatnote}} 8000
{{tlg|Hatnote}} {{Template:!((:Template:Hatnote|hatnoteTemplate:!))}} 14k
{{tlp|Hatnote}} Template:Tlp 194k
{{tls|Hatnote}} Template:Tls 21k
{{tlsp|Hatnote|Some text}} Template:Tlsp 4500
{{tlu|User:Ahunt/SSHFS}} {{User:Ahunt/SSHFS}} Any namespace 4600
{{tlx|Hatnote}} {{hatnote}} 850k
{{tlxb|Hatnote}} Template:Tlxb TfD 22
{{tlxi|Hatnote}} Template:Tlxi Italicises params. TfD 8
{{tlxs|Hatnote}} {{subst:hatnote}}
{{tn|Hatnote}} Template:Tn TfD 12k
{{tnull|Hatnote}} Template:Tnull 4000
{{xpd|Hatnote|Some hatnote text}} Template:If Show expanded text 64