Template:Tlg
{{Template:Tlg}}
File:Lua-logo-nolabel.svg | Uses Lua: |
TemplateData
This is the TemplateData documentation for this template used by VisualEditor and other tools.
Template link general
<templatedata>{"paramOrder":["brace","braceinside","bold","code","italic","kbd","mono","nolink","nowrap","nowrapname","plaincode","subst","link subst","alttext","1","2","3","4","5","6","7","8","9","10","11"],"description":"Template link general","params":{"nowrap":{"type":"boolean","default":"0","label":"No Wrap?","description":"Whether to add “”.","autovalue":"1","required":false},"code":{"type":"boolean","default":"0","label":"Code?","description":"Whether to add “”.","autovalue":"1","required":false},"nowrapname":{"type":"boolean","default":"0","label":"No Wrap Name?","description":"Whether to add “” around the linked template name.","autovalue":"1","required":false},"mono":{"type":"boolean","default":"0","label":"Mono?","description":"Whether to add “”.","autovalue":"1","required":false},"kbd":{"type":"boolean","default":"0","label":"Kbd?","description":"Whether to add “”.","autovalue":"1","required":false},"braceinside":{"type":"boolean","default":"0","label":"Link Inner Brackets?","description":"Whether to include the inner brackets as part of the linked template name.","autovalue":"1","required":false},"link subst":{"type":"boolean","default":"0","label":"Link Subst?","description":"Whether the “subst:” prefix should link to the help page on substitution.","autovalue":"1","required":false},"nolink":{"type":"boolean","default":"0","label":"No Link?","description":"Whether to not create a link to the template.","autovalue":"1","required":false},"bold":{"type":"boolean","default":"0","label":"Bold?","description":"Whether to add “” around the linked template name.","autovalue":"1","required":false},"plaincode":{"type":"boolean","default":"0","label":"Plain Code?","description":"Whether to add “
”.","autovalue":"1","required":false},"subst":{"type":"boolean","default":"0","label":"Subst?","description":"Whether to use “subst:”.","autovalue":"1","required":false},"italic":{"type":"boolean","default":"0","label":"Italic?","description":"Whether to add “” around parameters.","autovalue":"1","required":false},"alttext":{"type":"line","default":"{{{1}}}","label":"Display Text","description":"Displayed link text.","required":false},"brace":{"type":"boolean","default":"0","label":"Link Brackets?","description":"Whether to include both brackets as part of the linked template name.","autovalue":"1","required":false},"1":{"description":"Linked template name","type":"wiki-template-name","required":true,"label":"Template"},"2":{"description":"First parameter value","type":"content","required":false,"label":"Parameter 1"},"3":{"description":"Second parameter value","type":"content","required":false,"label":"Parameter 2"},"4":{"description":"Third parameter value","type":"content","required":false,"label":"Parameter 3"},"5":{"description":"Fourth parameter value","type":"content","required":false,"label":"Parameter 4"},"6":{"description":"Fifth parameter value","type":"content","required":false,"label":"Parameter 5"},"7":{"description":"Sixth parameter value","type":"content","required":false,"label":"Parameter 6"},"8":{"description":"Seventh parameter value","type":"content","required":false,"label":"Parameter 7"},"9":{"description":"Eighth parameter value","type":"content","required":false,"label":"Parameter 8"},"10":{"description":"Ninth parameter value","type":"content","required":false,"label":"Parameter 9"},"11":{"description":"Tenth parameter value","type":"content","required":false,"label":"Parameter 10"}}}</templatedata>Edit parameter translations
See also
Comparison of template-linking templates according to the styles of generated text and link produced
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=1
subst=1
normal
DEFAULT
- {{tlf}}
[note 2]
<template link>
- {{subst :tls}}
- {{subst :Template:tlsu}}
[note 3]
code
code=1
{{tl2}}
{{tlc}}
[note 2]
<template link> {{tnull}}
<template link>
monospace
mono=1
[note 4]
N/A
plaincode
plaincode=1
[note 5]
kbd
kbd=1
[note 6]
- ↑ Jump up to: 1.0 1.1 1.2
{{tlg}}
is the most general template, allowing any combination of text style and/or link style options.
- ↑ Jump up to: 2.0 2.1 2.2 Prevents wrapping of text by placing it inside
<span style="white-space:nowrap">...</span>
tags.
- ↑ Allows links to templates in any namespace.
- ↑ Jump up to: 4.0 4.1 4.2 Displays monospaced font using
<span style="font-family:monospace">...</span>
.
- ↑
{{Template:Tlg}}
uses <code style="background:transparent;border:none">...</code>
.
- ↑
{{Template:Tlg}}
uses <kbd>
tags.