Difference between revisions of "Template:TemplateData header"

From Wikispooks
Jump to navigation Jump to search
m (1 revision imported)
 
en>Evad37
(Replace {{Template error report}} with {{Template parameter usage}} – per edit request)
Line 1: Line 1:
<div class="templatedata-header">{{#if:{{{noheader|}}}|{{Template error report}}|This is the {{#if:{{{nolink|}}}|TemplateData|[[Wikipedia:TemplateData|TemplateData]]}} documentation for this template used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools; {{Template error report|lc=yes}}}}  
+
<div class="templatedata-header">{{#if:{{{noheader|}}}|<!--
 +
noheader:
 +
-->{{Template parameter usage}}|<!--
 +
+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 parameter usage|lc=yes}}<!--
 +
  e.o. #if:noheader
 +
-->}}
  
 
'''TemplateData for {{{1|{{BASEPAGENAME}}}}}'''
 
'''TemplateData for {{{1|{{BASEPAGENAME}}}}}'''
</div><includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
+
</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]]
 
[[Category:Templates using TemplateData]]
}}</includeonly><noinclude>
+
 
{{Documentation}}
+
}}}}</includeonly><!--
</noinclude>
+
 
 +
--><noinclude>{{Documentation}}</noinclude>

Revision as of 01:28, 4 April 2020

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for TemplateData header

Template documentation[view] [edit] [history] [purge]

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}} if you want an alternative name for the template to be displayed.

Parameters

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage 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": "The name of the template to display. Default is TemplateData header.",
     "type": "string",
     "required": false
   }
 }

}</templatedata>

See also