Template:Tutorial/error: Difference between revisions
Robertbaxter (talk | contribs) (Created page with "<noinclude>{{Class subtemplate}} This is a pass-through function for custom links in Template:Tutorial, it is the output for the errors in Form:Tutorial. It calls Template:Infobox tutorial/error to generate the infobox line to display the error. == TemplateData == <templatedata> { "params": { "error_code": { "label": "Error code", "description": "Unique error code displayed on the machine.", "type": "string", "required": true, "example": "...") |
Robertbaxter (talk | contribs) No edit summary |
||
Line 14: | Line 14: | ||
"required": true, | "required": true, | ||
"example": "T19-208" | "example": "T19-208" | ||
}, | |||
"error_name": { | |||
"label": "Error name", | |||
"description": "A simple name for the error.", | |||
"type": "string" | |||
}, | }, | ||
"error_message": { | "error_message": { | ||
Line 24: | Line 29: | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude><includeonly>{{Infobox tutorial/error|{{{error_code|}}}|{{{error_message|}}}}}</includeonly> | </noinclude><includeonly>{{Infobox tutorial/error|{{{error_code|}}}|{{{error_name|}}}|{{{error_message|}}}}}</includeonly> |
Latest revision as of 22:35, 29 January 2025
This is a pass-through function for custom links in Template:Tutorial, it is the output for the errors in Form:Tutorial.
It calls Template:Infobox tutorial/error to generate the infobox line to display the error.
TemplateData
Support function for the "Tutorial" class to pass through error info.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Error code | error_code | Unique error code displayed on the machine.
| String | required |
Error name | error_name | A simple name for the error. | String | optional |
Error message | error_message | The text displayed on-screen for the error. | String | optional |