Template:Template-linking templates: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Redrose64 hmmm - why did I amend after moving? |
meta>Grolltech (1) clearer table; (2) {{tld}} is deprecated, because <tt> unsupported in HTML5; (3) {{tlp, tlf and tlc}} use nowrap; (4) fixed erroneous "parameter description" section; |
||
Line 3: | Line 3: | ||
|- <!--style="line-height:10pt;"--> | |- <!--style="line-height:10pt;"--> | ||
!style="width:12.0em;"| | !style="width:12.0em;"| | ||
!style="background:# | !style="background:#fcc;"| Link style → | ||
!style="background:# | !style="background:#fee;font-weight:normal;"| Linked | ||
!style="background:# | !style="background:#fee;font-weight:normal;"| Unlinked | ||
!style="background:# | !style="background:#fee;font-weight:normal;"| Linked with subst | ||
!style="background:# | !style="background:#fee;font-weight:normal;"| Linked including braces | ||
!style="background:# | !style="background:#fee;font-weight:normal;"| Linked with alternative text | ||
|- valign="top" | |- valign="top" | ||
!style="background:# | !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;"| {{code|nolink{{=}}yes}} | |style="font-weight:bold;"| {{code|nolink{{=}}yes}} | ||
Line 20: | Line 20: | ||
!style="background:#eef;font-weight:normal;"| Normal | !style="background:#eef;font-weight:normal;"| Normal | ||
|style="font-weight:bold;"| — | |style="font-weight:bold;"| — | ||
| {{tlx|tl}}{{·}}{{tlx|tlp}}{{·}}{{tlx|tlg}} | | {{tlx|tl}}{{·}}{{tlx|tlp}}<sup>2</sup>{{·}}{{tlx|tlg}}<sup>1</sup> | ||
| {{tlx|tlf}} | | {{tlx|tlf}}<sup>2</sup> | ||
| {{tlx|tls}}{{·}}{{tlx|tlsp}} | | {{tlx|tls}}{{·}}{{tlx|tlsp}} | ||
| {{ | | {{tn|tn}} | ||
| {{tlx|tla}} | | {{tlx|tla}} | ||
|- | |- | ||
Line 29: | Line 29: | ||
|style="font-weight:bold;"| {{code|code{{=}}yes}} or<br />{{code|tt{{=}}yes}} | |style="font-weight:bold;"| {{code|code{{=}}yes}} or<br />{{code|tt{{=}}yes}} | ||
| {{tlx|tlx}} | | {{tlx|tlx}} | ||
| {{tlx|tlc}}{{·}}{{tlx|tld}}{{·}}{{tlx|tnull}} | | {{tlx|tlc}}<sup>2</sup>{{·}}<!-- The <tt> tag is unsupported in HTML5, thus TLD is deprecated; use TLC instead. {{tlx|tld}}{{·}}-->{{tlx|tnull}} | ||
| {{tlx|tlxs}} | | {{tlx|tlxs}} | ||
| | |style="background-color:#ccc;" colspan="2" | | ||
| | |||
|- | |- | ||
!style="background:#eef;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;" colspan="4" | | ||
| | |||
|- | |- | ||
!style="background:#eef;font-weight:normal;"| '''<code>Bold code</code>''' | !style="background:#eef;font-weight:normal;"| '''<code>Bold code</code>''' | ||
|style="font-weight:bold;"| {{code|bold{{=}}yes{{!}}code{{=}}yes}} | |style="font-weight:bold;"| {{code|bold{{=}}yes{{!}}code{{=}}yes}} | ||
| {{tlx|tlxb}} | | {{tlx|tlxb}} | ||
| | |style="background-color:#ccc;" colspan="4" | | ||
| | |||
|- | |- | ||
!style="background:#eef;font-weight:normal;" | ''<code>Italic code</code>'' | !style="background:#eef;font-weight:normal;" | ''<code>Italic code</code>'' | ||
|style="font-weight:bold;"| {{code|italic{{=}}yes{{!}}code{{=}}yes}} | |style="font-weight:bold;"| {{code|italic{{=}}yes{{!}}code{{=}}yes}} | ||
| {{tlx|tlxi}} | | {{tlx|tlxi}} | ||
| | |style="background-color:#ccc;" colspan="4" | | ||
| | |||
|} | |} | ||
<div align=center style="font-size:90%;">''' | {{clear}} | ||
<br/> | <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=style="white-space:nowrap;"}} tags.</div><br/> | |||
; Style comparison | ; Style comparison | ||
* {{tlf|tlf|Milford Haven Line|弘安源氏論議}} ...renders... {{tlf|Milford Haven Line|弘安源氏論議}} | * {{tlf|tlf|Milford Haven Line|弘安源氏論議}} ...renders... {{tlf|Milford Haven Line|弘安源氏論議}} | ||
* {{tlf|tlc|Milford Haven Line|弘安源氏論議}} ...renders... {{tlc|Milford Haven Line|弘安源氏論議}} | * {{tlf|tlc|Milford Haven Line|弘安源氏論議}} ...renders... {{tlc|Milford Haven Line|弘安源氏論議}} | ||
<br/> | <br/> | ||
; For parameter description | ; For parameter description | ||
* {{tlp|para| | * {{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}} | * {{Tlp|tlx|Milford Haven Line|first parameter<nowiki>{{=}}</nowiki>first value}} ...renders... {{tlx|Milford Haven Line|first parameter{{=}}first value}} | ||
Revision as of 13:31, 2 May 2013
Template linking templates
Link style → | Linked | Unlinked | Linked with subst | Linked including braces | Linked with alternative text | |
---|---|---|---|---|---|---|
Text style ↓ | {{tlg}} option1
|
— | nolink=yes
|
subst=yes
|
braceinside=yes
|
alttext=FOO
|
Normal | — | {{tl}} · {{tlp}} 2 · {{tlg}} 1
|
{{tlf}} 2
|
{{tls}} · {{tlsp}}
|
{{tn}} | {{tla}}
|
Code
|
code=yes ortt=yes
|
{{tlx}}
|
{{tlc}} 2 · {{tnull}}
|
{{tlxs}}
|
||
Bold | bold=yes
|
{{tlb}}
|
||||
Bold code
|
bold=yes|code=yes
|
{{tlxb}}
|
||||
Italic code
|
italic=yes|code=yes
|
{{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 style="white-space:nowrap;">...</span>
tags.
- Style comparison
- {{tlf|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=Template:Varserif
- {{tlx|Milford Haven Line|first parameter{{=}}first value}} ...renders...
{{Milford Haven Line|first parameter=first value}}