Wikipedia:TemplateData/Tutorial: Difference between revisions
Content deleted Content added
→Tools: Fix redlink Tags: Mobile edit Mobile web edit Advanced mobile edit |
m →The structure of TemplateData: lang="xml" |
||
Line 9:
TemplateData's central structure is encoded in [[JSON]] format, and the schema is fairly simple. The first thing to do is to type out a pair of <code><nowiki><TemplateData></nowiki></code> tags directly on the template page itself inside {{tag|noinclude}} tags, or anywhere on the template's documentation sub-page if it has one, like so:
<syntaxhighlight lang=
<TemplateData>
TemplateData goes here
Line 20:
On English Wikipedia, you can also use the {{tl|Format TemplateData}} template to generate a more "conventional" presentation of TemplateData suitable for use in [[Wikipedia:Template documentation|Template documentation]]. Instead of the above, write this at the top of the documentation page:
<syntaxhighlight lang=
{{Format TemplateData
|1=<TemplateData>
|