Template:Background
来自Valve Developer Community
跳转到导航
跳转到搜索

文档页面 Template:Background/doc/zh 不存在。
模板将改为显示英文文档。如果此消息后没有任何内容,则很可能该文档甚至不存在英文版本。
模板将改为显示英文文档。如果此消息后没有任何内容,则很可能该文档甚至不存在英文版本。
This template allows you to add a background for an article.
Parameters and Examples
Name | Description | Example | Preview |
---|---|---|---|
{{{file}}} | The path to the image. | {{Background
| file = Hlalyx1.jpg
}} |
Preview is not possible |
{{{opacity}}} | Allows you to change the opacity of the entire block.
(0.05 by default) |
{{Background|opacity=0.5}} |
Preview is not possible |
{{{bgcolor}}} | Controls the background color of the block.
(transparent by default) |
{{Background|bgcolor=rgb(255,255,255)}} |
Preview is not possible |
{{{gradient-color}}} | Controls the color of the bottom gradient.
(38,38,38 by default) |
{{Background|gradient-color=50,50,50}} |
Preview is not possible |
{{{gradient-height}}} | Controls the height of the gradient.
(150px by default) |
{{Background|gradient-height=600px}} |
Preview is not possible |
{{{mode}}} | Controls the position of the background image on the page.
|
{{Background|mode=1}} |
Preview is not possible |