Template:TemplateData header: Difference between revisions
meta>Zyxw add option to remove wikilink from TemplateData in header, for instances where it is already linked outside this template |
meta>Zyxw m fix prior edit |
||
| 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|}}}| |This is the {{#if:{{{nolink|}}}|TemplateData|[[Wikipedia:TemplateData|TemplateData]]}} documentation for this template used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools.}} | ||
{{Template error report}} | {{Template error report}} | ||
Revision as of 09:49, 27 November 2016
Template:Template error report
TemplateData for TemplateData header
The {{TemplateData header}} template inserts a brief header for the TemplateData section of template documentation, and adds the transcluding page to Category:Templates using TemplateData.
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.
Template:Template error report
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.
Template:Template error report
TemplateData for TemplateData header
Parameters
Template:Template error report
TemplateData for TemplateData header
Inserts a brief header for the TemplateData section of template documentation, and adds the page to Category:Templates using TemplateData
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Template name | 1 | Used to display a name for the template other than the default of {{BASEPAGENAME}}
| Template | optional |
| Disable link | nolink | Omits the wikilink from the word 'TemplateData' in the header text when assigned any value; for instances where it is already linked outside this template.
| Line | optional |