Template:Tutorial/error: Difference between revisions

From stencil.wiki
(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": "...")
 
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

Warning: Class subtemplate
This is a support template for the main class template Template:Tutorial—it should not invoked in other circumstances.

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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Error codeerror_code

Unique error code displayed on the machine.

Example
T19-208
Stringrequired
Error nameerror_name

A simple name for the error.

Stringoptional
Error messageerror_message

The text displayed on-screen for the error.

Stringoptional