Template:Tl: Difference between revisions

From Meta, a Wikimedia project coordination wiki
Content deleted Content added
No edit summary
Sarang (talk | contribs)
m test
Line 1: Line 1:
<includeonly>&#123;&#123;[[{{transclude|{{{1}}}}}|{{{1}}}]]{{#if:{{{2|{{{arg|}}}}}}|{{!}}{{{2|{{{arg}}}}}}}}&#125;&#125;</includeonly><noinclude>
{{#if:{{{incl|}}}||&#123;&#123;}}[[:{{#if:{{{3|{{{lang|}}}}}}|{{{3|{{{lang}}}}}}:}}{{ns:10}}:{{{1|Tl}}}|{{#if:{{{incl|}}}|&#123;&#123;}}{{#if:{{{code|}}}|<code>}}{{{2|{{{1|Tl}}}}}}{{{parm|}}}{{#if:{{{code|}}}|</code>}}{{#if:{{{incl|}}}|&#125;&#125;}}]]{{#if:{{{incl|}}}||&#125;&#125;}}
<noinclude>
{{Documentation}}
{{documentation}}
<!-- 請在將分類與跨語言連結增加在 /doc 子頁面 -->
</noinclude>
</noinclude>

Revision as of 05:57, 21 July 2013

{{Tl}}

Template documentation
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools.

TemplateData for Template link

This template is used for displaying a bracketed link to a template page.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
template1

The template to link to

Templaterequired
interwiki prefix2

Interwiki prefix, when linking to non-Meta templates

Example
w
Lineoptional

Usage

  • "{{tl|abc}}" gives "{{abc}}

" [1]

  • "{{tl|abc|w}}" gives "{{w}}

" [2] (link to Wikipedia)

See also

Template linking templates
Text style ↓ {{tlg}} options[note 1]
to achieve text style
Link Style
Linked Unlinked Linked with subst:
{{tlg}} options[note 1]
to achieve link style
N/A DEFAULT nolink=yes subst=yes
Normal DEFAULT
code code=yes
  • {{tlc}}[note 3]
    <template link>
  • {{tnull}}
    <template link>
N/A
monospace plaincode=yes[note 4] N/A
kbd kbd=yes[note 5]
bold bold=yes
N/A
  1. a b c {{tlg}} is the most general template, allowing any combination of text style and/or link style options.
  2. Allows links to templates in any namespace.
  3. a b Prevents wrapping of text by placing it inside <span class="nowrap">...</span> tags.
  4. {{tlg|plaincode=yes}} uses <code style="border:none; background-color:transparent;">...</code>.
  5. a b c Displays monospaced font using <span style="font-family:monospace;">...</span>.