User:Banri/TemplateData: Difference between revisions
Created page with "When a template is used or edited in VisualEditor, VisualEditor tries to guess what parameters the template has. You can make this easier by adding "TemplateData" to templates..." |
No edit summary |
||
| Line 9: | Line 9: | ||
1. Go on the template '''documentation''' page (for consistency, don't add TemplateData to the template itself) and click '''Edit source''' | 1. Go on the template '''documentation''' page (for consistency, don't add TemplateData to the template itself) and click '''Edit source''' | ||
https://i.imgur.com/HQmUSin.png | |||
2. Click '''Manage TemplateData''' | 2. Click '''Manage TemplateData''' | ||
https://i.imgur.com/nUzds3U.png | |||
3. Set the language (should be '''English'''), add a description of the template, and then change the wikitext formatting. | 3. Set the language (should be '''English'''), add a description of the template, and then change the wikitext formatting. | ||
| Line 70: | Line 70: | ||
|} | |} | ||
https://i.imgur.com/v9aOkjO.png | |||
5. When done with adding parameters, press '''Apply''' at the top right of the interface. The TemplateData will be added to your cursor position on the page between the <code><nowiki><TemplateData></nowiki></code> tags. Move this to somewhere more convenient if necessary. | 5. When done with adding parameters, press '''Apply''' at the top right of the interface. The TemplateData will be added to your cursor position on the page between the <code><nowiki><TemplateData></nowiki></code> tags. Move this to somewhere more convenient if necessary. | ||