Wikipedia:TemplateData/Tutorial: Difference between revisions

Content deleted Content added
Completing the template data information: clarify that the TemplateData code affects how the template works in VE
Line 44:
 
===Completing the template data information===
Remember, template data information is onlyboth information ''about'' how a template is meant to be used by editors., and programming code that tells the VisualEditor how to help editors add a template to a page. Nothing you do here will affect the corresponding template, though creating a template data entry that contains informational errors may cause problems for editors trying to use that template in an article.
 
The first piece of information to fill out is a <code>"description"</code> for the overall template, which is fairly self-explanatory; it briefly describes what the template does and explains where and how the user might want to use it. If the template was created and given some kind of description by someone before you, you may use information that you glean from the top of the main or sub-page of the template, which you can copy and paste here. Place it within quotes and follow it with a comma: <code>"description": "This template generates an information box for Croatian football players",</code>). Note that any wikitext typed anywhere in the template data table such as <code><nowiki>[[Croatian football]]</nowiki></code> will not retain any of its functions and will appear as plain unlinked text, character for character.