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 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 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> | ||
− | == | + | ===Templates with example=== |
− | |||
{| class="wikitable sortable" style="vertical-align:top;" | {| class="wikitable sortable" style="vertical-align:top;" | ||
− | ! code example !! effect | + | ! code example !! effect !! note !! tc's<!--April 2014--> |
|- | |- | ||
− | | {{tlx| | + | | {{tlx|lts|Hatnote}} || {{lts|hatnote}} |
− | | {{ | ||
− | |||
− | |||
| | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| 14k | | 14k | ||
|- | |- | ||
− | | {{tlx|t links|Hatnote}} | + | | {{tlx|t links|Hatnote}} || {{t links|hatnote}} |
− | | {{t links|hatnote}} | ||
− | |||
− | |||
| 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]] |
− | |||
− | |||
− | | Used in | ||
| | | | ||
|- | |- | ||
− | | {{tlx|tiw|Hatnote}} | + | | {{tlx|tiw|Hatnote}} || {{tiw|hatnote}} |
− | | {{tiw|hatnote}} | ||
− | |||
− | |||
| | | | ||
| 300 | | 300 | ||
|- | |- | ||
− | | {{tlx|tla|Hatnote|some label}} | + | | {{tlx|tl|Hatnote}} || {{tlx|hatnote}} |
− | | {{tla|hatnote|2=some label}} | + | | |
− | + | | 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 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}} | ||
− | |||
− | |||
| [[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}} | ||
− | |||
− | |||
| | | | ||
| 200k | | 200k | ||
|- | |- | ||
− | | {{tlx|tld|Hatnote}} | + | | {{tlx|tld|Hatnote}} || {{tld|hatnote}} |
− | | {{tld|hatnote}} | ||
− | |||
− | |||
| | | | ||
| 14k | | 14k | ||
|- | |- | ||
− | | {{tlx|tlf|Hatnote}} | + | | {{tlx|tlf|Hatnote}} || {{tlf|hatnote}} |
− | | {{tlf|hatnote}} | ||
− | |||
− | |||
| | | | ||
| 8000 | | 8000 | ||
|- | |- | ||
− | | {{tlx|tlg|Hatnote}} | + | | {{tlx|tlg|Hatnote}} || {{tlg|hatnote}} |
− | | {{tlg|hatnote}} | ||
− | |||
− | |||
| | | | ||
| 14k | | 14k | ||
|- | |- | ||
− | | {{tlx|tlp|Hatnote}} | + | | {{tlx|tlp|Hatnote}} || {{tlp|hatnote}} |
− | | {{tlp|hatnote}} | ||
− | |||
− | |||
| | | | ||
| 194k | | 194k | ||
|- | |- | ||
− | | {{tlx|tlx|Hatnote}} | + | | {{tlx|tls|Hatnote}} || {{tls|hatnote}} |
− | | {{tlx| | + | | |
− | | | + | | 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}} | ||
− | |||
− | |||
| [[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}} | ||
− | |||
− | |||
| 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| | + | | {{tlx|tlxs|Hatnote}} || {{tlxs|hatnote}} |
− | | {{ | + | | |
− | | | + | | |
− | | | + | |- |
− | | [[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}} | ||
− | |||
− | |||
| | | | ||
| 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}} | ||
− | |||
− | |||
| Show expanded text | | Show expanded text | ||
| 64 | | 64 | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 05:52, 27 April 2014
Template:Navbar-header Template:Float
Templates by syntax
Link style → | Linked | Unlinked | Linked with subst | Linked including braces | Linked with alternative text | |
---|---|---|---|---|---|---|
Text style ↓ | ↓ {{tlg}} options1 →
|
Template:N/A | Template:Code | Template:Code | Template:Code | Template:Code Template:Code |
Normal | Template:N/A | {{tlg}} 1, 2{{tl}} Template:Tla {{tlp}} 2
|
{{tlf}} 2
|
{{tls}} {{tlsp}}
|
{{tn}}
|
{{tla}}
|
Code
|
Template:Code or Template:Code |
{{tlx}}
|
{{tlc}} 2{{tld}} 2{{tnull}}
|
{{tlxs}}
|
colspan="2" Template:N/A | |
Bold | Template:Code | {{tlb}}
|
rowspan="3" colspan="4" Template:N/A | |||
Bold code
|
Template:Code | {{tlxb}}
| ||||
Italic code
|
Template:Code | {{tlxi}}
|
1 =
2 = Prevents wrapping of text by placing it inside
{{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 |