TemplateData is the standardized description of a template, used by the default VisualEditor, the optional 2017 wikitext editor and other tools to improve the template-editing experience for the user.
[[File:|42px|link=]] | This ଉଇକିପିଡ଼ିଆ ପୃଷ୍ଠା needs to be updated. Please help update this ଉଇକିପିଡ଼ିଆ ପୃଷ୍ଠା to reflect recent events or newly available information. |
Both VisualEditor and the 2017 wikitext editor include a wizard to edit templates, but for the wizard to be most useful, it needs to present specific information to the user about each template, such as a short description of the template's purpose and its parameters. This information is codified formally (by any wiki editor) using TemplateData.
Without TemplateData, each parameter needs to be added manually when inserting a new template.
No information is provided about what the value of the parameter should be.
With TemplateData, a list of supported parameters (and their description) is provided for the template.
TemplateData provides context for each parameter, and makes it much easier for users to modify templates.
Anyone can help by adding TemplateData to templates (particularly high-profile ones, such as infoboxes) so that they are easier to edit in VisualEditor. The following is a minimal example, placed on a template's documentation page:
<templatedata>{ "description": "insert description here", "params": { "first parameter": { "label": "x", "description": "x", "type": "string", "default": "default value", "required": false } } }</templatedata>
You can also add or edit TemplateData using a GUI, by pressing the following button which appears at the top of the edit page:
The TemplateData tutorial explains in detail how to add TemplateData information to a template.
This article uses material from the Wikipedia ଓଡ଼ିଆ article ଉଇକିପିଡ଼ିଆ:TemplateData, which is released under the Creative Commons Attribution-ShareAlike 3.0 license ("CC BY-SA 3.0"); additional terms may apply (view authors). ଦର୍ଶାଯାଇନଥିଲେ ସମସ୍ତ ବିଷୟବସ୍ତୁ CC BY-SA 4.0 ରେ ଉପଲବ୍ଧ । Images, videos and audio are available under their respective licenses.
®Wikipedia is a registered trademark of the Wiki Foundation, Inc. Wiki ଓଡ଼ିଆ (DUHOCTRUNGQUOC.VN) is an independent company and has no affiliation with Wiki Foundation.