模板:Tl/doc:修订间差异
来自康健生活
< 模板:Tl
创建页面,内容为“模板链接模板是一个简单的宏 模板用作链接包围括号显示模板名称,从而示出了模板名称作为代码而不是实际调用它。它的…” |
|||
| 第4行: | 第4行: | ||
== TemplateData == | == TemplateData == | ||
<templatedata>{ | <templatedata>{ | ||
"description": "This template displays a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation.", | "description": "This template displays a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation.", | ||
2020年3月2日 (一) 16:15的最新版本
模板链接模板是一个简单的宏 模板用作链接包围括号显示模板名称,从而示出了模板名称作为代码而不是实际调用它。它的主要用途是在说明和文档中,用于按名称引用模板而不调用它。
{{tl|Example}}
TemplateData
This template displays a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation.
| 参数 | 描述 | 类型 | 状态 | |
|---|---|---|---|---|
| template name | 1 | the template name without the namespace prefix “Template:”, which is added automatically | 单行文本 | 必需 |
More complex variations are described below.