Template:TemplateDataHeader/doc: Difference between revisions
(update with source) |
(+source) |
||
Line 57: | Line 57: | ||
</templatedata> | </templatedata> | ||
== Source == | |||
Code initialy taken from [https://en.wikipedia.org/wiki/Template:TemplateData_header Wikipedia - Template:TemplateData_header] | |||
<includeonly> | <includeonly> |
Latest revision as of 23:24, 11 December 2017
This is a documentation subpage for Template:TemplateDataHeader . |
Inserts a brief header for the template data section. Adds the page to Category:TemplateData documentation.
Usage
==TemplateData== or ==Parameters== or ==Usage== {{TemplateDataHeader}} <templatedata>{ ... }</templatedata>
Use {{TemplateDataHeader|Template name}}
if you want an alternative name for the template to be displayed.
- This is the TemplateData documentation for this template used by VisualEditor and other tools.
TemplateData for Template name
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.
- This is the TemplateData documentation for this template used by VisualEditor and other tools.
TemplateData for TemplateDataHeader
Use {{TemplateData header|noheader=1}}
to omit the first sentence of the header text.
TemplateData for TemplateDataHeader
Parameters
TemplateData for TemplateDataHeader
Inserts a brief header for the template data section. Adds the page to [[Category:TemplateData documentation]]
Parameter | Description | Type | Status | |
---|---|---|---|---|
Template name | 1 | Used to display a name for the template other than the default, which is {{BASEPAGENAME}}. | String | optional |
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.
| String | optional |
No header | noheader | Assigning any value to this parameter will cause the template to omit the first sentence of the header text.
| String | optional |
Source
Code initialy taken from Wikipedia - Template:TemplateData_header