Difference between revisions of "Template:Tl-nav"
[http://www.nga.gov/content/ngaweb/research/casva/research-projects.html A Project of the National Gallery of Art, Center for Advanced Study in the Visual Arts ]
Emily Pugh (talk | contribs) m (1 revision) |
Emily Pugh (talk | contribs) m (1 revision) |
||
(One intermediate revision by the same user not shown) | |||
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%;" | {| align="center" class="wikitable collapsible" style="margin:1em auto 1em auto; width:auto; text-align:center; font-size:90%;" | ||
− | |- style="line-height:10pt;" | + | |- <!--style="line-height:10pt;"--> |
− | ! | + | !style="width:12.0em;"| |
− | ! Link | + | !style="background:#fcc;"| Link style → |
− | ! style="font-weight:normal;" |Linked | + | !style="background:#fee;font-weight:normal;"| Linked |
− | ! style="font-weight:normal;" |Unlinked | + | !style="background:#fee;font-weight:normal;"| Unlinked |
− | ! style="font-weight:normal;" |Linked with subst | + | !style="background:#fee;font-weight:normal;"| Linked with subst |
− | ! style="font-weight:normal;" |Linked including braces | + | !style="background:#fee;font-weight:normal;"| Linked including braces |
− | ! style="font-weight:normal;" |Linked with alternative text | + | !style="background:#fee;font-weight:normal;"| Linked with alternative text |
|- valign="top" | |- valign="top" | ||
− | ! Text | + | !style="background:#ccf;"| Text style ↓ |
− | ! {{tlx|tlg}} option | + | ! {{tlx|tlg}} option<sup>1</sup> |
− | | style="font-weight: bold;" | | + | |style="font-weight:bold;"| — |
− | | style="font-weight: bold;" | + | |style="font-weight:bold;"| {{code|nolink{{=}}yes}} |
− | | style="font-weight: bold;" |{{code|subst{{=}}yes}} | + | |style="font-weight:bold;"| {{code|subst{{=}}yes}} |
− | | style="font-weight: bold;" |{{code|braceinside{{=}}yes}} | + | |style="font-weight:bold;"| {{code|braceinside{{=}}yes}} |
− | | style="font-weight: bold;" |{{code|alttext{{=}}FOO}} | + | |style="font-weight:bold;"| {{code|alttext{{=}}FOO}} |
|- | |- | ||
− | ! style="font-weight:normal;" | Normal | + | !style="background:#eef;font-weight:normal;"| Normal |
− | | style="font-weight: bold;" | | + | |style="font-weight:bold;"| — |
− | | {{tlx|tl}} | + | | {{tlx|tl}}{{·}}{{tlx|tlp}}<sup>2</sup>{{·}}{{tlx|tlg}}<sup>1, 2</sup> |
− | | {{tlx|tlf}} | + | | {{tlx|tlf}}<sup>2</sup> |
− | | {{tlx|tls}} | + | | {{tlx|tls}}{{·}}{{tlx|tlsp}} |
| {{tlx|tn}} | | {{tlx|tn}} | ||
| {{tlx|tla}} | | {{tlx|tla}} | ||
|- | |- | ||
− | ! style="font-weight:normal;" | < | + | !style="background:#eef;font-weight:normal;"| <code>Code</code> |
− | | style="font-weight: bold;" |{{code|tt{{=}}yes}} | + | |style="font-weight:bold;"| {{code|code{{=}}yes}} or<br />{{code|tt{{=}}yes}} |
| {{tlx|tlx}} | | {{tlx|tlx}} | ||
− | | {{tlx|tld}} | + | | {{tlx|tlc}}<sup>2</sup>{{·}}{{tlx|tld}}{{·}}{{tlx|tnull}} |
| {{tlx|tlxs}} | | {{tlx|tlxs}} | ||
− | | | + | |style="background-color:#ccc;" colspan="2" | |
− | | | ||
|- | |- | ||
− | ! style="font-weight:normal;" | '''Bold''' | + | !style="background:#eef;font-weight:normal;"| '''Bold''' |
− | | style="font-weight: bold;" |{{code|bold{{=}}yes}} | + | |style="font-weight:bold;"| {{code|bold{{=}}yes}} |
| {{tlx|tlb}} | | {{tlx|tlb}} | ||
− | | | + | |style="background-color:#ccc;" rowspan="3" colspan="4" | |
− | |||
− | |||
− | | | ||
|- | |- | ||
− | ! style="font-weight:normal;" | | + | !style="background:#eef;font-weight:normal;"| '''<code>Bold code</code>''' |
− | | style="font-weight: bold;" |{{code|bold{{=}}yes{{!}} | + | |style="font-weight:bold;"| {{code|bold{{=}}yes{{!}}code{{=}}yes}} |
| {{tlx|tlxb}} | | {{tlx|tlxb}} | ||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
− | ! style="font-weight:normal;" | < | + | !style="background:#eef;font-weight:normal;" | ''<code>Italic code</code>'' |
− | | style="font-weight: bold;" |{{code|italic{{=}}yes{{!}} | + | |style="font-weight:bold;"| {{code|italic{{=}}yes{{!}}code{{=}}yes}} |
| {{tlx|tlxi}} | | {{tlx|tlxi}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
− | <div align=center style="font-size:90%;">''' | + | {{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|Tfd links}} | ||
+ | * {{tl|T links}} | ||
+ | <noinclude> | ||
+ | |||
+ | [[Category:Documentation shared content templates]] | ||
+ | |||
+ | </noinclude> |
Latest revision as of 20:40, September 10, 2013
Template linking templates
Link style → | Linked | Unlinked | Linked with subst | Linked including braces | Linked with alternative text | |
---|---|---|---|---|---|---|
Text style ↓ | {{tlg}} option1 | — | <syntaxhighlight lang="text" enclose="none">nolink=yes</syntaxhighlight>
|
<syntaxhighlight lang="text" enclose="none">subst=yes</syntaxhighlight>
|
<syntaxhighlight lang="text" enclose="none">braceinside=yes</syntaxhighlight>
|
<syntaxhighlight lang="text" enclose="none">alttext=FOO</syntaxhighlight>
|
Normal | — | {{tl}} · {{tlp}}2 · {{tlg}}1, 2 | {{tlf}}2 | {{tls}} · {{tlsp}} | {{tn}} | {{tla}} |
Code
|
<syntaxhighlight lang="text" enclose="none">code=yes</syntaxhighlight> or<syntaxhighlight lang="text" enclose="none">tt=yes</syntaxhighlight>
|
{{tlx}} | {{tlc}}2 · {{tld}} · {{tnull}} | {{tlxs}} | ||
Bold | <syntaxhighlight lang="text" enclose="none">bold=yes</syntaxhighlight>
|
{{tlb}} | ||||
Bold code
|
<syntaxhighlight lang="text" enclose="none">bold=yes|code=yes</syntaxhighlight>
|
{{tlxb}} | ||||
Italic code
|
<syntaxhighlight lang="text" enclose="none">italic=yes|code=yes</syntaxhighlight>
|
{{tlxi}} |
NOTES: 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 of
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