Template:TemplateData header/doc
| This is a documentation subpage for Template:TemplateData header. It may contain usage information, categories and other content that is not part of the original template page. |
| This template is used on approximately 15,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
| This template uses Lua: |
The {{TemplateData header}} template inserts a brief header for the TemplateData section and automatically adds the page to Category:Templates using TemplateData.
Usage
[kolera mu edit source]| Other section headings such as Usage or Parameters are also acceptable. |
== TemplateData ==
{{TemplateData header}}
<templatedata>{
…
}</templatedata>
Optional parameters
[kolera mu edit source]Add an optional unnamed parameter containing a template name (be sure to omit the namespace, as in {{TemplateData header|Example}}) to override the default reference to the transcluding page (as output by the {{BASEPAGENAME}} variable) in the header text. This is typically done in the case of template families which all transclude a documentation subpage from a single family member.
Use the |nolink=1 parameter to omit the wikilink from the word "TemplateData" in the header text, for instances when it is already linked elsewhere on the page.
Template:Markupv
Use the |noheader=1 parameter to omit the first sentence of the default header text.
Template:Markupv
Example
[kolera mu edit source]Some editors prefer to nest very lengthy TemplateData tables within a collapsible box template. An example of this layout for Template:User would use wikitext that resembled… Template:Demo
TemplateData
[kolera mu edit source]TemplateData for TemplateData header
Inserts a brief introduction for the TemplateData section of a documentation page and adds the root page to the 'Templates using TemplateData' category
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Template name | 1 | Overrides the name of the template referenced as the source of the information
| Line | optional |
| No header | noheader | Omits the first sentence of the header text | Boolean | optional |
| Unlinked | nolink | Overrides linking the word 'TemplateData' in the header text to the page Wikipedia:TemplateData; useful when such a link already appears earlier on the page | Boolean | optional |
Tracking categories
[kolera mu edit source]See also
[kolera mu edit source]- {{Crude TemplateData}}
- {{Format TemplateData}}
- {{Template parameter usage}}
- {{TemplateData}}