Template:TemplateData
Appearance
This template allows documentation pages to include TemplateData in a clean, structured way.
Usage
[edit source]Place this at the bottom of a template page inside <noinclude> to define TemplateData for VisualEditor.
Example:
{{TemplateData
|description = Description of what the template does
|params = {
"parameter1": {
"label": "Parameter 1",
"description": "What this does",
"type": "string"
}
}
}}
This generates a proper <templatedata> block used by VisualEditor.