Template:T links/doc: Difference between revisions
en>DePiep |
m (1 revision imported) |
(No difference)
|
Latest revision as of 20:35, 19 June 2023
![]() | This is a documentation subpage for Template:T links. It may contain usage information, categories and other content that is not part of the original template page. |
This template provides a list of links to a template. There are no restricted links (such as adding protection to the template). A link to a related module can be added.
Usage
This is a documentation subpage for Template:T links.
It may contain usage information, categories and other content that is not part of the original template page.
Usage
Wraps a short span of text in <syntaxhighlight>
tags (see mw:Extension:SyntaxHighlight). This template should be used for short samples; longer content should use <pre>...</pre>
or <syntaxhighlight>...</syntaxhighlight>
. See Help:Wiki markup for an explanation of what the various tags do.
If the content includes an equals sign (=), you must specify the parameter explicitly: {{code|1=date=30 Feb 2010}}
.
The template uses the <syntaxhighlight>
tag with the attribute inline=1
. This works like the combination of the <code>
and <nowiki>
tags, applied to the expanded wikitext. For example, {{code|some '''wiki''' text}}
will not render the word "wiki" in bold, and will render the tripled-single-quotes:
- Template loop detected: Template:Code
However, {{code|a {{template}} call}}
will still invoke the template:
- Template loop detected: Template:Code
Use <nowiki>...</nowiki>
around the template name to avoid this problem:
- Template loop detected: Template:Code
When used inline with regular text, {{code}}
generally looks best and is easiest to read when it is explicitly spaced apart from the regular text:
- Template loop detected: Template:Code
is well spaced:
- foo Template loop detected: Template:Code quux.
versus:
- Template loop detected: Template:Code
which is going to be visually confusing for many:
- foo Template loop detected: Template:Code quux.
because "foo" and "Template loop detected: Template:Code" will seem more closely associated than "Template loop detected: Template:Code" and "Template loop detected: Template:Code"; the width of the space character in a monospaced font is almost always larger than in a proportional font.
Use parameter {{{2}}} (unnamed, as |2=
, or more explicitly as |lang=
) to specify a language for mw:Extension:SyntaxHighlight. This option defaults to plain-text, i.e. no highlighting. There is no highlighting option for wikitext as a markup language, though Template loop detected: Template:Code and Template loop detected: Template:Code are valid values, as are Template loop detected: Template:Code, Template loop detected: Template:Code, Template loop detected: Template:Code, Template loop detected: Template:Code, Template loop detected: Template:Code and many others. Attempting to use an invalid one causes a list of valid ones to be displayed in place of the template output, when the page is previewed or saved.
This template does not need to be substituted.
Examples
Markup | Renders asScript error: No such module "For loop". |
---|---|
Included templates
Embedded templates do not function as expected inside {{code}}; for longer, free-form blocks of code, which can contain templates such as {{var}} and {{samp}}, use <code>...</code>
as a wrapper instead of this template.
Templates used inside {{code}} expose the rendered HTML— this can be useful. For example:
Markup | Renders asScript error: No such module "For loop". |
---|---|
The above example shows the HTML rendered by the citation template, including the hidden metadata.
TemplateData
TemplateData for T links
Script error: No such module "Format TemplateData".
See also
- {{codett}}, wrapper for this template that removes background and border styling
- {{mono}}, monospaced font only
- {{param value}}, monospaced; friendly handling for blank space
- {{Syntaxhighlight}}
- {{kbd}}, for keyboard input
- Help:Wiki markup
→
{{Infobox building}} (edit talk history links # /subpages /doc /doc edit /sbox /sbox diff /test)
This is a documentation subpage for Template:T links.
It may contain usage information, categories and other content that is not part of the original template page.
Usage
Wraps a short span of text in <syntaxhighlight>
tags (see mw:Extension:SyntaxHighlight). This template should be used for short samples; longer content should use <pre>...</pre>
or <syntaxhighlight>...</syntaxhighlight>
. See Help:Wiki markup for an explanation of what the various tags do.
If the content includes an equals sign (=), you must specify the parameter explicitly: {{code|1=date=30 Feb 2010}}
.
The template uses the <syntaxhighlight>
tag with the attribute inline=1
. This works like the combination of the <code>
and <nowiki>
tags, applied to the expanded wikitext. For example, {{code|some '''wiki''' text}}
will not render the word "wiki" in bold, and will render the tripled-single-quotes:
- Template loop detected: Template:Code
However, {{code|a {{template}} call}}
will still invoke the template:
- Template loop detected: Template:Code
Use <nowiki>...</nowiki>
around the template name to avoid this problem:
- Template loop detected: Template:Code
When used inline with regular text, {{code}}
generally looks best and is easiest to read when it is explicitly spaced apart from the regular text:
- Template loop detected: Template:Code
is well spaced:
- foo Template loop detected: Template:Code quux.
versus:
- Template loop detected: Template:Code
which is going to be visually confusing for many:
- foo Template loop detected: Template:Code quux.
because "foo" and "Template loop detected: Template:Code" will seem more closely associated than "Template loop detected: Template:Code" and "Template loop detected: Template:Code"; the width of the space character in a monospaced font is almost always larger than in a proportional font.
Use parameter {{{2}}} (unnamed, as |2=
, or more explicitly as |lang=
) to specify a language for mw:Extension:SyntaxHighlight. This option defaults to plain-text, i.e. no highlighting. There is no highlighting option for wikitext as a markup language, though Template loop detected: Template:Code and Template loop detected: Template:Code are valid values, as are Template loop detected: Template:Code, Template loop detected: Template:Code, Template loop detected: Template:Code, Template loop detected: Template:Code, Template loop detected: Template:Code and many others. Attempting to use an invalid one causes a list of valid ones to be displayed in place of the template output, when the page is previewed or saved.
This template does not need to be substituted.
Examples
Markup | Renders asScript error: No such module "For loop". |
---|---|
Included templates
Embedded templates do not function as expected inside {{code}}; for longer, free-form blocks of code, which can contain templates such as {{var}} and {{samp}}, use <code>...</code>
as a wrapper instead of this template.
Templates used inside {{code}} expose the rendered HTML— this can be useful. For example:
Markup | Renders asScript error: No such module "For loop". |
---|---|
The above example shows the HTML rendered by the citation template, including the hidden metadata.
TemplateData
TemplateData for T links
Script error: No such module "Format TemplateData".
See also
- {{codett}}, wrapper for this template that removes background and border styling
- {{mono}}, monospaced font only
- {{param value}}, monospaced; friendly handling for blank space
- {{Syntaxhighlight}}
- {{kbd}}, for keyboard input
- Help:Wiki markup
→
infobox building (/sbox edit diff /test | Source e Talk hist links # /subpages /doc)
- (same effect:)
This is a documentation subpage for Template:T links.
It may contain usage information, categories and other content that is not part of the original template page.
Usage
Wraps a short span of text in <syntaxhighlight>
tags (see mw:Extension:SyntaxHighlight). This template should be used for short samples; longer content should use <pre>...</pre>
or <syntaxhighlight>...</syntaxhighlight>
. See Help:Wiki markup for an explanation of what the various tags do.
If the content includes an equals sign (=), you must specify the parameter explicitly: {{code|1=date=30 Feb 2010}}
.
The template uses the <syntaxhighlight>
tag with the attribute inline=1
. This works like the combination of the <code>
and <nowiki>
tags, applied to the expanded wikitext. For example, {{code|some '''wiki''' text}}
will not render the word "wiki" in bold, and will render the tripled-single-quotes:
- Template loop detected: Template:Code
However, {{code|a {{template}} call}}
will still invoke the template:
- Template loop detected: Template:Code
Use <nowiki>...</nowiki>
around the template name to avoid this problem:
- Template loop detected: Template:Code
When used inline with regular text, {{code}}
generally looks best and is easiest to read when it is explicitly spaced apart from the regular text:
- Template loop detected: Template:Code
is well spaced:
- foo Template loop detected: Template:Code quux.
versus:
- Template loop detected: Template:Code
which is going to be visually confusing for many:
- foo Template loop detected: Template:Code quux.
because "foo" and "Template loop detected: Template:Code" will seem more closely associated than "Template loop detected: Template:Code" and "Template loop detected: Template:Code"; the width of the space character in a monospaced font is almost always larger than in a proportional font.
Use parameter {{{2}}} (unnamed, as |2=
, or more explicitly as |lang=
) to specify a language for mw:Extension:SyntaxHighlight. This option defaults to plain-text, i.e. no highlighting. There is no highlighting option for wikitext as a markup language, though Template loop detected: Template:Code and Template loop detected: Template:Code are valid values, as are Template loop detected: Template:Code, Template loop detected: Template:Code, Template loop detected: Template:Code, Template loop detected: Template:Code, Template loop detected: Template:Code and many others. Attempting to use an invalid one causes a list of valid ones to be displayed in place of the template output, when the page is previewed or saved.
This template does not need to be substituted.
Examples
Markup | Renders asScript error: No such module "For loop". |
---|---|
Included templates
Embedded templates do not function as expected inside {{code}}; for longer, free-form blocks of code, which can contain templates such as {{var}} and {{samp}}, use <code>...</code>
as a wrapper instead of this template.
Templates used inside {{code}} expose the rendered HTML— this can be useful. For example:
Markup | Renders asScript error: No such module "For loop". |
---|---|
The above example shows the HTML rendered by the citation template, including the hidden metadata.
TemplateData
TemplateData for T links
Script error: No such module "Format TemplateData".
See also
- {{codett}}, wrapper for this template that removes background and border styling
- {{mono}}, monospaced font only
- {{param value}}, monospaced; friendly handling for blank space
- {{Syntaxhighlight}}
- {{kbd}}, for keyboard input
- Help:Wiki markup
→
infobox building (/sbox edit diff /test | Source e Talk hist links # /subpages /doc)
Options
- Adding link to a module
When an eponymous module exists, it is added:
{{T links|Track gauge}}
→
- Any other module (or none) can be linked:
{{T links|Track gauge}}
→
This is a documentation subpage for Template:T links.
It may contain usage information, categories and other content that is not part of the original template page.
Usage
Wraps a short span of text in <syntaxhighlight>
tags (see mw:Extension:SyntaxHighlight). This template should be used for short samples; longer content should use <pre>...</pre>
or <syntaxhighlight>...</syntaxhighlight>
. See Help:Wiki markup for an explanation of what the various tags do.
If the content includes an equals sign (=), you must specify the parameter explicitly: {{code|1=date=30 Feb 2010}}
.
The template uses the <syntaxhighlight>
tag with the attribute inline=1
. This works like the combination of the <code>
and <nowiki>
tags, applied to the expanded wikitext. For example, {{code|some '''wiki''' text}}
will not render the word "wiki" in bold, and will render the tripled-single-quotes:
- Template loop detected: Template:Code
However, {{code|a {{template}} call}}
will still invoke the template:
- Template loop detected: Template:Code
Use <nowiki>...</nowiki>
around the template name to avoid this problem:
- Template loop detected: Template:Code
When used inline with regular text, {{code}}
generally looks best and is easiest to read when it is explicitly spaced apart from the regular text:
- Template loop detected: Template:Code
is well spaced:
- foo Template loop detected: Template:Code quux.
versus:
- Template loop detected: Template:Code
which is going to be visually confusing for many:
- foo Template loop detected: Template:Code quux.
because "foo" and "Template loop detected: Template:Code" will seem more closely associated than "Template loop detected: Template:Code" and "Template loop detected: Template:Code"; the width of the space character in a monospaced font is almost always larger than in a proportional font.
Use parameter {{{2}}} (unnamed, as |2=
, or more explicitly as |lang=
) to specify a language for mw:Extension:SyntaxHighlight. This option defaults to plain-text, i.e. no highlighting. There is no highlighting option for wikitext as a markup language, though Template loop detected: Template:Code and Template loop detected: Template:Code are valid values, as are Template loop detected: Template:Code, Template loop detected: Template:Code, Template loop detected: Template:Code, Template loop detected: Template:Code, Template loop detected: Template:Code and many others. Attempting to use an invalid one causes a list of valid ones to be displayed in place of the template output, when the page is previewed or saved.
This template does not need to be substituted.
Examples
Markup | Renders asScript error: No such module "For loop". |
---|---|
Included templates
Embedded templates do not function as expected inside {{code}}; for longer, free-form blocks of code, which can contain templates such as {{var}} and {{samp}}, use <code>...</code>
as a wrapper instead of this template.
Templates used inside {{code}} expose the rendered HTML— this can be useful. For example:
Markup | Renders asScript error: No such module "For loop". |
---|---|
The above example shows the HTML rendered by the citation template, including the hidden metadata.
TemplateData
TemplateData for T links
Script error: No such module "Format TemplateData".
See also
- {{codett}}, wrapper for this template that removes background and border styling
- {{mono}}, monospaced font only
- {{param value}}, monospaced; friendly handling for blank space
- {{Syntaxhighlight}}
- {{kbd}}, for keyboard input
- Help:Wiki markup
→
- Adding sandbox links
When working with the ../sandbox
of templates, the sandbox links can be made explicit:
This is a documentation subpage for Template:T links.
It may contain usage information, categories and other content that is not part of the original template page.
Usage
Wraps a short span of text in <syntaxhighlight>
tags (see mw:Extension:SyntaxHighlight). This template should be used for short samples; longer content should use <pre>...</pre>
or <syntaxhighlight>...</syntaxhighlight>
. See Help:Wiki markup for an explanation of what the various tags do.
If the content includes an equals sign (=), you must specify the parameter explicitly: {{code|1=date=30 Feb 2010}}
.
The template uses the <syntaxhighlight>
tag with the attribute inline=1
. This works like the combination of the <code>
and <nowiki>
tags, applied to the expanded wikitext. For example, {{code|some '''wiki''' text}}
will not render the word "wiki" in bold, and will render the tripled-single-quotes:
- Template loop detected: Template:Code
However, {{code|a {{template}} call}}
will still invoke the template:
- Template loop detected: Template:Code
Use <nowiki>...</nowiki>
around the template name to avoid this problem:
- Template loop detected: Template:Code
When used inline with regular text, {{code}}
generally looks best and is easiest to read when it is explicitly spaced apart from the regular text:
- Template loop detected: Template:Code
is well spaced:
- foo Template loop detected: Template:Code quux.
versus:
- Template loop detected: Template:Code
which is going to be visually confusing for many:
- foo Template loop detected: Template:Code quux.
because "foo" and "Template loop detected: Template:Code" will seem more closely associated than "Template loop detected: Template:Code" and "Template loop detected: Template:Code"; the width of the space character in a monospaced font is almost always larger than in a proportional font.
Use parameter {{{2}}} (unnamed, as |2=
, or more explicitly as |lang=
) to specify a language for mw:Extension:SyntaxHighlight. This option defaults to plain-text, i.e. no highlighting. There is no highlighting option for wikitext as a markup language, though Template loop detected: Template:Code and Template loop detected: Template:Code are valid values, as are Template loop detected: Template:Code, Template loop detected: Template:Code, Template loop detected: Template:Code, Template loop detected: Template:Code, Template loop detected: Template:Code and many others. Attempting to use an invalid one causes a list of valid ones to be displayed in place of the template output, when the page is previewed or saved.
This template does not need to be substituted.
Examples
Markup | Renders asScript error: No such module "For loop". |
---|---|
Included templates
Embedded templates do not function as expected inside {{code}}; for longer, free-form blocks of code, which can contain templates such as {{var}} and {{samp}}, use <code>...</code>
as a wrapper instead of this template.
Templates used inside {{code}} expose the rendered HTML— this can be useful. For example:
Markup | Renders asScript error: No such module "For loop". |
---|---|
The above example shows the HTML rendered by the citation template, including the hidden metadata.
TemplateData
TemplateData for T links
Script error: No such module "Format TemplateData".
See also
- {{codett}}, wrapper for this template that removes background and border styling
- {{mono}}, monospaced font only
- {{param value}}, monospaced; friendly handling for blank space
- {{Syntaxhighlight}}
- {{kbd}}, for keyboard input
- Help:Wiki markup
→
- This can also help to prevent changing the live version code by accident.
- Adding the WP:TPU-link
This is a documentation subpage for Template:T links.
It may contain usage information, categories and other content that is not part of the original template page.
Usage
Wraps a short span of text in <syntaxhighlight>
tags (see mw:Extension:SyntaxHighlight). This template should be used for short samples; longer content should use <pre>...</pre>
or <syntaxhighlight>...</syntaxhighlight>
. See Help:Wiki markup for an explanation of what the various tags do.
If the content includes an equals sign (=), you must specify the parameter explicitly: {{code|1=date=30 Feb 2010}}
.
The template uses the <syntaxhighlight>
tag with the attribute inline=1
. This works like the combination of the <code>
and <nowiki>
tags, applied to the expanded wikitext. For example, {{code|some '''wiki''' text}}
will not render the word "wiki" in bold, and will render the tripled-single-quotes:
- Template loop detected: Template:Code
However, {{code|a {{template}} call}}
will still invoke the template:
- Template loop detected: Template:Code
Use <nowiki>...</nowiki>
around the template name to avoid this problem:
- Template loop detected: Template:Code
When used inline with regular text, {{code}}
generally looks best and is easiest to read when it is explicitly spaced apart from the regular text:
- Template loop detected: Template:Code
is well spaced:
- foo Template loop detected: Template:Code quux.
versus:
- Template loop detected: Template:Code
which is going to be visually confusing for many:
- foo Template loop detected: Template:Code quux.
because "foo" and "Template loop detected: Template:Code" will seem more closely associated than "Template loop detected: Template:Code" and "Template loop detected: Template:Code"; the width of the space character in a monospaced font is almost always larger than in a proportional font.
Use parameter {{{2}}} (unnamed, as |2=
, or more explicitly as |lang=
) to specify a language for mw:Extension:SyntaxHighlight. This option defaults to plain-text, i.e. no highlighting. There is no highlighting option for wikitext as a markup language, though Template loop detected: Template:Code and Template loop detected: Template:Code are valid values, as are Template loop detected: Template:Code, Template loop detected: Template:Code, Template loop detected: Template:Code, Template loop detected: Template:Code, Template loop detected: Template:Code and many others. Attempting to use an invalid one causes a list of valid ones to be displayed in place of the template output, when the page is previewed or saved.
This template does not need to be substituted.
Examples
Markup | Renders asScript error: No such module "For loop". |
---|---|
Included templates
Embedded templates do not function as expected inside {{code}}; for longer, free-form blocks of code, which can contain templates such as {{var}} and {{samp}}, use <code>...</code>
as a wrapper instead of this template.
Templates used inside {{code}} expose the rendered HTML— this can be useful. For example:
Markup | Renders asScript error: No such module "For loop". |
---|---|
The above example shows the HTML rendered by the citation template, including the hidden metadata.
TemplateData
TemplateData for T links
Script error: No such module "Format TemplateData".
See also
- {{codett}}, wrapper for this template that removes background and border styling
- {{mono}}, monospaced font only
- {{param value}}, monospaced; friendly handling for blank space
- {{Syntaxhighlight}}
- {{kbd}}, for keyboard input
- Help:Wiki markup
→
See also
- {{T links/sandbox links}} used when adding, eg by
|sandboxlinks=yes
- {{m links}}, a similar template producing module-related links.
General-purpose formatting
Text style ↓ | {{tlg}} options[note 1]to achieve text style |
Link style | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Linked | Unlinked | Linked with subst | Unlinked with subst | Linked including braces | Linked with alternative text | ||||||||||||||||||||||||||||||||||||||||||||||||||||
{{tlg}} options[note 1]to achieve link style |
— | DEFAULT |
UsageWraps a short span of text in If the content includes an equals sign (=), you must specify the parameter explicitly: The template uses the
However,
Use
When used inline with regular text,
is well spaced:
versus:
which is going to be visually confusing for many:
because "foo" and "Template loop detected: Template:Code" will seem more closely associated than "Template loop detected: Template:Code" and "Template loop detected: Template:Code"; the width of the space character in a monospaced font is almost always larger than in a proportional font. Use parameter {{{2}}} (unnamed, as This template does not need to be substituted. Examples
Included templatesEmbedded templates do not function as expected inside {{code}}; for longer, free-form blocks of code, which can contain templates such as {{var}} and {{samp}}, use Templates used inside {{code}} expose the rendered HTML— this can be useful. For example:
The above example shows the HTML rendered by the citation template, including the hidden metadata. TemplateDataThis is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.
Script error: No such module "Format TemplateData".
TemplateData for T links See also
|
UsageWraps a short span of text in If the content includes an equals sign (=), you must specify the parameter explicitly: The template uses the
However,
Use
When used inline with regular text,
is well spaced:
versus:
which is going to be visually confusing for many:
because "foo" and "Template loop detected: Template:Code" will seem more closely associated than "Template loop detected: Template:Code" and "Template loop detected: Template:Code"; the width of the space character in a monospaced font is almost always larger than in a proportional font. Use parameter {{{2}}} (unnamed, as This template does not need to be substituted. Examples
Included templatesEmbedded templates do not function as expected inside {{code}}; for longer, free-form blocks of code, which can contain templates such as {{var}} and {{samp}}, use Templates used inside {{code}} expose the rendered HTML— this can be useful. For example:
The above example shows the HTML rendered by the citation template, including the hidden metadata. TemplateDataThis is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.
Script error: No such module "Format TemplateData".
TemplateData for T links See also
|
nolink=yes
|
UsageWraps a short span of text in If the content includes an equals sign (=), you must specify the parameter explicitly: The template uses the
However,
Use
When used inline with regular text,
is well spaced:
versus:
which is going to be visually confusing for many:
because "foo" and "Template loop detected: Template:Code" will seem more closely associated than "Template loop detected: Template:Code" and "Template loop detected: Template:Code"; the width of the space character in a monospaced font is almost always larger than in a proportional font. Use parameter {{{2}}} (unnamed, as This template does not need to be substituted. Examples
Included templatesEmbedded templates do not function as expected inside {{code}}; for longer, free-form blocks of code, which can contain templates such as {{var}} and {{samp}}, use Templates used inside {{code}} expose the rendered HTML— this can be useful. For example:
The above example shows the HTML rendered by the citation template, including the hidden metadata. TemplateDataThis is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.
Script error: No such module "Format TemplateData".
TemplateData for T links See also
|
UsageWraps a short span of text in If the content includes an equals sign (=), you must specify the parameter explicitly: The template uses the
However,
Use
When used inline with regular text,
is well spaced:
versus:
which is going to be visually confusing for many:
because "foo" and "Template loop detected: Template:Code" will seem more closely associated than "Template loop detected: Template:Code" and "Template loop detected: Template:Code"; the width of the space character in a monospaced font is almost always larger than in a proportional font. Use parameter {{{2}}} (unnamed, as This template does not need to be substituted. Examples
Included templatesEmbedded templates do not function as expected inside {{code}}; for longer, free-form blocks of code, which can contain templates such as {{var}} and {{samp}}, use Templates used inside {{code}} expose the rendered HTML— this can be useful. For example:
The above example shows the HTML rendered by the citation template, including the hidden metadata. TemplateDataThis is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.
Script error: No such module "Format TemplateData".
TemplateData for T links See also
UsageWraps a short span of text in If the content includes an equals sign (=), you must specify the parameter explicitly: The template uses the
However,
Use
When used inline with regular text,
is well spaced:
versus:
which is going to be visually confusing for many:
because "foo" and "Template loop detected: Template:Code" will seem more closely associated than "Template loop detected: Template:Code" and "Template loop detected: Template:Code"; the width of the space character in a monospaced font is almost always larger than in a proportional font. Use parameter {{{2}}} (unnamed, as This template does not need to be substituted. Examples
Included templatesEmbedded templates do not function as expected inside {{code}}; for longer, free-form blocks of code, which can contain templates such as {{var}} and {{samp}}, use Templates used inside {{code}} expose the rendered HTML— this can be useful. For example:
The above example shows the HTML rendered by the citation template, including the hidden metadata. TemplateDataThis is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.
Script error: No such module "Format TemplateData".
TemplateData for T links See also
| ||||||||||||||||||||||||||||||||||||||||||||||||||
normal | DEFAULT | {{tlg}} {{tl}} {{tlp|1|2|...}} {{Template:tlu}} |
{{tlf}} <template link> |
{{subst:tls}} {{subst:Template:tlsu}} |
{{subst:tlsf}} <template link> |
{{tn}} | {{tla}} | ||||||||||||||||||||||||||||||||||||||||||||||||||
code
|
UsageWraps a short span of text in If the content includes an equals sign (=), you must specify the parameter explicitly: The template uses the
However,
Use
When used inline with regular text,
is well spaced:
versus:
which is going to be visually confusing for many:
because "foo" and "Template loop detected: Template:Code" will seem more closely associated than "Template loop detected: Template:Code" and "Template loop detected: Template:Code"; the width of the space character in a monospaced font is almost always larger than in a proportional font. Use parameter {{{2}}} (unnamed, as This template does not need to be substituted. Examples
Included templatesEmbedded templates do not function as expected inside {{code}}; for longer, free-form blocks of code, which can contain templates such as {{var}} and {{samp}}, use Templates used inside {{code}} expose the rendered HTML— this can be useful. For example:
The above example shows the HTML rendered by the citation template, including the hidden metadata. TemplateDataThis is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.
Script error: No such module "Format TemplateData".
TemplateData for T links See also
|
{{tl2}} {{tlx}} {{Template:tlxu}} |
{{tlc}} <template link> {{tnull}} <template link>
|
{{subst:tlxs}}
|
{{subst:tlsc}} <template link> |
— | |||||||||||||||||||||||||||||||||||||||||||||||||||
monospace |
UsageWraps a short span of text in If the content includes an equals sign (=), you must specify the parameter explicitly: The template uses the
However,
Use
When used inline with regular text,
is well spaced:
versus:
which is going to be visually confusing for many:
because "foo" and "Template loop detected: Template:Code" will seem more closely associated than "Template loop detected: Template:Code" and "Template loop detected: Template:Code"; the width of the space character in a monospaced font is almost always larger than in a proportional font. Use parameter {{{2}}} (unnamed, as This template does not need to be substituted. Examples
Included templatesEmbedded templates do not function as expected inside {{code}}; for longer, free-form blocks of code, which can contain templates such as {{var}} and {{samp}}, use Templates used inside {{code}} expose the rendered HTML— this can be useful. For example:
The above example shows the HTML rendered by the citation template, including the hidden metadata. TemplateDataThis is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.
Script error: No such module "Format TemplateData".
TemplateData for T links See also
|
— | {{subst:tltss}} |
— | |||||||||||||||||||||||||||||||||||||||||||||||||||||
kbd |
UsageWraps a short span of text in If the content includes an equals sign (=), you must specify the parameter explicitly: The template uses the
However,
Use
When used inline with regular text,
is well spaced:
versus:
which is going to be visually confusing for many:
because "foo" and "Template loop detected: Template:Code" will seem more closely associated than "Template loop detected: Template:Code" and "Template loop detected: Template:Code"; the width of the space character in a monospaced font is almost always larger than in a proportional font. Use parameter {{{2}}} (unnamed, as This template does not need to be substituted. Examples
Included templatesEmbedded templates do not function as expected inside {{code}}; for longer, free-form blocks of code, which can contain templates such as {{var}} and {{samp}}, use Templates used inside {{code}} expose the rendered HTML— this can be useful. For example:
The above example shows the HTML rendered by the citation template, including the hidden metadata. TemplateDataThis is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.
Script error: No such module "Format TemplateData".
TemplateData for T links See also
Lua error: Internal error: The interpreter has terminated with signal "24". | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bold | Lua error: Internal error: The interpreter has terminated with signal "24".
UsageWraps a short span of text in If the content includes an equals sign (=), you must specify the parameter explicitly: The template uses the
However,
Use
When used inline with regular text, Lua error: Internal error: The interpreter has terminated with signal "24". generally looks best and is easiest to read when it is explicitly spaced apart from the regular text:
is well spaced:
versus:
which is going to be visually confusing for many:
because "foo" and "Template loop detected: Template:Code" will seem more closely associated than "Template loop detected: Template:Code" and "Template loop detected: Template:Code"; the width of the space character in a monospaced font is almost always larger than in a proportional font. Use parameter {{{2}}} (unnamed, as This template does not need to be substituted. Examples
Included templatesEmbedded templates do not function as expected inside {{code}}; for longer, free-form blocks of code, which can contain templates such as {{var}} and {{samp}}, use Templates used inside {{code}} expose the rendered HTML— this can be useful. For example:
The above example shows the HTML rendered by the citation template, including the hidden metadata. TemplateDataThis is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.
Lua error: Internal error: The interpreter has terminated with signal "24".Script error: No such module "Format TemplateData".
TemplateData for T links See also
Lua error: Internal error: The interpreter has terminated with signal "24".
|
Lua error: Internal error: The interpreter has terminated with signal "24". | — | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
bold+code
|
bold=yes
|
Lua error: Internal error: The interpreter has terminated with signal "24". | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
italic+code
|
italic=yes
|
Lua error: Internal error: The interpreter has terminated with signal "24". |
- ↑ 1.0 1.1 1.2 Lua error: Internal error: The interpreter has terminated with signal "24". is the most general template, allowing any combination of text style and/or link style options.
- ↑ 2.0 2.1 2.2 2.3 2.4 Prevents wrapping of text by placing it inside
<span class="nowrap">...</span>
tags. - ↑ 3.0 3.1 3.2 Allows links to templates in any namespace.
- ↑ Lua error: Internal error: The interpreter has terminated with signal "24". uses
<code style="border:none; background-color:transparent;">...</code>
. - ↑ 5.0 5.1 Displays monospaced font using
<span style="font-family:monospace;">...</span>
.
Lua error: Internal error: The interpreter has terminated with signal "24".
Other formatting templates
Code example | Effect | Notes |
---|---|---|
Lua error: Internal error: The interpreter has terminated with signal "24". | {{Hatnote | Lua error: Internal error: The interpreter has terminated with signal "24". | Lua error: Internal error: The interpreter has terminated with signal "24". | Lua error: Internal error: The interpreter has terminated with signal "24". | Lua error: Internal error: The interpreter has terminated with signal "24". }} |
Supports colors, placeholder texts, named and unnamed parameters |
<source lang="wikitext"> <syntaxhighlight lang="wikitext"> Lua error: Internal error: The interpreter has terminated with signal "24". </syntaxhighlight> </source> |
<syntaxhighlight lang="wikitext">
Lua error: Internal error: The interpreter has terminated with signal "24". </syntaxhighlight> |
Same as above |
Lua error: Internal error: The interpreter has terminated with signal "24". | {{Hatnote |
Supports colors, placeholder texts, named and unnamed parameters |
|
<syntaxhighlight lang="wikitext" inline>Lua error: Internal error: The interpreter has terminated with signal "24".</syntaxhighlight> | Same as above |
Lua error: Internal error: The interpreter has terminated with signal "24". | {{hatnote}} |
Supports linking to sister projects (e.g., fr:Hatnote) |
Lua error: Internal error: The interpreter has terminated with signal "24". | Script error: No such module "Demo". | Shows code and example |
Lua error: Internal error: The interpreter has terminated with signal "24". | Template:Hatnote | Produces a normal link to the template |
Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". |
[[Template:Hatnote]] [[Template:Hatnote|Hatnote]] |
Formats wikilink, with optional piped link text and blended suffix |
Lua error: Internal error: The interpreter has terminated with signal "24". | {{Lua error: Internal error: The interpreter has terminated with signal "24".}} | Counterpart to {{tl}} for linking to Lua modules |
Lua error: Internal error: The interpreter has terminated with signal "24". | {{Lua error: Internal error: The interpreter has terminated with signal "24".}} |
Counterpart to {{tlx}} for linking to Lua modules |
Lua error: Internal error: The interpreter has terminated with signal "24". | <syntaxhighlight lang="lua" inline="1">require('Module:Example')</syntaxhighlight> | Link to Lua modules and built-in libraries, showing Lua code. |
Lua error: Internal error: The interpreter has terminated with signal "24". | |title=book title |
Formats template parameters for display, with or without values |
Lua error: Internal error: The interpreter has terminated with signal "24". | [[[[Expression error: Unexpected < operator.LASTING]]]] |
Takes a shortcut suffix in project namespace and displays it with brackets and the WP: alias in a <code>...</code> tag.
|
Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". |
<ref>...</ref> <templatedata> |
Formats [X]HTML tags; can add content, choose opening, closing, or self-closing |
Lua error: Internal error: The interpreter has terminated with signal "24". | {{d:Ping project}} | Wikidata counterpart to {{tl}} |
Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". |
{{#if}} {{#if:{{{1}}}|true|false}} |
Parser function equivalent to {{tl}} |
Lua error: Internal error: The interpreter has terminated with signal "24". | {{[[MW:Help:Magic words#Lua error: Internal error: The interpreter has terminated with signal "24".|uc:]]}} | Magic word links |
With utility links
Code example | Effect |
---|---|
Lua error: Internal error: The interpreter has terminated with signal "24". | Template:Hatnote (edit | talk | history | links | watch | logs) |
Lua error: Internal error: The interpreter has terminated with signal "24". | Template:Hatnote(edit talk links history) |
Lua error: Internal error: The interpreter has terminated with signal "24". | Lua error: Internal error: The interpreter has terminated with signal "24". ([[:Template:Lua error: Internal error: The interpreter has terminated with signal "24"./sandbox|/sbox]] [{{fullurl:Template:Lua error: Internal error: The interpreter has terminated with signal "24"./sandbox|action=edit}} edit] diff [[Template:Lua error: Internal error: The interpreter has terminated with signal "24"./testcases|/test]] | [[:Template:Lua error: Internal error: The interpreter has terminated with signal "24".|Source]] [{{fullurl:Template:Lua error: Internal error: The interpreter has terminated with signal "24".|action=edit}} e] [[Template talk:Lua error: Internal error: The interpreter has terminated with signal "24".|Talk]] [{{fullurl:Template:Lua error: Internal error: The interpreter has terminated with signal "24".|action=history}} hist] [{{fullurl:Special:Whatlinkshere/Template:Lua error: Internal error: The interpreter has terminated with signal "24".|limit=999}} links] # [{{fullurl:Special:PrefixIndex/Template:Lua error: Internal error: The interpreter has terminated with signal "24"./}} /subpages] [[Template:Lua error: Internal error: The interpreter has terminated with signal "24"./doc|/doc]]) |
Lua error: Internal error: The interpreter has terminated with signal "24". | Script error: No such module "Tfd links". |
Lua error: Internal error: The interpreter has terminated with signal "24". | {{Hatnote}} |
Lua error: Internal error: The interpreter has terminated with signal "24". | {{subst:Hatnote}} |
Lua error: Internal error: The interpreter has terminated with signal "24". | Template:Hatnote (talk⧼dot-separator⧽links⧼dot-separator⧽edit) |
Lua error: Internal error: The interpreter has terminated with signal "24". | Template:Hatnote (talk links edit) |
Lua error: Internal error: The interpreter has terminated with signal "24". | m:Template:Hatnote (backlinks edit) |
Lua error: Internal error: The interpreter has terminated with signal "24". | Template:Hatnote (backlinks edit) |
Lua error: Internal error: The interpreter has terminated with signal "24". | {{Hatnote}} (talk) |
Lua error: Internal error: The interpreter has terminated with signal "24". | {{Hatnote}} (t/l) |
Lua error: Internal error: The interpreter has terminated with signal "24". | Template:Hatnote (links, talk) |