模板:Template link bare/doc

来自决策链云智库
< 模板:Template link bare
Zeroclanzhang讨论 | 贡献2024年1月16日 (二) 18:34的版本 (创建页面,内容为“{{Documentation subpage}} <!----Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see Wikipedia:Wikidata)----> {{template shortcuts|tlbare}} A template in the same vein as the category-linking template {{tl|c}}, producing a "bare" link – i.e. without "Template:" prefix, braces, etc. – to the template named by the first parameter. If a second parameter is supplied, it is used in place of the first as the l…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

A template in the same vein as the category-linking template {{c}}, producing a "bare" link – i.e. without "Template:" prefix, braces, etc. – to the template named by the first parameter. If a second parameter is supplied, it is used in place of the first as the link's text.

Syntax

{{tlbare|<template_name>}}
{{tlbare|<template_name>|<link_text>}}

Examples

{{tlbare|Example}} produces: Example
{{tlbare|Example|the "Example" template}} produces: the "Example" template

Resizing

{{tlbare|<N%>|<template_name>}}
{{tlbare|<N%>|<template_name>|<link_text>}}

If the first parameter ends in a percent sign ("%"), it will be treated as a font-size setting for the template's output. For example:

Example}} produces: Example
90%|Example}} produces: Example
90|Example}} produces: Example

See also

  • {{c}}, the same kind of template for a category.
  • {{tl}} and {{tnf}}, similar templates that include, respectively, braces as well as a link; and braces without a link.
  • Category:Internal template-link templates for more templates providing template links within Wikipedia.