Template:Tl: Difference between revisions

From Meta, a Wikimedia project coordination wiki
Content deleted Content added
Quarl (talk | contribs)
add optional parameters
m added Special:MyLanguage/ giving increasing number of translated templates linked
 
(45 intermediate revisions by 33 users not shown)
Line 1: Line 1:
{{[[Template:{{{1}}}|{{{1}}}]]<!--
&#123;&#123;[[{{#if:{{{2|}}}|{{{2|}}}:}}Special:MyLanguage/Template:{{{1}}}|{{{1}}}]]&#125;&#125;<noinclude>
{{documentation}}
-->{{#if:{{{2|}}}|&#124;{{{2}}}}}<!--
<!-- Categories go on the /doc subpage and interwikis go on Wikidata. -->
-->{{#if:{{{3|}}}|&#124;{{{3}}}}}<!--
</noinclude>
-->{{#if:{{{4|}}}|&#124;{{{4}}}}}<!--
-->{{#if:{{{5|}}}|&#124;{{{5}}}}}<!--
-->{{#if:{{{6|}}}|&#124;{{{6}}}}}<!--
-->{{#if:{{{7|}}}|&#124;{{{7}}}}}<!--
-->{{#if:{{{8|}}}|&#124;{{{8}}}}}<!--
-->{{#if:{{{9|}}}|&#124;{{{9}}}}}<!--
-->}}<noinclude>
{{/doc}}</noinclude>

Latest revision as of 19:55, 26 September 2022

{{[[Special:MyLanguage/Template:{{{1}}}|{{{1}}}]]}}

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

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>.