Difference between revisions of "Template:Template-linking templates"
From MINR.ORG WIKI
(Deleted duplicates. The number of non-duplicates is strangely low.) |
(→Other templates: Code cleanup) |
||
Line 55: | Line 55: | ||
===Other templates=== | ===Other templates=== | ||
{| class="wikitable sortable" style="vertical-align:top;" | {| class="wikitable sortable" style="vertical-align:top;" | ||
− | ! Code example !! Effect !! | + | ! Code example !! Effect !! Notes |
|- | |- | ||
− | | {{tlx|lts|Hatnote}} || {{lts|hatnote}} | + | | {{tlx|lts|Hatnote}} || {{lts|hatnote}} || |
− | | | ||
|- | |- | ||
− | | {{tlx|t links|Hatnote}} || {{t links|hatnote}} | + | | {{tlx|t links|Hatnote}} || {{t links|hatnote}} || |
− | | | ||
|- | |- | ||
− | | {{tlx|tfd links|Hatnote}} || {{tfd links|hatnote}} | + | | {{tlx|tfd links|Hatnote}} || {{tfd links|hatnote}} || |
− | | | ||
|- | |- | ||
− | | {{tlx|tiw|Hatnote}} || {{tiw|hatnote}} | + | | {{tlx|tiw|Hatnote}} || {{tiw|hatnote}} || |
− | | | ||
|- | |- | ||
− | | {{tlx|tl2|<nowiki>Hatnote|lang=fr</nowiki>}} || {{tl2|hatnote|lang=fr}} | + | | {{tlx|tl2|<nowiki>Hatnote|lang=fr</nowiki>}} || {{tl2|hatnote|lang=fr}} || Supports linking to sister projects (e.g., fr:Hatnote) |
− | | | ||
|- | |- | ||
− | | {{tlx|tlu|User:Ahunt/SSHFS}} || {{tlu|User:Ahunt/SSHFS}} | + | | {{tlx|tlu|User:Ahunt/SSHFS}} || {{tlu|User:Ahunt/SSHFS}} || Supports linking to any namespace |
− | | | ||
|- | |- | ||
− | | {{tlx|xpd|<nowiki>Hatnote|Some hatnote text</nowiki>}} || {{xpd|hatnote|Some hatnote text}} | + | | {{tlx|xpd|<nowiki>Hatnote|Some hatnote text</nowiki>}} || {{xpd|hatnote|Some hatnote text}} || Shows code, example and a link to expand the template code |
− | | | ||
|} | |} |
Revision as of 06:21, 27 April 2014
Template:Navbar Template:Float
General-purpose formatting
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}} {{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.Other templates
Code example | Effect | Notes |
---|---|---|
{{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) | |
{{tl2|Hatnote|lang=fr}} |
{{hatnote}} |
Supports linking to sister projects (e.g., fr:Hatnote) |
{{tlu|User:Ahunt/SSHFS}} |
{{User:Ahunt/SSHFS}} |
Supports linking to any namespace |
{{xpd|Hatnote|Some hatnote text}} |
Template:If | Shows code, example and a link to expand the template code |