Wikipedia:TemplateData/Tutorial: Difference between revisions
Content deleted Content added
m →Completing the TemplateData information: some <code>s |
→The structure of TemplateData: directly on the template inside noinclude if there is no /doc |
||
Line 4:
== How to use TemplateData ==
===The structure of TemplateData ===
TemplateData's structure is based around the "JSON" standard, and is fairly simple. The first thing to do is to type out a pair of <nowiki><TemplateData></nowiki> tags, anywhere on the template's /doc subpage (or inside <nowiki><noinclude></noinclude></nowiki> tags directly on the template page itself if it does not have a /doc subpage), like so:
<pre>
Line 12:
</pre>
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.
===TemplateData===
|