模板:TemplateData header
TemplateData header-{zh-cn:模板数据;zh-tw:模板資料}-
<templatestyles src="Module:Documentation/styles.css"></templatestyles>
| 文件:Lua-logo-nolabel.svg | 此模板使用Lua语言: |
The {{TemplateData header}} template inserts a brief header for the template data section, and adds the page to Category:Templates using TemplateData.
Usage
==TemplateData==
{{TemplateData header}}
<templatedata>{
...
}</templatedata>
Note: Section headers of ==Parameters== or ==Usage== may also be used.
Use {{TemplateData header|Template name}} to display a name for the template other than the default, which is {{BASEPAGENAME}}. Do not add namespace Template:
- 这是用于新版-{zh-cn:可视化编辑器;zh-tw:視覺化編輯器;}-及其他工具的-{zh-cn:模板数据;zh-tw:模板資料}--{zh-cn:文档;zh-tw:文件;}-。
Template name-{zh-cn:模板数据;zh-tw:模板資料}-
Use {{TemplateData header|nolink=1}} to omit the wikilink from the word "TemplateData" in the header text, for instances where it is already linked outside this template.
- 这是用于新版-{zh-cn:可视化编辑器;zh-tw:視覺化編輯器;}-及其他工具的-{zh-cn:模板数据;zh-tw:模板資料}--{zh-cn:文档;zh-tw:文件;}-。
TemplateData header-{zh-cn:模板数据;zh-tw:模板資料}-
Use {{TemplateData header|noheader=1}} to omit the first sentence of the header text.
TemplateData header-{zh-cn:模板数据;zh-tw:模板資料}-
Example
- Using a collapse box for
[[Template:User]]:
TemplateData header-{zh-cn:模板数据;zh-tw:模板資料}-
{{TemplateData header/sandbox}}
Error: expandTemplate: template "TemplateData header/sandbox" does not exist
Parameters
TemplateData header-{zh-cn:模板数据;zh-tw:模板資料}-
Inserts a brief header for the template data section. Adds the page to [[Category:Templates using TemplateData]]
| 参数 | 描述 | 类型 | 状态 | |
|---|---|---|---|---|
| Template name | 1 | Used to display a name for the template other than the default, which is {{BASEPAGENAME}}. | 字符串 | 可选 |
| No link | nolink | Assigning any value to this parameter will omit cause the template to omit the wikilink from the word "TemplateData" in the header text, for instances where it is already linked outside this template. | 字符串 | 可选 |
| No header | noheader | Assigning any value to this parameter will cause the template to omit the first sentence of the header text. | 字符串 | 可选 |