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

From MINR.ORG WIKI
(Template linking, overview)
(move the less complete understandable overview)
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===
 
===Template linking, overview===
Line 196: Line 145:
 
| 2600
 
| 2600
 
|}
 
|}
 +
 +
===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 01:27, 26 April 2014

Template:Navbar-header Template:Float

Template linking, overview

This overview may be incomplete and miss certain features. See the documentation of individual templates.

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

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.