Wikipedia:TemplateData/Tutorial: Difference between revisions

Content deleted Content added
Completing the TemplateData information: quick fix - could use further improvement
Save: fix - parameter column: 1,2
Line 93:
"description": "A template to give the <count> substring of characters from the start of the trimmed string ",
"params": {
"string1": {
"label": "Alpha-numeric text",
"description": "The string to be trimmed and counted",
Line 100:
"required": true
},
"count2": {
"label": "Quantity",
"description": "Gives the <count> substring of characters from the start of the trimmed string",
Line 143:
</templatedata>
------>
 
===Perform a NULL edit on the template===
Once saved it is advisable to perform a [[WP:NULL]] edit on the main template (not the documentation page). This is necessary to update the database so the information can be used in the VisualEditor. As many templates are protected you may need to request a null edit using {{t1|editprotected}} or by leaving a note on this [[Wikipedia talk:VisualEditor/TemplateData tutorial|talkpage]].