en.m.wikipedia.org
Wikipedia:TemplateData
For a tutorial, see Wikipedia:TemplateData/Tutorial​.
For additional technical information, see mw:Help:TemplateData and mw:Extension:TemplateData​.
This page has a backlog that requires the attention of willing editors.
Please remove this notice if and when the backlog is cleared.
This Wikipedia page needs to be updated. Please update this Wikipedia page to reflect recent events or newly available information. Relevant discussion may be found on the talk page.
About
Help out
Research
Main research page
Other
Shortcuts
What is TemplateData?
TemplateData is the standardized description of a template, used by the default VisualEditor, the optional 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.
Editing without TemplateData
Without TemplateData, each parameter needs to be added manually when inserting a new template.
No information is provided about what the value of the parameter should be.
Editing with TemplateData
With TemplateData, a list of supported parameters (and their description) is provided for the template.
TemplateData provides context for each parameter, and makes it much easier for users to modify templates.
Adding TemplateData
Anyone can help by adding TemplateData to templates (particularly high-profile ones, such as infoboxes) so that they are easier to edit in VisualEditor. The following is a minimal example, placed on a template's documentation page:
<templatedata>{ "description": "insert description here", "params": { "first parameter": { "label": "x", "description": "x", "type": "string", "default": "default value", "required": false } }}</templatedata>
You can also add or edit TemplateData using a GUI, by pressing the following button which appears at the top of the edit page: Manage TemplateData
The TemplateData tutorial explains in detail how to add TemplateData information to a template.
Commonly used templates
List maintenance
Here is a list of the most commonly used templates. When you've added TemplateData to one, add a {{Done}} mark behind it; we'll update the list with new additions as we go. It's advisable to do a null edit on the main template page to force the system to update the database. You can also look at this list of popular templates with no TemplateData or this list of popular templates from May 2015.
Data sources
^ Before Oct 2018: Category:TemplateData documentation
Previously unfinished template entries
This list includes all high-usage templates that haven't been "Done" on the previous list, as of May 2015.
Over 100,000 uses in mainspace
Over 50,000 uses in mainspace
Over 10,000 uses in mainspace
Over 5,000 uses in mainspace
Low-use templates
Main-space templates
Following are templates which taking parameters but are used <250 times. There are thousands of templates which contain only content for transclusion and which take no parameters. These are not considered here.
1-to-10 uses
1-to-10 uses
Orphans
Following have no instances of use:
See also
Wikipedia:VisualEditor/TemplateData/List A list of all pages with TemplateData
Last edited on 16 June 2021, at 13:05
Content is available under CC BY-SA 3.0 unless otherwise noted.
Privacy policy
Terms of Use
Desktop
HomeRandomNearbyLog inSettingsDonateAbout WikipediaDisclaimers
LanguageWatchEdit