Template:Infobox tutorial/error: Difference between revisions

From stencil.wiki
No edit summary
(Undo revision 5734 by Robertbaxter (talk))
Tag: Undo
 
(4 intermediate revisions by the same user not shown)
Line 6: Line 6:
{
{
"params": {
"params": {
"error_code": {
"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"
},
},
"error_message": {
"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>{{#if:{{{2|}}}|&nbsp;{{{2}}}|}}{{#if:{{{3|}}}|&nbsp;{{#info:{{{3}}}|note}}|}}</div></includeonly>

Latest revision as of 22:42, 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.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Error code1

Unique error code displayed on the machine.

Example
T19-208
Stringrequired
Error name2

A simple name for the error.

Stringoptional
Error message3

The text displayed on-screen for the error.

Stringoptional