Template:Format link

Template page
Revision as of 20:26, 3 July 2023 by Knigh7s (talk | contribs) (Created page with "<includeonly>{{{{{|safesubst:}}}#invoke:format link|formatLink}}</includeonly><noinclude> {{/doc}} <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> </noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Format link/doc. Changes can be proposed in the talk page.
Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Format link/doc. Changes can be proposed in the talk page.

This template is used to indicate a template is imported from English Wikipedia. It should be placed at the top of the template documentation page.

This template formats a link for use in hatnote templates. It accepts up to three positional parameters, the link, an optional display value, and an optional target override (which if provided, makes the link parameter optional). These parameters may also be supplied by name, as link, display, and target respectively. Links to categories and files are automatically escaped with the colon trick, and links to sections are automatically formatted as page § section, rather than the MediaWiki default of page#section.

This template doesn't work with subst.

Usage

Link only:

Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Format link/doc. Changes can be proposed in the talk page.
Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Format link/doc. Changes can be proposed in the talk page.

This template is used to indicate a template is imported from English Wikipedia. It should be placed at the top of the template documentation page.

This template, often abbreviated as Template:Tlf, is used to provide stylized formatting to template displays without actually using the template itself.

Parameters

With the exception of alttext, the named parameters are toggles that are either omitted (default in most cases) or activated (by being assigned a value such as "on", "yes", "true", "include", etc.). They may be included in any order (see Examples below). Certain templates have the parameter "on" by default; see the main table for all alternate options.

Parameter Action Use with
{{example}}
Default active
Default (without accessory parameters) {{example}}
brace Include braces as part of the template link {{example}} {{tlw}}/{{tn}}
braceinside Include innermost braces as part of the template link {{example}}
bold Renders the template link/name in bold {{example}} {{tlb}}, {{tlxb}}
code Display output using HTML [[HTML element#code|Template:Tag]] tags (monospaced font) {{example}} {{tlc}}, {{Template link expanded}}, etc.
italic Display any parameters accompanying the template link/name in italics {{example|param}} {{tlxi}}
kbd Display output using HTML [[HTML element#kbd|Template:Tag]] tags (monospaced font) {{example}}
nolink Don't render the template name as a link {{example}} {{tlf}}, {{tnull}}
nowrap Prevent the insertion of line breaks (word wrap) in the output {{example}}
nowrapname Prevent word wrapping in the output of template name/link (parameters will wrap if needed) {{example}}
plaincode Uses Template:Tag {{example}} {{tltss}}
subst Include a subst: prefix before the template link/name {{subst:example}} {{tls}}, {{tlxs}}, etc
Template:Para Use [text] as the label for the template link {{Other}} {{tla}}
_show_result Will also display the result of the template. Lua error: expandTemplate: template "Template:Min" does not exist.
_expand Will add a link to the expanded template page. {{Min|7|-5}} [1]


Link plus display:

Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Format link/doc. Changes can be proposed in the talk page.
Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Format link/doc. Changes can be proposed in the talk page.

This template is used to indicate a template is imported from English Wikipedia. It should be placed at the top of the template documentation page.

This template, often abbreviated as Template:Tlf, is used to provide stylized formatting to template displays without actually using the template itself.

Parameters

With the exception of alttext, the named parameters are toggles that are either omitted (default in most cases) or activated (by being assigned a value such as "on", "yes", "true", "include", etc.). They may be included in any order (see Examples below). Certain templates have the parameter "on" by default; see the main table for all alternate options.

Parameter Action Use with
{{example}}
Default active
Default (without accessory parameters) {{example}}
brace Include braces as part of the template link {{example}} {{tlw}}/{{tn}}
braceinside Include innermost braces as part of the template link {{example}}
bold Renders the template link/name in bold {{example}} {{tlb}}, {{tlxb}}
code Display output using HTML [[HTML element#code|Template:Tag]] tags (monospaced font) {{example}} {{tlc}}, {{Template link expanded}}, etc.
italic Display any parameters accompanying the template link/name in italics {{example|param}} {{tlxi}}
kbd Display output using HTML [[HTML element#kbd|Template:Tag]] tags (monospaced font) {{example}}
nolink Don't render the template name as a link {{example}} {{tlf}}, {{tnull}}
nowrap Prevent the insertion of line breaks (word wrap) in the output {{example}}
nowrapname Prevent word wrapping in the output of template name/link (parameters will wrap if needed) {{example}}
plaincode Uses Template:Tag {{example}} {{tltss}}
subst Include a subst: prefix before the template link/name {{subst:example}} {{tls}}, {{tlxs}}, etc
Template:Para Use [text] as the label for the template link {{Other}} {{tla}}
_show_result Will also display the result of the template. Lua error: expandTemplate: template "Template:Min" does not exist.
_expand Will add a link to the expanded template page. {{Min|7|-5}} [2]


Link with an italicized page name:

Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Format link/doc. Changes can be proposed in the talk page.
Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Format link/doc. Changes can be proposed in the talk page.

This template is used to indicate a template is imported from English Wikipedia. It should be placed at the top of the template documentation page.

This template, often abbreviated as Template:Tlf, is used to provide stylized formatting to template displays without actually using the template itself.

Parameters

With the exception of alttext, the named parameters are toggles that are either omitted (default in most cases) or activated (by being assigned a value such as "on", "yes", "true", "include", etc.). They may be included in any order (see Examples below). Certain templates have the parameter "on" by default; see the main table for all alternate options.

Parameter Action Use with
{{example}}
Default active
Default (without accessory parameters) {{example}}
brace Include braces as part of the template link {{example}} {{tlw}}/{{tn}}
braceinside Include innermost braces as part of the template link {{example}}
bold Renders the template link/name in bold {{example}} {{tlb}}, {{tlxb}}
code Display output using HTML [[HTML element#code|Template:Tag]] tags (monospaced font) {{example}} {{tlc}}, {{Template link expanded}}, etc.
italic Display any parameters accompanying the template link/name in italics {{example|param}} {{tlxi}}
kbd Display output using HTML [[HTML element#kbd|Template:Tag]] tags (monospaced font) {{example}}
nolink Don't render the template name as a link {{example}} {{tlf}}, {{tnull}}
nowrap Prevent the insertion of line breaks (word wrap) in the output {{example}}
nowrapname Prevent word wrapping in the output of template name/link (parameters will wrap if needed) {{example}}
plaincode Uses Template:Tag {{example}} {{tltss}}
subst Include a subst: prefix before the template link/name {{subst:example}} {{tls}}, {{tlxs}}, etc
Template:Para Use [text] as the label for the template link {{Other}} {{tla}}
_show_result Will also display the result of the template. Lua error: expandTemplate: template "Template:Min" does not exist.
_expand Will add a link to the expanded template page. {{Min|7|-5}} [3]


Link with an italicized section name:

Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Format link/doc. Changes can be proposed in the talk page.
Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Format link/doc. Changes can be proposed in the talk page.

This template is used to indicate a template is imported from English Wikipedia. It should be placed at the top of the template documentation page.

This template, often abbreviated as Template:Tlf, is used to provide stylized formatting to template displays without actually using the template itself.

Parameters

With the exception of alttext, the named parameters are toggles that are either omitted (default in most cases) or activated (by being assigned a value such as "on", "yes", "true", "include", etc.). They may be included in any order (see Examples below). Certain templates have the parameter "on" by default; see the main table for all alternate options.

Parameter Action Use with
{{example}}
Default active
Default (without accessory parameters) {{example}}
brace Include braces as part of the template link {{example}} {{tlw}}/{{tn}}
braceinside Include innermost braces as part of the template link {{example}}
bold Renders the template link/name in bold {{example}} {{tlb}}, {{tlxb}}
code Display output using HTML [[HTML element#code|Template:Tag]] tags (monospaced font) {{example}} {{tlc}}, {{Template link expanded}}, etc.
italic Display any parameters accompanying the template link/name in italics {{example|param}} {{tlxi}}
kbd Display output using HTML [[HTML element#kbd|Template:Tag]] tags (monospaced font) {{example}}
nolink Don't render the template name as a link {{example}} {{tlf}}, {{tnull}}
nowrap Prevent the insertion of line breaks (word wrap) in the output {{example}}
nowrapname Prevent word wrapping in the output of template name/link (parameters will wrap if needed) {{example}}
plaincode Uses Template:Tag {{example}} {{tltss}}
subst Include a subst: prefix before the template link/name {{subst:example}} {{tls}}, {{tlxs}}, etc
Template:Para Use [text] as the label for the template link {{Other}} {{tla}}
_show_result Will also display the result of the template. Lua error: expandTemplate: template "Template:Min" does not exist.
_expand Will add a link to the expanded template page. {{Min|7|-5}} [4]


If the link or display values contain an equals sign, you will need to specify the parameter names like this:

Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Format link/doc. Changes can be proposed in the talk page.
Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Format link/doc. Changes can be proposed in the talk page.

This template is used to indicate a template is imported from English Wikipedia. It should be placed at the top of the template documentation page.

This template, often abbreviated as Template:Tlf, is used to provide stylized formatting to template displays without actually using the template itself.

Parameters

With the exception of alttext, the named parameters are toggles that are either omitted (default in most cases) or activated (by being assigned a value such as "on", "yes", "true", "include", etc.). They may be included in any order (see Examples below). Certain templates have the parameter "on" by default; see the main table for all alternate options.

Parameter Action Use with
{{example}}
Default active
Default (without accessory parameters) {{example}}
brace Include braces as part of the template link {{example}} {{tlw}}/{{tn}}
braceinside Include innermost braces as part of the template link {{example}}
bold Renders the template link/name in bold {{example}} {{tlb}}, {{tlxb}}
code Display output using HTML [[HTML element#code|Template:Tag]] tags (monospaced font) {{example}} {{tlc}}, {{Template link expanded}}, etc.
italic Display any parameters accompanying the template link/name in italics {{example|param}} {{tlxi}}
kbd Display output using HTML [[HTML element#kbd|Template:Tag]] tags (monospaced font) {{example}}
nolink Don't render the template name as a link {{example}} {{tlf}}, {{tnull}}
nowrap Prevent the insertion of line breaks (word wrap) in the output {{example}}
nowrapname Prevent word wrapping in the output of template name/link (parameters will wrap if needed) {{example}}
plaincode Uses Template:Tag {{example}} {{tltss}}
subst Include a subst: prefix before the template link/name {{subst:example}} {{tls}}, {{tlxs}}, etc
Template:Para Use [text] as the label for the template link {{Other}} {{tla}}
_show_result Will also display the result of the template. Lua error: expandTemplate: template "Template:Min" does not exist.
_expand Will add a link to the expanded template page. {{Min|7|-5}} [5]


Link with a target override:

Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Format link/doc. Changes can be proposed in the talk page.
Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Format link/doc. Changes can be proposed in the talk page.

This template is used to indicate a template is imported from English Wikipedia. It should be placed at the top of the template documentation page.

This template, often abbreviated as Template:Tlf, is used to provide stylized formatting to template displays without actually using the template itself.

Parameters

With the exception of alttext, the named parameters are toggles that are either omitted (default in most cases) or activated (by being assigned a value such as "on", "yes", "true", "include", etc.). They may be included in any order (see Examples below). Certain templates have the parameter "on" by default; see the main table for all alternate options.

Parameter Action Use with
{{example}}
Default active
Default (without accessory parameters) {{example}}
brace Include braces as part of the template link {{example}} {{tlw}}/{{tn}}
braceinside Include innermost braces as part of the template link {{example}}
bold Renders the template link/name in bold {{example}} {{tlb}}, {{tlxb}}
code Display output using HTML [[HTML element#code|Template:Tag]] tags (monospaced font) {{example}} {{tlc}}, {{Template link expanded}}, etc.
italic Display any parameters accompanying the template link/name in italics {{example|param}} {{tlxi}}
kbd Display output using HTML [[HTML element#kbd|Template:Tag]] tags (monospaced font) {{example}}
nolink Don't render the template name as a link {{example}} {{tlf}}, {{tnull}}
nowrap Prevent the insertion of line breaks (word wrap) in the output {{example}}
nowrapname Prevent word wrapping in the output of template name/link (parameters will wrap if needed) {{example}}
plaincode Uses Template:Tag {{example}} {{tltss}}
subst Include a subst: prefix before the template link/name {{subst:example}} {{tls}}, {{tlxs}}, etc
Template:Para Use [text] as the label for the template link {{Other}} {{tla}}
_show_result Will also display the result of the template. Lua error: expandTemplate: template "Template:Min" does not exist.
_expand Will add a link to the expanded template page. {{Min|7|-5}} [6]


Link with parameters supplied by name:

Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Format link/doc. Changes can be proposed in the talk page.
Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Format link/doc. Changes can be proposed in the talk page.

This template is used to indicate a template is imported from English Wikipedia. It should be placed at the top of the template documentation page.

This template, often abbreviated as Template:Tlf, is used to provide stylized formatting to template displays without actually using the template itself.

Parameters

With the exception of alttext, the named parameters are toggles that are either omitted (default in most cases) or activated (by being assigned a value such as "on", "yes", "true", "include", etc.). They may be included in any order (see Examples below). Certain templates have the parameter "on" by default; see the main table for all alternate options.

Parameter Action Use with
{{example}}
Default active
Default (without accessory parameters) {{example}}
brace Include braces as part of the template link {{example}} {{tlw}}/{{tn}}
braceinside Include innermost braces as part of the template link {{example}}
bold Renders the template link/name in bold {{example}} {{tlb}}, {{tlxb}}
code Display output using HTML [[HTML element#code|Template:Tag]] tags (monospaced font) {{example}} {{tlc}}, {{Template link expanded}}, etc.
italic Display any parameters accompanying the template link/name in italics {{example|param}} {{tlxi}}
kbd Display output using HTML [[HTML element#kbd|Template:Tag]] tags (monospaced font) {{example}}
nolink Don't render the template name as a link {{example}} {{tlf}}, {{tnull}}
nowrap Prevent the insertion of line breaks (word wrap) in the output {{example}}
nowrapname Prevent word wrapping in the output of template name/link (parameters will wrap if needed) {{example}}
plaincode Uses Template:Tag {{example}} {{tltss}}
subst Include a subst: prefix before the template link/name {{subst:example}} {{tls}}, {{tlxs}}, etc
Template:Para Use [text] as the label for the template link {{Other}} {{tla}}
_show_result Will also display the result of the template. Lua error: expandTemplate: template "Template:Min" does not exist.
_expand Will add a link to the expanded template page. {{Min|7|-5}} [7]


Examples

Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Format link/doc. Changes can be proposed in the talk page.

This template is used to indicate a template is imported from English Wikipedia. It should be placed at the top of the template documentation page.

This template, often abbreviated as Template:Tlf, is used to provide stylized formatting to template displays without actually using the template itself.

Parameters

With the exception of alttext, the named parameters are toggles that are either omitted (default in most cases) or activated (by being assigned a value such as "on", "yes", "true", "include", etc.). They may be included in any order (see Examples below). Certain templates have the parameter "on" by default; see the main table for all alternate options.

Parameter Action Use with
{{example}}
Default active
Default (without accessory parameters) {{example}}
brace Include braces as part of the template link {{example}} {{tlw}}/{{tn}}
braceinside Include innermost braces as part of the template link {{example}}
bold Renders the template link/name in bold {{example}} {{tlb}}, {{tlxb}}
code Display output using HTML [[HTML element#code|Template:Tag]] tags (monospaced font) {{example}} {{tlc}}, {{Template link expanded}}, etc.
italic Display any parameters accompanying the template link/name in italics {{example|param}} {{tlxi}}
kbd Display output using HTML [[HTML element#kbd|Template:Tag]] tags (monospaced font) {{example}}
nolink Don't render the template name as a link {{example}} {{tlf}}, {{tnull}}
nowrap Prevent the insertion of line breaks (word wrap) in the output {{example}}
nowrapname Prevent word wrapping in the output of template name/link (parameters will wrap if needed) {{example}}
plaincode Uses Template:Tag {{example}} {{tltss}}
subst Include a subst: prefix before the template link/name {{subst:example}} {{tls}}, {{tlxs}}, etc
Template:Para Use [text] as the label for the template link {{Other}} {{tla}}
_show_result Will also display the result of the template. Lua error: expandTemplate: template "Template:Min" does not exist.
_expand Will add a link to the expanded template page. {{Min|7|-5}} [8]
→ [[Lion]] → Lion
Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Format link/doc. Changes can be proposed in the talk page.

This template is used to indicate a template is imported from English Wikipedia. It should be placed at the top of the template documentation page.

This template, often abbreviated as Template:Tlf, is used to provide stylized formatting to template displays without actually using the template itself.

Parameters

With the exception of alttext, the named parameters are toggles that are either omitted (default in most cases) or activated (by being assigned a value such as "on", "yes", "true", "include", etc.). They may be included in any order (see Examples below). Certain templates have the parameter "on" by default; see the main table for all alternate options.

Parameter Action Use with
{{example}}
Default active
Default (without accessory parameters) {{example}}
brace Include braces as part of the template link {{example}} {{tlw}}/{{tn}}
braceinside Include innermost braces as part of the template link {{example}}
bold Renders the template link/name in bold {{example}} {{tlb}}, {{tlxb}}
code Display output using HTML [[HTML element#code|Template:Tag]] tags (monospaced font) {{example}} {{tlc}}, {{Template link expanded}}, etc.
italic Display any parameters accompanying the template link/name in italics {{example|param}} {{tlxi}}
kbd Display output using HTML [[HTML element#kbd|Template:Tag]] tags (monospaced font) {{example}}
nolink Don't render the template name as a link {{example}} {{tlf}}, {{tnull}}
nowrap Prevent the insertion of line breaks (word wrap) in the output {{example}}
nowrapname Prevent word wrapping in the output of template name/link (parameters will wrap if needed) {{example}}
plaincode Uses Template:Tag {{example}} {{tltss}}
subst Include a subst: prefix before the template link/name {{subst:example}} {{tls}}, {{tlxs}}, etc
Template:Para Use [text] as the label for the template link {{Other}} {{tla}}
_show_result Will also display the result of the template. Lua error: expandTemplate: template "Template:Min" does not exist.
_expand Will add a link to the expanded template page. {{Min|7|-5}} [9]
→ [[Lion#Etymology|Lion §&nbsp;Etymology]] → Lion § Etymology
Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Format link/doc. Changes can be proposed in the talk page.

This template is used to indicate a template is imported from English Wikipedia. It should be placed at the top of the template documentation page.

This template, often abbreviated as Template:Tlf, is used to provide stylized formatting to template displays without actually using the template itself.

Parameters

With the exception of alttext, the named parameters are toggles that are either omitted (default in most cases) or activated (by being assigned a value such as "on", "yes", "true", "include", etc.). They may be included in any order (see Examples below). Certain templates have the parameter "on" by default; see the main table for all alternate options.

Parameter Action Use with
{{example}}
Default active
Default (without accessory parameters) {{example}}
brace Include braces as part of the template link {{example}} {{tlw}}/{{tn}}
braceinside Include innermost braces as part of the template link {{example}}
bold Renders the template link/name in bold {{example}} {{tlb}}, {{tlxb}}
code Display output using HTML [[HTML element#code|Template:Tag]] tags (monospaced font) {{example}} {{tlc}}, {{Template link expanded}}, etc.
italic Display any parameters accompanying the template link/name in italics {{example|param}} {{tlxi}}
kbd Display output using HTML [[HTML element#kbd|Template:Tag]] tags (monospaced font) {{example}}
nolink Don't render the template name as a link {{example}} {{tlf}}, {{tnull}}
nowrap Prevent the insertion of line breaks (word wrap) in the output {{example}}
nowrapname Prevent word wrapping in the output of template name/link (parameters will wrap if needed) {{example}}
plaincode Uses Template:Tag {{example}} {{tltss}}
subst Include a subst: prefix before the template link/name {{subst:example}} {{tls}}, {{tlxs}}, etc
Template:Para Use [text] as the label for the template link {{Other}} {{tla}}
_show_result Will also display the result of the template. Lua error: expandTemplate: template "Template:Min" does not exist.
_expand Will add a link to the expanded template page. {{Min|7|-5}} [10]
→ [[:Category:Lions]] → Category:Lions
Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Format link/doc. Changes can be proposed in the talk page.

This template is used to indicate a template is imported from English Wikipedia. It should be placed at the top of the template documentation page.

This template, often abbreviated as Template:Tlf, is used to provide stylized formatting to template displays without actually using the template itself.

Parameters

With the exception of alttext, the named parameters are toggles that are either omitted (default in most cases) or activated (by being assigned a value such as "on", "yes", "true", "include", etc.). They may be included in any order (see Examples below). Certain templates have the parameter "on" by default; see the main table for all alternate options.

Parameter Action Use with
{{example}}
Default active
Default (without accessory parameters) {{example}}
brace Include braces as part of the template link {{example}} {{tlw}}/{{tn}}
braceinside Include innermost braces as part of the template link {{example}}
bold Renders the template link/name in bold {{example}} {{tlb}}, {{tlxb}}
code Display output using HTML [[HTML element#code|Template:Tag]] tags (monospaced font) {{example}} {{tlc}}, {{Template link expanded}}, etc.
italic Display any parameters accompanying the template link/name in italics {{example|param}} {{tlxi}}
kbd Display output using HTML [[HTML element#kbd|Template:Tag]] tags (monospaced font) {{example}}
nolink Don't render the template name as a link {{example}} {{tlf}}, {{tnull}}
nowrap Prevent the insertion of line breaks (word wrap) in the output {{example}}
nowrapname Prevent word wrapping in the output of template name/link (parameters will wrap if needed) {{example}}
plaincode Uses Template:Tag {{example}} {{tltss}}
subst Include a subst: prefix before the template link/name {{subst:example}} {{tls}}, {{tlxs}}, etc
Template:Para Use [text] as the label for the template link {{Other}} {{tla}}
_show_result Will also display the result of the template. Lua error: expandTemplate: template "Template:Min" does not exist.
_expand Will add a link to the expanded template page. {{Min|7|-5}} [11]
→ [[Lion#Etymology|Etymology of lion]] → Etymology of lion
Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Format link/doc. Changes can be proposed in the talk page.

This template is used to indicate a template is imported from English Wikipedia. It should be placed at the top of the template documentation page.

Lua error in Module:Shortcut at line 45: attempt to index local 'titleObj' (a nil value).

This template, often abbreviated as Template:Tlf, is used to provide stylized formatting to template displays without actually using the template itself.

Parameters

With the exception of alttext, the named parameters are toggles that are either omitted (default in most cases) or activated (by being assigned a value such as "on", "yes", "true", "include", etc.). They may be included in any order (see Examples below). Certain templates have the parameter "on" by default; see the main table for all alternate options.

Parameter Action Use with
{{example}}
Default active
Default (without accessory parameters) {{example}}
brace Include braces as part of the template link {{example}} {{tlw}}/{{tn}}
braceinside Include innermost braces as part of the template link {{example}}
bold Renders the template link/name in bold {{example}} {{tlb}}, {{tlxb}}
code Display output using HTML [[HTML element#code|Template:Tag]] tags (monospaced font) {{example}} {{tlc}}, {{Template link expanded}}, etc.
italic Display any parameters accompanying the template link/name in italics {{example|param}} {{tlxi}}
kbd Display output using HTML [[HTML element#kbd|Template:Tag]] tags (monospaced font) {{example}}
nolink Don't render the template name as a link {{example}} {{tlf}}, {{tnull}}
nowrap Prevent the insertion of line breaks (word wrap) in the output {{example}}
nowrapname Prevent word wrapping in the output of template name/link (parameters will wrap if needed) {{example}}
plaincode Uses Template:Tag {{example}} {{tltss}}
subst Include a subst: prefix before the template link/name {{subst:example}} {{tls}}, {{tlxs}}, etc
Template:Para Use [text] as the label for the template link {{Other}} {{tla}}
_show_result Will also display the result of the template. Lua error: expandTemplate: template "Template:Min" does not exist.
_expand Will add a link to the expanded template page. {{Min|7|-5}} [12]
 → [[:Foo#Bar|§&nbsp;Bar]] → § Bar
Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Format link/doc. Changes can be proposed in the talk page.

This template is used to indicate a template is imported from English Wikipedia. It should be placed at the top of the template documentation page.

This template, often abbreviated as Template:Tlf, is used to provide stylized formatting to template displays without actually using the template itself.

Parameters

With the exception of alttext, the named parameters are toggles that are either omitted (default in most cases) or activated (by being assigned a value such as "on", "yes", "true", "include", etc.). They may be included in any order (see Examples below). Certain templates have the parameter "on" by default; see the main table for all alternate options.

Parameter Action Use with
{{example}}
Default active
Default (without accessory parameters) {{example}}
brace Include braces as part of the template link {{example}} {{tlw}}/{{tn}}
braceinside Include innermost braces as part of the template link {{example}}
bold Renders the template link/name in bold {{example}} {{tlb}}, {{tlxb}}
code Display output using HTML [[HTML element#code|Template:Tag]] tags (monospaced font) {{example}} {{tlc}}, {{Template link expanded}}, etc.
italic Display any parameters accompanying the template link/name in italics {{example|param}} {{tlxi}}
kbd Display output using HTML [[HTML element#kbd|Template:Tag]] tags (monospaced font) {{example}}
nolink Don't render the template name as a link {{example}} {{tlf}}, {{tnull}}
nowrap Prevent the insertion of line breaks (word wrap) in the output {{example}}
nowrapname Prevent word wrapping in the output of template name/link (parameters will wrap if needed) {{example}}
plaincode Uses Template:Tag {{example}} {{tltss}}
subst Include a subst: prefix before the template link/name {{subst:example}} {{tls}}, {{tlxs}}, etc
Template:Para Use [text] as the label for the template link {{Other}} {{tla}}
_show_result Will also display the result of the template. Lua error: expandTemplate: template "Template:Min" does not exist.
_expand Will add a link to the expanded template page. {{Min|7|-5}} [13]
→ [[Quo warranto#Philippines|<i>Quo warranto</i> §&nbsp;Philippines]] → Quo warranto § Philippines
Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Format link/doc. Changes can be proposed in the talk page.

This template is used to indicate a template is imported from English Wikipedia. It should be placed at the top of the template documentation page.

This template, often abbreviated as Template:Tlf, is used to provide stylized formatting to template displays without actually using the template itself.

Parameters

With the exception of alttext, the named parameters are toggles that are either omitted (default in most cases) or activated (by being assigned a value such as "on", "yes", "true", "include", etc.). They may be included in any order (see Examples below). Certain templates have the parameter "on" by default; see the main table for all alternate options.

Parameter Action Use with
{{example}}
Default active
Default (without accessory parameters) {{example}}
brace Include braces as part of the template link {{example}} {{tlw}}/{{tn}}
braceinside Include innermost braces as part of the template link {{example}}
bold Renders the template link/name in bold {{example}} {{tlb}}, {{tlxb}}
code Display output using HTML [[HTML element#code|Template:Tag]] tags (monospaced font) {{example}} {{tlc}}, {{Template link expanded}}, etc.
italic Display any parameters accompanying the template link/name in italics {{example|param}} {{tlxi}}
kbd Display output using HTML [[HTML element#kbd|Template:Tag]] tags (monospaced font) {{example}}
nolink Don't render the template name as a link {{example}} {{tlf}}, {{tnull}}
nowrap Prevent the insertion of line breaks (word wrap) in the output {{example}}
nowrapname Prevent word wrapping in the output of template name/link (parameters will wrap if needed) {{example}}
plaincode Uses Template:Tag {{example}} {{tltss}}
subst Include a subst: prefix before the template link/name {{subst:example}} {{tls}}, {{tlxs}}, etc
Template:Para Use [text] as the label for the template link {{Other}} {{tla}}
_show_result Will also display the result of the template. Lua error: expandTemplate: template "Template:Min" does not exist.
_expand Will add a link to the expanded template page. {{Min|7|-5}} [14]
→ [[Cybercrime Prevention Act of 2012#Disini v. Secretary of Justice|Cybercrime Prevention Act of 2012 §&nbsp;<i>Disini v. Secretary of Justice</i>]] → Cybercrime Prevention Act of 2012 § Disini v. Secretary of Justice
Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Format link/doc. Changes can be proposed in the talk page.

This template is used to indicate a template is imported from English Wikipedia. It should be placed at the top of the template documentation page.

This template, often abbreviated as Template:Tlf, is used to provide stylized formatting to template displays without actually using the template itself.

Parameters

With the exception of alttext, the named parameters are toggles that are either omitted (default in most cases) or activated (by being assigned a value such as "on", "yes", "true", "include", etc.). They may be included in any order (see Examples below). Certain templates have the parameter "on" by default; see the main table for all alternate options.

Parameter Action Use with
{{example}}
Default active
Default (without accessory parameters) {{example}}
brace Include braces as part of the template link {{example}} {{tlw}}/{{tn}}
braceinside Include innermost braces as part of the template link {{example}}
bold Renders the template link/name in bold {{example}} {{tlb}}, {{tlxb}}
code Display output using HTML [[HTML element#code|Template:Tag]] tags (monospaced font) {{example}} {{tlc}}, {{Template link expanded}}, etc.
italic Display any parameters accompanying the template link/name in italics {{example|param}} {{tlxi}}
kbd Display output using HTML [[HTML element#kbd|Template:Tag]] tags (monospaced font) {{example}}
nolink Don't render the template name as a link {{example}} {{tlf}}, {{tnull}}
nowrap Prevent the insertion of line breaks (word wrap) in the output {{example}}
nowrapname Prevent word wrapping in the output of template name/link (parameters will wrap if needed) {{example}}
plaincode Uses Template:Tag {{example}} {{tltss}}
subst Include a subst: prefix before the template link/name {{subst:example}} {{tls}}, {{tlxs}}, etc
Template:Para Use [text] as the label for the template link {{Other}} {{tla}}
_show_result Will also display the result of the template. Lua error: expandTemplate: template "Template:Min" does not exist.
_expand Will add a link to the expanded template page. {{Min|7|-5}} [15]
Error: no link or target specified! (help)

Errors

If this template is used and neither the link parameter (or positional parameter 1) nor the target parameter (or positional parameter 3) is supplied, then the template will return an error message. At least one of those must be supplied.