Template:Infobox tutorial/error: Difference between revisions
Robertbaxter (talk | contribs) No edit summary |
Robertbaxter (talk | contribs) (Undo revision 5734 by Robertbaxter (talk)) Tag: Undo |
||
(4 intermediate revisions by the same user not shown) | |||
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>{{#if:{{{2|}}}| {{{2}}}|}}{{#if:{{{3|}}}| {{#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.
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 |