<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://vistapedia.com/index.php?action=history&amp;feed=atom&amp;title=Template%3AFormat_TemplateData%2Fdoc</id>
	<title>Template:Format TemplateData/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://vistapedia.com/index.php?action=history&amp;feed=atom&amp;title=Template%3AFormat_TemplateData%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=Template:Format_TemplateData/doc&amp;action=history"/>
	<updated>2026-05-01T23:17:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://vistapedia.com/index.php?title=Template:Format_TemplateData/doc&amp;diff=17709&amp;oldid=prev</id>
		<title>DavidWhitten: Created page with &quot;{{Documentation subpage}}{{Lua|Module:Format TemplateData}} Everything below this line is a demo of Format TemplateData: read the source code, and expand the raw TemplateData...&quot;</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=Template:Format_TemplateData/doc&amp;diff=17709&amp;oldid=prev"/>
		<updated>2019-06-05T18:14:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation subpage}}{{Lua|Module:Format TemplateData}} Everything below this line is a demo of Format TemplateData: read the source code, and expand the raw TemplateData...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}{{Lua|Module:Format TemplateData}}&lt;br /&gt;
Everything below this line is a demo of Format TemplateData: read the source code, and expand the raw TemplateData section, to see how it all works.&lt;br /&gt;
== Usage ==&lt;br /&gt;
{{Format TemplateData|JSON={&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
    	&amp;quot;JSON&amp;quot;: {&lt;br /&gt;
        	&amp;quot;label&amp;quot;: &amp;quot;JSON template information&amp;quot;,&lt;br /&gt;
            &amp;quot;description&amp;quot;: &amp;quot;The code that would normally be wrapped in [[WP:TemplateData|&amp;amp;lt;templatedata&amp;amp;gt;]] tags (not including the &amp;amp;lt;templatedata&amp;amp;gt; tags themselves. Links and basic text formatting should just work in the displayed table; see this template&amp;#039;s page for full details. You should use HTML entities for special characters such as &amp;amp;lt;&amp;amp;gt;. &amp;lt;noexport&amp;gt;&amp;lt;h3&amp;gt;Formatting options&amp;lt;/h3&amp;gt;\n*&amp;#039;&amp;#039;&amp;#039;Wikilinks&amp;#039;&amp;#039;&amp;#039; can be specified in the usual way. They will only work in the table; in VisualEditor, the title of the link will be displayed as plain text.\n*&amp;#039;&amp;#039;&amp;#039;External links&amp;#039;&amp;#039;&amp;#039; can be specified by just inserting the URL; this will be clickable in the table and viewable in VisualEditor. If the URL is specified as &amp;amp;#91;https:&amp;amp;#47;&amp;amp;#47;en.wikipedia.org Wikipedia&amp;amp;#93;, this will appear as [https://en.wikipedia.org Wikipedia] in the table and https:&amp;amp;#47;&amp;amp;#47;en.wikipedia.org in VisualEditor.\n*&amp;#039;&amp;#039;&amp;#039;[[HTML entities]]&amp;#039;&amp;#039;&amp;#039;: you may specify &amp;amp;amp;lt; &amp;amp;amp;gt; &amp;amp;amp;amp; &amp;amp;amp;quot; &amp;amp;amp;nbsp; and any numeric entity.\n*&amp;#039;&amp;#039;&amp;#039;HTML tags&amp;#039;&amp;#039;&amp;#039; may be used; they won&amp;#039;t appear in VisualEditor.\n*&amp;#039;&amp;#039;&amp;#039;&amp;amp;lt;noexport&amp;amp;gt;&amp;amp;lt;/noexport&amp;amp;gt;&amp;#039;&amp;#039;&amp;#039; Content wrapped in these tags will appear only in the table. It will not appear in VisualEditor at all; it is useful for detailed explanations of parameters, and for content that is only useful with formatting. Newline characters are respected here.\n*&amp;#039;&amp;#039;&amp;#039;Templates&amp;#039;&amp;#039;&amp;#039; may be transcluded. However some templates may output content that makes the JSON invalid.&amp;lt;/noexport&amp;gt;&amp;quot;,&lt;br /&gt;
            &amp;quot;required&amp;quot;: true,&lt;br /&gt;
            &amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
            &amp;quot;aliases&amp;quot;: [&amp;quot;1&amp;quot;]&lt;br /&gt;
        },&lt;br /&gt;
        &amp;quot;TOC&amp;quot;: {&lt;br /&gt;
            &amp;quot;label&amp;quot;: &amp;quot;Show table of contents&amp;quot;,&lt;br /&gt;
            &amp;quot;description&amp;quot;: &amp;quot;If set to 1, inserts a table of contents for the whole page just after the description and before any parameter table.&amp;quot;,&lt;br /&gt;
            &amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;,&lt;br /&gt;
            &amp;quot;default&amp;quot;: &amp;quot;0&amp;quot;,&lt;br /&gt;
            &amp;quot;suggested&amp;quot;: true&lt;br /&gt;
        },&lt;br /&gt;
		&amp;quot;header&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Show TemplateDataHeader&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;If set to 0, hides the TemplateDataHeader template. This is not generally recommended.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;,&lt;br /&gt;
            &amp;quot;default&amp;quot;: &amp;quot;1&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
        &amp;quot;lazy&amp;quot;: {&lt;br /&gt;
            &amp;quot;label&amp;quot;: &amp;quot;Prevent TemplateData output&amp;quot;,&lt;br /&gt;
            &amp;quot;description&amp;quot;: &amp;quot;If set, other than to 0, prevents any real TemplateData being produced. Potentially useful if there are multiple instances of this template on a page but only one should be active. To clarify, this means that this template will &amp;#039;&amp;#039;not&amp;#039;&amp;#039; be understood by VisualEditor.&amp;quot;,&lt;br /&gt;
            &amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;,&lt;br /&gt;
            &amp;quot;default&amp;quot;: &amp;quot;0&amp;quot;&lt;br /&gt;
        }&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;This template formats [[WP:VE/TD|TemplateData]] nicely on doc pages. It hides irrelevant information such as \&amp;quot;Default: empty\&amp;quot;, and allows the use of formatting. Remember that the users of VisualEditor &amp;#039;&amp;#039;&amp;#039;will not see&amp;#039;&amp;#039;&amp;#039; this formatting; it is important to test your new TemplateData in VisualEditor to check that it makes sense without. (For all details of formatting available, see the template&amp;#039;s page.) By default, {{tl|TemplateData header}} is automatically inserted before the table.&amp;quot;&lt;br /&gt;
} }}&lt;br /&gt;
&lt;br /&gt;
==Maintenance categories==&lt;br /&gt;
* {{clc|Templates with TemplateData errors}} – the template adds this category to template documentation pages with malformed TemplateData code. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>DavidWhitten</name></author>
	</entry>
</feed>