Template:Background
Материал из Valve Developer Community
		
		
		
		
		Перейти к навигации
		Перейти к поиску
		…
Страница документации Template:Background/doc/ru не существует.
Вместо неё будет отображена документация на английском. Если после данного сообщения ничего нет, вероятней всего документации не существует даже на английском.
Вместо неё будет отображена документация на английском. Если после данного сообщения ничего нет, вероятней всего документации не существует даже на английском.
This template allows you to add a background for an article.
Usage
This template is usually written in a column. To use it, insert {{Background}} on the desired page and specify the parameters under the template name in the following format:
{{Background
| parameter 1 = value
| parameter 2 = value
}}
Parameters and Examples
| Name | Description | Example | Preview | 
|---|---|---|---|
{{{file}}}
 | 
The path to the image. | | file = Hlalyx1.jpg  | 
See Sandbox. | 
{{{opacity}}}
 | 
Allows you to change the opacity of the entire block.
 (  | 
| opacity = 0.5  | |
{{{bgcolor}}}
 | 
Controls the background color of the block.
 (  | 
| bgcolor = rgb(255,255,255)  | |
{{{gradient-color}}}
 | 
Controls the color of the bottom gradient.
 (  | 
| gradient-color = 50,50,50  | |
{{{gradient-height}}}
 | 
Controls the height of the gradient.
 (  | 
| gradient-height = 600px  | |
{{{mode}}}
 | 
Controls the position of the background image on the page.
  | 
| mode = 1  |