Template:Tl-nav: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Revert to revision 53760 dated 2014-03-09 20:20:18 by Sjgknight using popups) |
||
Line 1: | Line 1: | ||
{{Navbar-header|{{resize|120%|'''Template linking templates'''}}|Tl-nav|plain=1}} | |||
{| align="center" class="wikitable collapsible" style="margin:1em auto 1em auto; width:auto; text-align:center; font-size:90%;" | |||
|- <!--style="line-height:10pt;"--> | |||
!style="width:12.0em;"| | |||
!style="background:#fcc;"| Link style → | |||
!style="background:#fee;font-weight:normal;"| Linked | |||
!style="background:#fee;font-weight:normal;"| Unlinked | |||
!style="background:#fee;font-weight:normal;"| Linked with subst | |||
!style="background:#fee;font-weight:normal;"| Linked including braces | |||
!style="background:#fee;font-weight:normal;"| Linked with alternative text | |||
|- valign="top" | |||
!style="background:#ccf;"| Text style ↓ | |||
! {{tlx|tlg}} option<sup>1</sup> | |||
|style="font-weight:bold;"| — | |||
|style="font-weight:bold;"| {{code|nolink{{=}}yes}} | |||
|style="font-weight:bold;"| {{code|subst{{=}}yes}} | |||
|style="font-weight:bold;"| {{code|braceinside{{=}}yes}} | |||
|style="font-weight:bold;"| {{code|alttext{{=}}FOO}} | |||
|- | |||
!style="background:#eef;font-weight:normal;"| Normal | |||
|style="font-weight:bold;"| — | |||
| {{tlx|tl}}{{·}}{{tlx|tlp}}<sup>2</sup>{{·}}{{tlx|tlg}}<sup>1, 2</sup> | |||
| {{tlx|tlf}}<sup>2</sup> | |||
| {{tlx|tls}}{{·}}{{tlx|tlsp}} | |||
| {{tlx|tn}} | |||
| {{tlx|tla}} | |||
|- | |||
!style="background:#eef;font-weight:normal;"| <code>Code</code> | |||
|style="font-weight:bold;"| {{code|code{{=}}yes}} or<br />{{code|tt{{=}}yes}} | |||
| {{tlx|tlx}} | |||
| {{tlx|tlc}}<sup>2</sup>{{·}}{{tlx|tld}}{{·}}{{tlx|tnull}} | |||
| {{tlx|tlxs}} | |||
|style="background-color:#ccc;" colspan="2" | | |||
|- | |||
!style="background:#eef;font-weight:normal;"| '''Bold''' | |||
|style="font-weight:bold;"| {{code|bold{{=}}yes}} | |||
| {{tlx|tlb}} | |||
|style="background-color:#ccc;" rowspan="3" colspan="4" | | |||
|- | |||
!style="background:#eef;font-weight:normal;"| '''<code>Bold code</code>''' | |||
|style="font-weight:bold;"| {{code|bold{{=}}yes{{!}}code{{=}}yes}} | |||
| {{tlx|tlxb}} | |||
|- | |||
!style="background:#eef;font-weight:normal;" | ''<code>Italic code</code>'' | |||
|style="font-weight:bold;"| {{code|italic{{=}}yes{{!}}code{{=}}yes}} | |||
| {{tlx|tlxi}} | |||
|} | |||
{{clear}} | |||
<div align=center style="font-size:90%;">'''NOTES:''' 1 = {{tlx|tlg}} is the most general, allowing any combination of text style and/or link style options.<br /> | |||
2 = Prevents wrapping of text by placing it inside of {{tag|span|params=class="nowrap"}} tags.</div><br/> | |||
; Style comparison | |||
* {{tlf|tlf|Milford Haven Line|弘安源氏論議}} …renders… {{tlf|Milford Haven Line|弘安源氏論議}} | |||
* {{tlf|tld|Milford Haven Line|弘安源氏論議}} …renders… {{tld|Milford Haven Line|弘安源氏論議}} | |||
* {{tlf|tlc|Milford Haven Line|弘安源氏論議}} …renders… {{tlc|Milford Haven Line|弘安源氏論議}} | |||
<br/> | |||
; For parameter description | |||
* {{tlp|para|name|{{tlp|var|value}}}} …renders… {{para|name|{{var|value}}}} | |||
* {{tlp|para|name|{{tlp|varserif|value}}}} …renders… {{para|name|{{varserif|value}}}} | |||
* {{Tlp|tlx|Milford Haven Line|first parameter<nowiki>{{=}}</nowiki>first value}} …renders… {{tlx|Milford Haven Line|first parameter{{=}}first value}} | |||
[[ | ===See also=== | ||
{{tl templates}}<noinclude> | |||
[[Category:Documentation shared content templates]] | |||
</noinclude> |
Latest revision as of 19:33, 13 August 2022
Template linking templates
Link style → | Linked | Unlinked | Linked with subst | Linked including braces | Linked with alternative text | |
---|---|---|---|---|---|---|
Text style ↓ | {{tlg}} option1
|
— |
|
|
|
|
Normal | — | {{tl}} · {{tlp}} 2 · {{tlg}} 1, 2
|
{{tlf}} 2
|
{{tls}} · {{tlsp}}
|
{{tn}}
|
{{tla}}
|
Code
|
or
|
{{tlx}}
|
{{tlc}} 2 · {{tld}} · {{tnull}}
|
{{tlxs}}
|
||
Bold |
|
{{tlb}}
|
||||
Bold code
|
|
{{tlxb}}
| ||||
Italic code
|
|
{{tlxi}}
|
NOTES: 1 =
2 = Prevents wrapping of text by placing it inside of
{{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 of
<span class="nowrap">...</span>
tags.
- Style comparison
- {{tlf|Milford Haven Line|弘安源氏論議}} …renders… {{Milford Haven Line|弘安源氏論議}}
- {{tld|Milford Haven Line|弘安源氏論議}} …renders…
{{Milford Haven Line|弘安源氏論議}}
- {{tlc|Milford Haven Line|弘安源氏論議}} …renders…
{{Milford Haven Line|弘安源氏論議}}
- For parameter description
- {{para|name|{{var|value}}}} …renders…
|name=value
- {{para|name|{{varserif|value}}}} …renders…
|name=value
- {{tlx|Milford Haven Line|first parameter{{=}}first value}} …renders…
{{Milford Haven Line|first parameter=first value}}
See also
- Template:cl (backlinks, edit) – to link to a category
- Template:lts (backlinks, edit) – see lts discussion for more variants
- Template:t links (backlinks, edit) – provides a list of links to a template
- Template:tfd links (backlinks, edit) – used for marking templates for deletion
- Template:tiw (backlinks, edit) – provides backlinks and edit link with no brackets
- Template:tl (backlinks, edit) – links and edit history of the tl template
- Template:tl2 (backlinks, edit) – links and edit history of the tl2 template
- Template:tlp (backlinks, edit) – template link, with single parameter
- Template:tlsp (backlinks, edit) – template link, ditto subst'ed
- Template:tlu (backlinks, edit) – like
{{tl}}
/{{tlp}}
for any namespace - Template:tlx (backlinks, edit) – template link expanded, up to ten parameters
- Template:tn (backlinks, edit) – same as tl, but shows the braces as part of the link
- Template:xpd (backlinks, edit) – show live example
- edit talk links history) (