<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tachyony.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Wikipedia%3ATemplateData</id>
	<title>Wikipedia:TemplateData - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tachyony.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Wikipedia%3ATemplateData"/>
	<link rel="alternate" type="text/html" href="https://wiki.tachyony.co.uk/w/index.php?title=Wikipedia:TemplateData&amp;action=history"/>
	<updated>2026-05-15T14:00:02Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.5</generator>
	<entry>
		<id>https://wiki.tachyony.co.uk/w/index.php?title=Wikipedia:TemplateData&amp;diff=647&amp;oldid=prev</id>
		<title>Tachyony: Imported page</title>
		<link rel="alternate" type="text/html" href="https://wiki.tachyony.co.uk/w/index.php?title=Wikipedia:TemplateData&amp;diff=647&amp;oldid=prev"/>
		<updated>2021-12-04T19:14:58Z</updated>

		<summary type="html">&lt;p&gt;Imported page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{for|a tutorial|Wikipedia:TemplateData/Tutorial}}&lt;br /&gt;
{{hatnote|For additional technical information, see [[mw:Help:TemplateData]] and [[mw:Extension:TemplateData]].}}&lt;br /&gt;
{{Short description|Information page on the use of TemplateData on Wikipedia}}&lt;br /&gt;
{{out of date}}&lt;br /&gt;
{{VisualEditor navbox}}&lt;br /&gt;
{{stack|{{Shortcuts|WP:VE/TD|WP:TDATA}}}}&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== What is TemplateData? ==&lt;br /&gt;
TemplateData is the standardized description of a template, used by the default [[Wikipedia:VisualEditor|VisualEditor]], the optional [[mw:2017 wikitext editor|2017 wikitext editor]] and other tools to improve the template-editing experience for the user. Both VisualEditor and the 2017 wikitext editor include a wizard to edit templates, but for the wizard to be most useful, it needs to present specific information to the user about each template, such as a short description of the template&amp;#039;s purpose and its parameters. This information is codified formally (by any wiki editor) using TemplateData.&lt;br /&gt;
&lt;br /&gt;
=== Editing without TemplateData ===&lt;br /&gt;
Without TemplateData, each parameter needs to be added manually when inserting a new template.&lt;br /&gt;
&lt;br /&gt;
[[File:VisualEditor - Template without TemplateData.png|frameless|500px]]&lt;br /&gt;
&lt;br /&gt;
No information is provided about what the value of the parameter should be.&lt;br /&gt;
&lt;br /&gt;
[[File:VisualEditor - Template without TemplateData2.png|frameless|500px]]&lt;br /&gt;
&lt;br /&gt;
=== Editing with TemplateData ===&lt;br /&gt;
With TemplateData, a list of supported parameters (and their description) is provided for the template.&lt;br /&gt;
&lt;br /&gt;
[[File:VisualEditor - Template with TemplateData1.png|frameless|500px]]&lt;br /&gt;
&lt;br /&gt;
TemplateData provides context for each parameter, and makes it much easier for users to modify templates.&lt;br /&gt;
&lt;br /&gt;
[[File:VisualEditor - Template with TemplateData2.png|frameless|500px]]&lt;br /&gt;
&lt;br /&gt;
== Adding TemplateData ==&lt;br /&gt;
Anyone can help by adding TemplateData to templates (particularly high-profile ones, such as [[WP:INFOBOX|infoboxes]]) so that they are easier to edit in VisualEditor. The following is a minimal example, placed on a template&amp;#039;s documentation page:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;templatedata&amp;gt;{&lt;br /&gt;
  &amp;quot;description&amp;quot;: &amp;quot;insert description here&amp;quot;,&lt;br /&gt;
  &amp;quot;params&amp;quot;: {&lt;br /&gt;
    &amp;quot;first parameter&amp;quot;: {&lt;br /&gt;
      &amp;quot;label&amp;quot;: &amp;quot;x&amp;quot;,&lt;br /&gt;
      &amp;quot;description&amp;quot;: &amp;quot;x&amp;quot;,&lt;br /&gt;
      &amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
      &amp;quot;default&amp;quot;: &amp;quot;default value&amp;quot;,&lt;br /&gt;
      &amp;quot;required&amp;quot;: false&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also add or edit TemplateData using a [[GUI]], by pressing the following button which appears at the top of the edit page: &amp;lt;span class=&amp;quot;oo-ui-widget oo-ui-widget-enabled oo-ui-buttonElement oo-ui-buttonElement-framed oo-ui-labelElement oo-ui-buttonWidget&amp;quot; style=&amp;quot;display:inline-block;vertical-align:middle;margin-right: 0.5em;&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;oo-ui-buttonElement-button&amp;quot; style=&amp;quot;color: #757575;border: solid 1px #cdcdcd;margin: 0.1em 0;padding: 0.2em 0.8em;border-radius: 2px;transition: background 0.1s ease-in-out,color 0.1s ease-in-out,box-shadow 0.1s ease-in-out;font-weight: bold;display: inline-block;vertical-align: top;text-align: center;cursor: pointer;&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;oo-ui-labelElement-label&amp;quot; style=&amp;quot;line-height: 1.9em;&amp;quot;&amp;gt;Manage TemplateData&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;[[Wikipedia:VisualEditor/TemplateData tutorial|TemplateData tutorial]]&amp;#039;&amp;#039;&amp;#039; explains in detail how to add TemplateData information to a template.&lt;br /&gt;
&lt;br /&gt;
==Used templates==&lt;br /&gt;
{{Main|Wikipedia:TemplateData/Used templates}} &lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Wikipedia:VisualEditor/TemplateData/List]] A list of all pages with TemplateData&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:TemplateData| ]]&lt;br /&gt;
[[Category:VisualEditor]]&lt;br /&gt;
[[Category:Wikipedia template help]]&lt;/div&gt;</summary>
		<author><name>Tachyony</name></author>
	</entry>
</feed>