Wikipedia:TemplateData/Tutorial: Difference between revisions
Content deleted Content added
No edit summary Tags: Reverted Mobile edit Mobile web edit |
m Reverted edit by 2C0F:FC89:BC:B91:608D:CE37:67FA:9698 (talk) to last version by SurabhiMinocha |
||
Line 1:
{{short description|Wikimedia project gadget tutorial}}
{{shortcut|WP:TDATA/T|WP:VE/TDT}}
{{VisualEditor navbox}}
[[Wikipedia:VisualEditor/TemplateData|Template data]] is a way of storing information about a template—such as parameter names, or a description of the template—so that the [[Wikipedia:VisualEditor|VisualEditor]] can retrieve it and populate the template editor with it. It does ''not'' change anything about the actual ''template'' with which it appears, and nothing you can do with template data will affect the functionality of or "break" any existing Wikipedia template (though mistakes that appear in the template data might cause editors to use the associated template or its parameters incorrectly, so care is still needed). Template data is controlled by MediaWiki's [[mw:Extension:TemplateData|TemplateData extension]], which allows users to write small bits of structured data to a template page, or to be transcluded into that template page (such as on the standard documentation page). Once a template has this structured data, it can be displayed properly in the VisualEditor. While this may sound complex, it's actually very easy.
== How to use template data ==
===The structure of template data ===
|