Template:Infobox tutorial/error: Difference between revisions
| Robertbaxter (talk | contribs) No edit summary | Robertbaxter (talk | contribs)  No edit summary | ||
| Line 6: | Line 6: | ||
| { | { | ||
| 	"params": { | 	"params": { | ||
| 		" | 		"1": { | ||
| 			"label": "Error code", | 			"label": "Error code", | ||
| 			"description": "Unique error code displayed on the machine.", | 			"description": "Unique error code displayed on the machine.", | ||
| Line 13: | Line 13: | ||
| 			"example": "T19-208" | 			"example": "T19-208" | ||
| 		}, | 		}, | ||
| 		" | 		"2": { | ||
| 			"label": "Error name", | |||
| 			"description": "A simple name for the error.", | |||
| 			"type": "string" | |||
| 		}, | |||
| 		"3": { | |||
| 			"label": "Error message", | 			"label": "Error message", | ||
| 			"description": "The text displayed on-screen for the error.", | 			"description": "The text displayed on-screen for the error.", | ||
| Line 23: | Line 28: | ||
| } | } | ||
| </templatedata> | </templatedata> | ||
| </noinclude><includeonly><div><code style="font-size:.75rem;">{{{1}}}</code></div></includeonly> | </noinclude><includeonly><div><code style="font-size:.75rem;">{{{1}}}</code>{{#info:{{{3}}}|note}}</div></includeonly> | ||
Revision as of 22:35, 29 January 2025
This is a helper template for Template:Infobox tutorial, it takes information about an error and displays it as an item in the infobox.
TemplateData
A helper template to display errors in the infobox for a tutorial.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Error code | 1 | Unique error code displayed on the machine. 
 | String | required | 
| Error name | 2 | A simple name for the error. | String | optional | 
| Error message | 3 | The text displayed on-screen for the error. | String | optional |