Template:Code/doc

Usage
This is a semantic markup wrapper template for the HTML element . It can be used without a parameter to wrap code in a formatted block, with syntax highlighting, or with inline for a leaner presentation.

Example:

produces:
 * font-family: 'Times New Roman', serif;

Inline:

produces:
 * font-family: 'Times New Roman', serif;

and is equivalent to:
 * font-family: 'Times New Roman', serif;

TemplateData
{	"description": "A block or inline source code string.", "format": "block", "params": { "1": {			"aliases": ["code"], "label": "Code", "description": "The code to display.", "required": true, "type": "string" },		"2": {			"aliases": ["lang"], "label": "Language", "description": "The programming language of the source code. List of valid values is at: Extension:SyntaxHighlight#Supported_languages", "suggested": true, "type": "string", "default": "\ntext (if `inline=true`)\n\nbash (if `inline` is not set)\n" },		"inline": { "label": "Inline?", "description": "Whether to use inline formatting", "type": "boolean" },		"class": { "label": "Class", "description": "Applies only if `inline=true`", "type": "string" },		"id": { "label": "ID", "description": "Applies only if `inline=true`", "type": "string" },		"style": { "label": "CSS Style", "description": "Applies only if `inline=true`", "type": "string" },		"header": { "label": "Header", "description": "Applies only if `inline` is not set", "type": "line" }	} }