Template:Tl-nav: Difference between revisions

From AnOtherWiki, the free encyclopedia written by, for, and about the Otherkin community.
m (1 revision)
 
m (Text replacement - "(['][']['])(.*)(['][']['])" to "{{b|$2}}")
 
Line 1: Line 1:
{{Navbar-header|{{resize|120%|'''Template linking templates'''}}|Tl-nav|plain=1}}
{{Navbar-header|{{resize|120%|{{b|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;"-->
Line 34: Line 34:
|
|
|-
|-
!style="background:#eef;font-weight:normal;"| '''Bold'''
!style="background:#eef;font-weight:normal;"| {{b|Bold}}
|style="font-weight:bold;"| {{code|bold{{=}}yes}}
|style="font-weight:bold;"| {{code|bold{{=}}yes}}
| {{tlx|tlb}}
| {{tlx|tlb}}
Line 42: Line 42:
|
|
|-
|-
!style="background:#eef;font-weight:normal;"| '''<tt>Bold teletype</tt>'''
!style="background:#eef;font-weight:normal;"| {{b|<tt>Bold teletype</tt>}}
|style="font-weight:bold;"| {{code|bold{{=}}yes{{!}}tt{{=}}yes}}
|style="font-weight:bold;"| {{code|bold{{=}}yes{{!}}tt{{=}}yes}}
| {{tlx|tlxb}}
| {{tlx|tlxb}}
Line 66: Line 66:
|
|
|}
|}
<div align=center style="font-size:90%;">'''NOTE:''' {{tlx|tlg}} is the most general, allowing any combination of the above options.</div>
<div align=center style="font-size:90%;">{{b|NOTE:}} {{tlx|tlg}} is the most general, allowing any combination of the above options.</div>
<br/>
<br/>
; Style comparison
; Style comparison

Latest revision as of 21:29, 13 September 2023

Template linking templates
Link style Linked Unlinked Linked with subst Linked including braces Linked with alternative text
Text style {{tlg}} option <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}} · {{tlg}} {{tlf}} {{tls}} · {{tlsp}} {{tn}} {{tla}}
Teletype <syntaxhighlight lang="text" enclose="none">tt=yes</syntaxhighlight> {{tlx}} {{tld}} · {{tnull}} {{tlxs}}
Bold <syntaxhighlight lang="text" enclose="none">bold=yes</syntaxhighlight> {{tlb}}
Bold teletype <syntaxhighlight lang="text" enclose="none">bold=yes|tt=yes</syntaxhighlight> {{tlxb}}
Italic teletype <syntaxhighlight lang="text" enclose="none">italic=yes|tt=yes</syntaxhighlight> {{tlxi}}
Code <syntaxhighlight lang="text" enclose="none">code=yes</syntaxhighlight> {{tlc}}
NOTE: {{tlg}} is the most general, allowing any combination of the above options.


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|<var>name</var>|value}} ...renders... |name=value
  • {{tlx|Milford Haven Line|first parameter{{=}}first value}} ...renders... {{Milford Haven Line|first parameter=first value}}

ja:Template:Tl-nav