Wikipedia:TemplateData/Tutorial: Difference between revisions

Content deleted Content added
Completing the TemplateData information: sectionized minimal skeleton and added a note about not throwing a JSON error
The structure of TemplateData: added N.B. about the Pre/pre example not being syntactically correct for JSON parser ... i.e. it will throw an error ... with reference to later section for more info
Line 11:
</TemplateData>
</pre>
 
<small>N.B. The preceding will throw a JSON error if used alone; see [[#Completing the TemplateData information]] below for more information.</small>
 
This tells the software that everything between the two tags is TemplateData, and should be referenced when the template is used. The TemplateData itself follows a standard layout that identifies the parameters that may be set within the template.