<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="hr">
	<id>https://croatianschoolsydney.com/index.php?action=history&amp;feed=atom&amp;title=Wikipedija%3ATemplateData</id>
	<title>Wikipedija:TemplateData - Povijest promjena</title>
	<link rel="self" type="application/atom+xml" href="https://croatianschoolsydney.com/index.php?action=history&amp;feed=atom&amp;title=Wikipedija%3ATemplateData"/>
	<link rel="alternate" type="text/html" href="https://croatianschoolsydney.com/index.php?title=Wikipedija:TemplateData&amp;action=history"/>
	<updated>2026-07-13T20:30:07Z</updated>
	<subtitle>Povijest promjena ove stranice na wikiju</subtitle>
	<generator>MediaWiki 1.36.2</generator>
	<entry>
		<id>https://croatianschoolsydney.com/index.php?title=Wikipedija:TemplateData&amp;diff=268012&amp;oldid=prev</id>
		<title>WikiSysop: Bot: Automatski unos stranica</title>
		<link rel="alternate" type="text/html" href="https://croatianschoolsydney.com/index.php?title=Wikipedija:TemplateData&amp;diff=268012&amp;oldid=prev"/>
		<updated>2021-10-29T06:04:41Z</updated>

		<summary type="html">&lt;p&gt;Bot: Automatski unos stranica&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nova stranica&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!--'''Wikipedija:TemplateData'''--&amp;gt;{{prijevod-eng}}&lt;br /&gt;
&amp;lt;!-- {{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;
{{Backlog}}&lt;br /&gt;
{{VisualEditor Portal}}&lt;br /&gt;
{{stack|{{Shortcuts|WP:VE/TD|WP:TDATA}}}}&lt;br /&gt;
 --&amp;gt;&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 [[Wikipedia:VisualEditor|VisualEditor]], the [[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'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'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 '''[[Wikipedia:VisualEditor/TemplateData tutorial|TemplateData tutorial]]''' explains in detail how to add TemplateData information to a template.&lt;br /&gt;
&lt;br /&gt;
==Commonly used templates==&lt;br /&gt;
&lt;br /&gt;
===List maintenance===&lt;br /&gt;
Here is a list of the most commonly used templates. When you've added TemplateData to one, add a {{tl|Done}} mark behind it; we'll update the list with new additions as we go. It's advisable to do a [[WP:NULL|null edit]] on the main template page to force the system to update the database.  You can also look at [https://tools.wmflabs.org/bawolff/templatedata.htm this list of popular templates with no TemplateData] or [https://phabricator.wikimedia.org/P632 this list of popular templates] from May 2015.&lt;br /&gt;
&lt;br /&gt;
*'''For completed items''', consult the bot-generated logging page [[Wikipedia:VisualEditor/TemplateData/List]].&lt;br /&gt;
*'''If you complete an item''', add &amp;lt;nowiki&amp;gt;{{Done}}&amp;lt;/nowiki&amp;gt; after the entry until the item appears on [[Wikipedia:VisualEditor/TemplateData/List|the logging page]].&lt;br /&gt;
*'''If you partly complete an item''', add &amp;lt;nowiki&amp;gt;{{Partly done|&amp;lt;explain what still needs to be done&amp;gt;}}&amp;lt;/nowiki&amp;gt; to the entry and do not remove it from this list until it is completed. Partly done items will appear on [[Wikipedia:VisualEditor/TemplateData/List|the logging page]] as if they were completed.&lt;br /&gt;
*'''Templates not suitable for TemplateData or with technical problems''': add &amp;lt;nowiki&amp;gt;{{Not done|&amp;lt;briefly explain why TemplateData couldn't be added&amp;gt;}} &amp;lt;/nowiki&amp;gt; after the entry.&lt;br /&gt;
&lt;br /&gt;
====Data sources====&lt;br /&gt;
*Raw data for the initial template usage statistics are stored on Phabricator in [https://phabricator.wikimedia.org/P632 this list].&lt;br /&gt;
*A formatted, partially cleaned up version of this data with usage count values is stored at [[Wikipedia:TemplateData/Template usage count]].&lt;br /&gt;
*Previous lists, based on data of 2013, have been archived at [[Wikipedia:TemplateData/Archive1]], including lists of meta-templates and templates in other namespaces.&lt;br /&gt;
*This list depends on [[:Category:TemplateData documentation]] for filtering and may include a limited number of already &amp;quot;logged&amp;quot; Template Data additions. Those templates just need a &amp;lt;!-- {{tl|TemplateDataHeader}} --&amp;gt; in their TemplateData section and should be marked as &amp;quot;Done&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Wikipedia:VisualEditor/TemplateData/List]] A list of all pages with TemplateData&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
</feed>