Template:CodeBlock/doc
		
		
		
		
		
		Перейти к навигации
		Перейти к поиску
		 
 Примечание:The header is enabled automatically when you enter one of the following parameters.
Примечание:The header is enabled automatically when you enter one of the following parameters.
		
	

Это подстраница документации для Template:CodeBlock. 
Не забудьте очистить буфер основной страницы при создании или редактировании этой подстраницы.
Не забудьте очистить буфер основной страницы при создании или редактировании этой подстраницы.
This template formats the text as a block of code.
Parameters and Examples
Main
The main parameters are described below.
| Name | Description | Example | Preview | 
|---|---|---|---|
| {{{1}}} | Your code. It is recommended to wrap the template content with the <nowiki>tag. | ||
| {{{margin}}} | Controls margins. Goes clockwise. | ||
| {{{style}}} | The style of the template. The following styles are available: 
 | ||
| {{{height}}} | Controls the height of the block. | ||
| {{{width}}} | Controls the width of the block. | ||
| {{{lines}}} | Manual: Numbered lines. | ||
| {{{start}}} | What number to start numbering from (default value is 1). The value can be negative. | ||
| {{{highlight}}} | Adds syntax highlighting for the language specified.  Баг:Condenses code into one line.  [нужно проверить в ?] | 
Header
The parameters for adding a header with the code source and the name of the programming language are described below.
 Примечание:The header is enabled automatically when you enter one of the following parameters.
Примечание:The header is enabled automatically when you enter one of the following parameters.| Name | Description | Example | Preview | 
|---|---|---|---|
| {{{src}}} | The source of your code. | ||
| {{{lang}}} | The name of the language displayed on the right side of the header. | 
See also
- {{Code}}






















