Template:Template link/doc: Difference between revisions
Page last edited 3 weeks ago by Xeverything11
Undid revision 519826870 by DHC DarkShadow (talk) |
Added Template:para |
||
Line 1: | Line 1: | ||
{{ | {{Navbar-header|<big>Template linking templates</big>|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;" | |||
! | |||
! Link Style | |||
! style="font-weight:normal;" |Linked | |||
! style="font-weight:normal;" |Unlinked | |||
! style="font-weight:normal;" |Linked with subst: | |||
! style="font-weight:normal;" |Linked including braces | |||
: | ! style="font-weight:normal;" |Linked with alternative text | ||
|- valign="top" | |||
: | ! Text Style | ||
! {{tlx|tlg}} option | |||
| style="font-weight: bold;" |-- | |||
| style="font-weight: bold;" nowrap |{{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="font-weight:normal;" | Normal | |||
| style="font-weight: bold;" |-- | |||
| {{tlx|tl}}, {{tlx|tlp}}; {{tlx|tlg}} | |||
| {{tlx|tlf}} | |||
| {{tlx|tls}}, {{tlx|tlsp}} | |||
| {{tlx|tn}} | |||
| {{tlx|tla}} | |||
|- | |- | ||
| < | ! style="font-weight:normal;" | <tt>Teletype</tt> | ||
| {{ | | style="font-weight: bold;" |{{code|tt{{=}}yes}} | ||
| {{tlx|tlx}} | |||
| {{tlx|tld}}, {{tlx|tnull} | |||
| {{tlx|tlxs}} | |||
| | |||
| | |||
|- | |- | ||
| | ! style="font-weight:normal;" | '''Bold''' | ||
| | | style="font-weight: bold;" |{{code|bold{{=}}yes}} | ||
| {{tlx|tlb}} | |||
| | |||
| | |||
| | |||
| | |||
|- | |- | ||
| < | ! style="font-weight:normal;" | <tt>'''Bold Teletype'''</tt> | ||
| | | style="font-weight: bold;" |{{code|bold{{=}}yes{{!}}tt{{=}}yes}} | ||
| {{tlx|tlxb}} | |||
| | |||
| | |||
| | |||
| | |||
|- | |- | ||
| < | ! style="font-weight:normal;" | <tt>''Italic Teletype''</tt> | ||
| style="font-weight: bold;" |{{code|italic{{=}}yes{{!}}tt{{=}}yes}} | |||
| {{tlx|tlxi}} | |||
| | |||
| | |||
| | |||
| | |||
|- | |- | ||
| <code>< | ! style="font-weight:normal;" | <code>Code</code> | ||
| {{ | | style="font-weight: bold;" |{{code|code{{=}}yes}} | ||
| | |||
| {{tlx|tlc}} | |||
| | |||
| | |||
| | |||
|} | |} | ||
<div align=center style="font-size:90%;">'''NOTE:''' {{tlx|tlg}} is the most general, allowing any combination of the above options.</div> | |||
'''Style comparison''': | |||
* {{tlf|tlf|Milford Haven Line|弘安源氏論議}} produces: {{tlf|Milford Haven Line|弘安源氏論議}} | |||
* {{tlf|tld|Milford Haven Line|弘安源氏論議}} produces: {{tld|Milford Haven Line|弘安源氏論議}} | |||
* {{tlf|tlc|Milford Haven Line|弘安源氏論議}} produces: {{tlc|Milford Haven Line|弘安源氏論議}} | |||
For parameter description, | |||
{{ | * {{tlp|para|<var>name</var>|value}} renders: {{para|<var>name</var>|value}} | ||
< | <noinclude> | ||
[[Category: | [[Category:Documentation shared content templates]] | ||
[[ja:Template:Tl-nav]] | |||
</noinclude> | |||
[[ja:Template:Tl | |||
</ |
Revision as of 00:29, 30 October 2012
Link Style | Linked | Unlinked | Linked with subst: | Linked including braces | Linked with alternative text | |
---|---|---|---|---|---|---|
Text Style | {{tlg}} option
|
-- | Template:Code | Template:Code | Template:Code | Template:Code |
Normal | -- | {{tl}} , {{tlp}} ; {{tlg}}
|
{{tlf}}
|
{{tls}} , {{tlsp}}
|
{{tn}}
|
{{tla}}
|
Teletype | Template:Code | {{tlx}}
|
{{tld}} , {{tlx|tnull}
|
{{tlxs}}
|
||
Bold | Template:Code | {{tlb}}
|
||||
Bold Teletype | Template:Code | {{tlxb}}
|
||||
Italic Teletype | Template:Code | {{tlxi}}
|
||||
Code
|
Template:Code | {{tlc}}
|
NOTE:
{{tlg}}
is the most general, allowing any combination of the above options.Style comparison:
- Template:Tlf produces: Template:Tlf
- Template:Tlf produces: Template:Tld
- Template:Tlf produces: Template:Tlc
For parameter description,
- Template:Tlp renders:
|name=value