Template:Background/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{documentation subpage}} This template allows you to add a background for an article.")
 
mNo edit summary
Line 2: Line 2:


This template allows you to add a background for an article.
This template allows you to add a background for an article.
== Usage ==
Just insert {{MdCode|outline-oneclick|<nowiki>{{background|}}</nowiki>}} into the page and insert your image after {{MdCode|outline-oneclick|<nowiki>{{background|</nowiki>}}.
<br>'''Using Modifiers:'''<br>
Insert {{MdCode|outline-oneclick|<nowiki>modifier=|</nowiki>}} after {{MdCode|outline-oneclick|<nowiki>{{background|</nowiki>}} and replace '''"modifier"''' with the name of an existing modifier. After the equal sign, you need to write the properties corresponding to the modifier.
== Mofifiers ==
{| class="standard-table"
! Name !! Description
|-
| <code style="padding: 1px 3px; user-select: all;">opacity</code> || allows you to change the opacity of the entire block (default {{MdCode|outline|0.5}})
|-
| <code style="padding: 1px 3px; user-select: all;">background-color</code> || controls the background color of the block
|-
| <code style="padding: 1px 3px; user-select: all;">gradient-color</code> || controls the color of the bottom gradient
|-
|}
== Example ==
* [[Half-Life: Alyx Workshop Tools:ru|Инструменты Мастерской Half-Life: Alyx]]

Revision as of 07:07, 9 December 2022

Edit-copy.png
This is a documentation subpage for Template:Background.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

This template allows you to add a background for an article.

Usage

Just insert {{background|}} into the page and insert your image after {{background|.


Using Modifiers:
Insert modifier=| after {{background| and replace "modifier" with the name of an existing modifier. After the equal sign, you need to write the properties corresponding to the modifier.

Mofifiers

Name Description
opacity allows you to change the opacity of the entire block (default 0.5)
background-color controls the background color of the block
gradient-color controls the color of the bottom gradient

Example