Difference between revisions of "Template:Template-linking templates"
From MINR.ORG WIKI
(→Templates with example: rm {{cl}} - not a template link at all) |
(→Templates by syntax: Applying KISS principle: Banishing all intricate HTML and CSS codes in favor a more streamlined and standard format) |
||
Line 2: | Line 2: | ||
<noinclude>{{float|{{template shortcut|Tl-nav|Tl templates}}}}</noinclude> | <noinclude>{{float|{{template shortcut|Tl-nav|Tl templates}}}}</noinclude> | ||
===Templates by syntax=== | ===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: | + | {| 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=*"| | ||
!style="background:#fcc;"| Link style → | !style="background:#fcc;"| Link style → | ||
− | !style="background:#fee | + | !style="background:#fee;"| Linked |
− | !style="background:#fee | + | !style="background:#fee;"| Unlinked |
− | !style="background:#fee | + | !style="background:#fee;"| Linked with subst |
− | !style="background:#fee | + | !style="background:#fee;"| Linked including braces |
− | !style="background:#fee | + | !style="background:#fee;"| Linked with alternative text |
− | |- | + | |- |
!style="background:#ccf;"| Text style ↓ | !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> | | {{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|tlf}}<sup>2</sup> | ||
Line 28: | Line 29: | ||
| {{tlx|tla}} | | {{tlx|tla}} | ||
|- | |- | ||
− | !style="background:#eef | + | !style="background:#eef;"| <code>Code</code> |
− | + | | {{code|code{{=}}yes}} or<br />{{code|tt{{=}}yes}} | |
| {{tlx|tlx}} | | {{tlx|tlx}} | ||
| {{tlx|tlc}}<sup>2</sup><br>{{tlx|tld}}<sup>2</sup><br>{{tlx|tnull}} | | {{tlx|tlc}}<sup>2</sup><br>{{tlx|tld}}<sup>2</sup><br>{{tlx|tnull}} | ||
| {{tlx|tlxs}} | | {{tlx|tlxs}} | ||
− | | | + | | colspan="2" {{N/A}} |
|- | |- | ||
− | + | |style="background:#eef;"| '''Bold''' | |
− | + | | {{code|bold{{=}}yes}} | |
| {{tlx|tlb}} | | {{tlx|tlb}} | ||
− | | | + | | rowspan="3" colspan="4" {{N/A}} |
|- | |- | ||
− | + | |style="background:#eef;"| '''<code>Bold code</code>''' | |
− | + | | {{code|bold{{=}}yes{{!}}code{{=}}yes}} | |
| {{tlx|tlxb}} | | {{tlx|tlxb}} | ||
|- | |- | ||
− | + | |style="background:#eef;" | ''<code>Italic code</code>'' | |
− | + | | {{code|italic{{=}}yes{{!}}code{{=}}yes}} | |
| {{tlx|tlxi}} | | {{tlx|tlxi}} | ||
|} | |} |
Revision as of 22:32, 19 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
{{lts|Hatnote}} |
→ | Template:Lts |
{{t links|Hatnote}} |
→ | Hatnote (edit talk history links # /subpages /doc /doc edit /sbox /sbox diff /test) · Module:hatnote |
{{tfd links|Hatnote}} |
→ | Template:Hatnote (edit · talk · history · links · logs · subpages · delete) |
{{tiw|Hatnote}} |
→ | Template:hatnote (backlinks edit) |
{{tl|Hatnote}} |
→ | {{hatnote}}
|
{{tl2|Hatnote}} |
→ | {{hatnote}}
|
{{tla|Hatnote}} |
→ | Template:Tn |
{{tlb|Hatnote}} |
→ | Template:Tlb |
{{tlc|Hatnote}} |
→ | {{hatnote}}
|
{{tld|Hatnote}} |
→ | {{hatnote}}
|
{{tlf|Hatnote}} |
→ | {{hatnote}} |
{{tlg|Hatnote}} |
→ | {{Template:!((:Template:Hatnote|hatnoteTemplate:!))}} |
{{tlp|Hatnote}} |
→ | Template:Tlp |
{{tls|Hatnote}} |
→ | Template:Tls |
{{tlsp|Hatnote}} |
→ | Template:Tlsp |
{{tlu|Hatnote}} |
→ | {{hatnote}}
|
{{tlx|Hatnote}} |
→ | {{hatnote}}
|
{{tlxb|Hatnote}} |
→ | Template:Tlxb |
{{tlxi|Hatnote}} |
→ | Template:Tlxi |
{{tlxs|Hatnote}} |
→ | {{subst:hatnote}}
|
{{tn|Hatnote}} |
→ | Template:Tn |
{{tnull|Hatnote}} |
→ | Template:Tnull |
{{xpd|Hatnote}} |
→ | Template:If |