Vorlage:Dokumentation Links auf Vorlagen/Übersicht: Unterschied zwischen den Versionen

Aus skandinavien-wiki.net
imported>Redrose64
(hmmm - why did I amend after moving?)
imported>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;)
Zeile 3: Zeile 3:
|- <!--style="line-height:10pt;"-->
|- <!--style="line-height:10pt;"-->
!style="width:12.0em;"|
!style="width:12.0em;"|
!style="background:#ddf;"| Link style
!style="background:#fcc;"| Link style
!style="background:#eef;font-weight:normal;"| Linked
!style="background:#fee;font-weight:normal;"| Linked
!style="background:#eef;font-weight:normal;"| Unlinked
!style="background:#fee;font-weight:normal;"| Unlinked
!style="background:#eef;font-weight:normal;"| Linked with subst
!style="background:#fee;font-weight:normal;"| Linked with subst
!style="background:#eef;font-weight:normal;"| Linked including braces
!style="background:#fee;font-weight:normal;"| Linked including braces
!style="background:#eef;font-weight:normal;"| Linked with alternative&nbsp;text
!style="background:#fee;font-weight:normal;"| Linked with alternative&nbsp;text
|- valign="top"
|- valign="top"
!style="background:#ddf;"| Text style
!style="background:#ccf;"| Text style
! {{tlx|tlg}} option
! {{tlx|tlg}} option<sup>1</sup>
|style="font-weight:bold;"| &mdash;
|style="font-weight:bold;"| &mdash;
|style="font-weight:bold;"| {{code|nolink{{=}}yes}}
|style="font-weight:bold;"| {{code|nolink{{=}}yes}}
Zeile 20: Zeile 20:
!style="background:#eef;font-weight:normal;"| Normal
!style="background:#eef;font-weight:normal;"| Normal
|style="font-weight:bold;"| &mdash;
|style="font-weight:bold;"| &mdash;
| {{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}}
| {{tlx|tn}}
| {{tn|tn}}
| {{tlx|tla}}
| {{tlx|tla}}
|-
|-
Zeile 29: Zeile 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"  | &nbsp;
|
|-
|-
!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"  | &nbsp;
|
|
|
|-
|-
!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"  | &nbsp;
|
|
|
|-
|-
!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"  | &nbsp;
|
|
|
|}
|}
<div align=center style="font-size:90%;">'''NOTE:''' {{tlx|tlg}} is the most general, allowing any combination of the above options.</div>
{{clear}}
<br/>
<div align=center style="font-size:90%;">'''NOTES:'''&nbsp; 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|tld|Milford Haven Line|弘安源氏論議}} ...renders... {{tld|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|&lt;var>name&lt;/var>|value}} ...renders... {{para|<var>name</var>|value}}
* {{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}}



Version vom 2. Mai 2013, 14:31 Uhr

Vorlage:Resize
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 or
tt=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 = {{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