Template: Code Block/doc
Jump to navigation
Jump to search

This is a documentation subpage for Template:CodeBlock.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
This template allows text to be formatted as a Markdown-style block of code.
Parameters and Examples
Main
Name | Description | Example | Preview |
---|---|---|---|
{{{1}}}
|
Your code. | ||
{{{style}}}
|
The style of the template. The following styles are available:
|
Header
Name | Description | Example | Preview |
---|---|---|---|
{{{header}}}
|
Includes a block header to display the source and language name. | ||
{{{src}}}
|
The source of your code. | ||
{{{lang}}}
|
The name of the language displayed on the right side of the header. |