Jump to content

Template:TemplateData

From MicroVault
Revision as of 11:42, 19 November 2025 by Charles (talk | contribs) (Created page with "<includeonly><templatedata> { "description": "{{{description|}}}", "params": {{{params|{}}}} } </templatedata></includeonly><noinclude> This template allows documentation pages to include TemplateData in a clean, structured way. == Usage == Place this at the bottom of a template page inside <noinclude> to define TemplateData for VisualEditor. Example: <pre> {{TemplateData |description = Description of what the template does |params = { "parameter1": {...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template allows documentation pages to include TemplateData in a clean, structured way.

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.