Template:TemplateData header: Difference between revisions
Jump to navigation
Jump to search
m (1 revision imported) |
(per edit request on talk page) |
||
Line 1: | Line 1: | ||
<div class="templatedata-header">{{#if:{{{noheader|}}}| |This is the {{#if:{{{nolink|}}}|TemplateData|[[Wikipedia:TemplateData|TemplateData]]}} documentation for this template used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools.}} | <div class="templatedata-header">{{#if:{{{noheader|}}}|<!-- | ||
noheader: | |||
-->{{Template error report}}|<!-- | |||
+header: | |||
-->This is the {{#if:{{{nolink|}}}|<!-- | |||
+header, nolink TD | |||
-->TemplateData|<!-- | |||
+header, +link [[TD]]; DEFAULT: | |||
-->[[Wikipedia:TemplateData|TemplateData]]}}<!-- | |||
e.o. #if:nolink; DEFAULT: | |||
--> documentation for this template used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools; {{Template error report|lc=yes}}<!-- | |||
e.o. #if:noheader | |||
-->}} | |||
{{Template error | '''TemplateData for {{{1|{{BASEPAGENAME}}}}}''' | ||
</div><includeonly><!-- | |||
check parameters | |||
-->{{#invoke:Check for unknown parameters|check | |||
|unknown={{template other|1=[[Category:Pages using TemplateData header with unknown parameters|_VALUE_]]}} | |||
|template=Template:TemplateData header | |||
|1 |nolink |noheader | |||
|preview=<div class="error" style="font-weight:normal">Unknown parameter '_VALUE_' in [[Template:TemplateData header]].</div> | |||
}}<!-- | |||
-->{{template other|{{sandbox other|| | |||
[[Category:Templates using TemplateData]] | |||
}}}}</includeonly><!-- | |||
--><noinclude>{{Documentation}}</noinclude> | |||
{{Documentation}} | |||
</noinclude> |
Revision as of 17:33, 27 March 2020
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly error report for this template.
TemplateData for TemplateData header
Inserts a brief header for the template data section. Adds the page to Category:TemplateData documentation.
Usage
==TemplateData== or ==Parameters== or ==Usage== {{TemplateData header}} <templatedata>{ ... }</templatedata>
Use {{TemplateData header|Template name}}
to display a name for the template other than the default, which is {{BASEPAGENAME}}.
- This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly error report for this template.
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; see the monthly error report for this template.
TemplateData for TemplateData header
Use {{TemplateData header|noheader=1}}
to omit the first sentence of the header text.
- See the monthly error report for this template.
TemplateData for TemplateData header
Parameters
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly error report for this template.
TemplateData for TemplateData header
<templatedata>{
"description": "Inserts a brief header for the template data section. Adds the page to", "params": { "1": { "label": "Template name", "description": "Used to display a name for the template other than the default, which is TemplateData header.", "type": "string", "required": false }, "nolink": { "label": "No link", "description": "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.", "type": "string", "required": false }, "noheader": { "label": "No header", "description": "Assigning any value to this parameter will cause the template to omit the first sentence of the header text.", "type": "string", "required": false } }
}</templatedata>
The above documentation is transcluded from Template:TemplateData header/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |