Content deleted Content added
Dpleibovitz (talk | contribs) fix JSON error (changed new lines to \n) - not sure if this is to be fixed here, or in the module... |
Artoria2e5 (talk | contribs) No edit summary |
||
Line 2:
Everything below this line is a demo of Format TemplateData: read the source code, and expand the raw TemplateData section, to see how it all works.
== Usage ==
<!--<templatedata>
{{Format TemplateData|JSON={▼
{
"params": {
▲ "type": "string",
"1"
▲ "aliases": ["1"]
],
"default": "Fetched from the page's source code."
"TOC": {▼
},
"label": "Show table of contents",▼
"description": "If set to 1, inserts a table of contents for the whole page just after the description and before any parameter table.",▼
"type": "boolean",▼
▲
"default": "0",▼
"suggested": true▼
},
"header": {
"label": "Show TemplateDataHeader",
"description": "If set to 0, hides the TemplateDataHeader template. This is not generally recommended.",
"type": "boolean",
},
}
},
"description": "This template formats [[WP:VE/TD|TemplateData]] nicely on doc pages. It hides irrelevant information such as \"Default: empty\", and allows the use of formatting. Remember that the users of VisualEditor '''will not see''' this formatting; it is important to test your new TemplateData in VisualEditor to check that it makes sense without. (For all details of formatting available, see the template's page.) By default, {{tl|TemplateData header}} is automatically inserted before the table."
</templatedata>-->
==Maintenance categories==
|