Difference between revisions of "Template:Format TemplateData/doc"
Jump to navigation
Jump to search
imported>JJMC89 (spaces) |
imported>GKFX (Document "lazy" param.) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}}{{Lua|Module:TemplateData}} | {{Documentation subpage}}{{Lua|Module:TemplateData}} | ||
| − | + | 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 == | == Usage == | ||
{{Format TemplateData|JSON={ | {{Format TemplateData|JSON={ | ||
| Line 29: | Line 29: | ||
"type": "boolean", | "type": "boolean", | ||
"default": "1" | "default": "1" | ||
| − | } | + | }, |
| + | "lazy": { | ||
| + | "label": "Prevent TemplateData output", | ||
| + | "description": "If set, other than to 0, prevents any real TemplateData being produced. Potentially useful if there are multiple instances of this template on a page but only one should be active. To clarify, this means that this template will ''not'' be understood by VisualEditor.", | ||
| + | "type": "boolean", | ||
| + | "default": "0" | ||
| + | } | ||
}, | }, | ||
"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." | "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." | ||
Revision as of 20:37, 8 February 2018
| This is a documentation subpage for Template:Format TemplateData. It contains usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
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
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 Format TemplateData
INTERNAL: mw.text.jsonDecode: Control character error, possibly incorrectly encoded