Template:Code
{{{1}}}A block or inline source code string.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Language | lang 2 | The programming language of the source code. List of valid values is at: Extension:SyntaxHighlight#Supported_languages
| String | suggested |
| Inline? | inline | Whether to use inline formatting
| String | optional |
| Class | class | Applies only if `inline=true` | String | optional |
| ID | id | Applies only if `inline=true` | String | optional |
| CSS Style | style | Applies only if `inline=true` | String | optional |
| Header | header | Applies only if `inline` is not set | Line | optional |
| Code | 1 code | The code to display. | String | required |
