User:Makyen/sandbox/TemplateData/Example

Below is an example TemplateData JSON format data structure.

The API output can be obtained:
 * In HTML format: https://www.mediawiki.org/w/api.php?action=templatedata&titles=User:Makyen/sandbox/TemplateData/Example&format=jsonfm
 * As delivered by the API: https://www.mediawiki.org/w/api.php?action=templatedata&titles=User:Makyen/sandbox/TemplateData/Example

{	"description": "Label unsigned comments in a conversation.", "params": { "user": { "label": "Username", "type": "wiki-user-name", "required": true, "description": "User name of person who forgot to sign their comment.", "aliases": ["1"] },		"date": { "label": "Date", "description": { "en": "Timestamp of when the comment was posted, in YYYY-MM-DD format." },			"aliases": ["2"] },		"year": { "label": "Year", "type": "number" },		"month": { "label": "Month", "inherits": "year" },		"day": { "label": "Day", "inherits": "year" },		"comment": { "required": false }	},	"sets": [ {			"label": "Date", "params": ["year", "month", "day"] }	] }