Template:Template-linking templates: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>DePiep
→‎Templates with example: rm {{cl}} - not a template link at all
meta>Codename Lisa
→‎Templates by syntax: Applying KISS principle: Banishing all intricate HTML and CSS codes in favor a more streamlined and standard format
Line 2: Line 2:
<noinclude>{{float|{{template shortcut|Tl-nav|Tl templates}}}}</noinclude>
<noinclude>{{float|{{template shortcut|Tl-nav|Tl templates}}}}</noinclude>
===Templates by syntax===
===Templates by syntax===
{| class="wikitable navbox collapsible" style="width:auto;font-size:90%;margin:1.0em auto 1.0em auto;vertical-align:top;text-align:left;"
{| class="wikitable navbox collapsible" style="width:auto;font-size:90%;margin:1.0em auto 1.0em auto;vertical-align:top;text-align:center;"
|+ Comparison of template-linking templates according to their style
|-
|-
!style=*"|
!style=*"|
!style="background:#fcc;"| Link style →
!style="background:#fcc;"| Link style →
!style="background:#fee;font-weight:normal;"| Linked
!style="background:#fee;"| Linked
!style="background:#fee;font-weight:normal;"| Unlinked
!style="background:#fee;"| Unlinked
!style="background:#fee;font-weight:normal;"| Linked with subst
!style="background:#fee;"| Linked with subst
!style="background:#fee;font-weight:normal;"| Linked including braces
!style="background:#fee;"| Linked including braces
!style="background:#fee;font-weight:normal;"| Linked with alternative&nbsp;text
!style="background:#fee;"| Linked with alternative&nbsp;text
|- valign="top"
|-
!style="background:#ccf;"| Text style ↓
!style="background:#ccf;"| Text style ↓
! {{tlx|tlg}} option<sup>1</sup>
|'''↓ {{tlx|tlg}} options<sup>1</sup> →'''
|style="font-weight:bold;"| &mdash;
|{{N/A}}
|style="font-weight:bold;"| {{code|nolink{{=}}yes}}
|{{code|nolink{{=}}yes}}
|style="font-weight:bold;"| {{code|subst{{=}}yes}}
|{{code|subst{{=}}yes}}
|style="font-weight:bold;"| {{code|braceinside{{=}}yes}}
|{{code|braceinside{{=}}yes}}
|style="font-weight:bold;"| {{code|alttext{{=}}Foo}}<br>{{code|2{{=}}Foo}}
|{{code|alttext{{=}}Foo}}<br>{{code|2{{=}}Foo}}
|-
|-
!style="background:#eef;font-weight:normal;"| Normal
|style="background:#eef;"| Normal
|style="font-weight:bold;"| &mdash;
| {{N/A}}
| {{nowrap|{{tlx|tlg}}<sup>1, 2</sup>}}<br>{{tlx|tl}}<br><code>{{tla|t links|2=t&nbsp;links}}</code><br>{{tlx|tlp}}<sup>2</sup>
| {{nowrap|{{tlx|tlg}}<sup>1, 2</sup>}}<br>{{tlx|tl}}<br><code>{{tla|t links|2=t&nbsp;links}}</code><br>{{tlx|tlp}}<sup>2</sup>
| {{tlx|tlf}}<sup>2</sup>
| {{tlx|tlf}}<sup>2</sup>
Line 28: Line 29:
| {{tlx|tla}}
| {{tlx|tla}}
|-
|-
!style="background:#eef;font-weight:normal;"| <code>Code</code>
!style="background:#eef;"| <code>Code</code>
|style="font-weight:bold;"| {{code|code{{=}}yes}} or<br />{{code|tt{{=}}yes}}
| {{code|code{{=}}yes}} or<br />{{code|tt{{=}}yes}}
| {{tlx|tlx}}
| {{tlx|tlx}}
| {{tlx|tlc}}<sup>2</sup><br>{{tlx|tld}}<sup>2</sup><br>{{tlx|tnull}}
| {{tlx|tlc}}<sup>2</sup><br>{{tlx|tld}}<sup>2</sup><br>{{tlx|tnull}}
| {{tlx|tlxs}}
| {{tlx|tlxs}}
|style="background-color:#ccc;" colspan="2" | &nbsp;
| colspan="2" {{N/A}}
|-
|-
!style="background:#eef;font-weight:normal;"| '''Bold'''
|style="background:#eef;"| '''Bold'''
|style="font-weight:bold;"| {{code|bold{{=}}yes}}
| {{code|bold{{=}}yes}}
| {{tlx|tlb}}
| {{tlx|tlb}}
|style="background-color:#ccc;" rowspan="3" colspan="4" | &nbsp;
| rowspan="3" colspan="4" {{N/A}}
|-
|-
!style="background:#eef;font-weight:normal;"| '''<code>Bold code</code>'''
|style="background:#eef;"| '''<code>Bold code</code>'''
|style="font-weight:bold;"| {{code|bold{{=}}yes{{!}}code{{=}}yes}}
| {{code|bold{{=}}yes{{!}}code{{=}}yes}}
| {{tlx|tlxb}}
| {{tlx|tlxb}}
|-
|-
!style="background:#eef;font-weight:normal;" | ''<code>Italic code</code>''
|style="background:#eef;" | ''<code>Italic code</code>''
|style="font-weight:bold;"| {{code|italic{{=}}yes{{!}}code{{=}}yes}}
| {{code|italic{{=}}yes{{!}}code{{=}}yes}}
| {{tlx|tlxi}}
| {{tlx|tlxi}}
|}
|}

Revision as of 21:32, 19 April 2014

Template-linking templates

Template:Float

Templates by syntax

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 <span class="nowrap">...</span> tags.

Templates with example

{{lts|Hatnote}} Template:Hatnote(edit talk links history)
{{t links|Hatnote}} Hatnote (edit talk history links # /subpages /doc /doc edit /sbox /sbox diff /test)
{{tfd links|Hatnote}} Template:Hatnote (edit · talk · history · links · transclusions · logs · subpages · delete)
{{tiw|Hatnote}} Template:hatnote (backlinks edit)
{{tl|Hatnote}} {{hatnote}}
{{tl2|Hatnote}} {{hatnote}}
{{tla|Hatnote}} {{hatnote}}
{{tlb|Hatnote}} {{hatnote}}
{{tlc|Hatnote}} {{hatnote}}
{{tld|Hatnote}} {{hatnote}}
{{tlf|Hatnote}} {{hatnote}}
{{tlg|Hatnote}} {{hatnote}}
{{tlp|Hatnote}} {{hatnote}}
{{tls|Hatnote}} {{subst:hatnote}}
{{tlsp|Hatnote}} {{subst:hatnote}}
{{tlu|Hatnote}} {{hatnote}}
{{tlx|Hatnote}} {{hatnote}}
{{tlxb|Hatnote}} {{hatnote}}
{{tlxi|Hatnote}} {{hatnote}}
{{tlxs|Hatnote}} {{subst:hatnote}}
{{tn|Hatnote}} {{hatnote}}
{{tnull|Hatnote}} {{hatnote}}
{{xpd|Hatnote}} "{{hatnote}}" gives "
{{{1}}}
" [1]