Template:Background/doc: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{doc|0}} | <noinclude>{{doc|0}}</noinclude>__NOTOC__ | ||
This template allows you to add a background for an article. | This template allows you to add a background for an article. | ||
== Usage == | ==Usage== | ||
Just insert {{MdCode|outline-oneclick|<nowiki>{{background|}}</nowiki>}} into the page and insert your image after {{MdCode|outline|<nowiki>background|</nowiki>}} or {{MdCode|outline|<nowiki>modifier|</nowiki>}}. | Just insert {{MdCode|outline-oneclick|<nowiki>{{background|}}</nowiki>}} into the page and insert your image after {{MdCode|outline|<nowiki>background|</nowiki>}} or {{MdCode|outline|<nowiki>modifier|</nowiki>}}. | ||
== Mofifiers == | ====Using Modifiers==== | ||
{| class= | 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 | ! Name !! Description | ||
|- | |- | ||
| | | {{MdCode|oneclick|background=|opacity}} || allows you to change the opacity of the entire block (default {{MdCode|outline|0.05}}) | ||
|- | |- | ||
| | | {{MdCode|oneclick|background=|background-color}} || controls the background color of the block (default {{MdCode|outline|transparent}}) | ||
|- | |- | ||
| | | {{MdCode|oneclick|background=|gradient-color}} || controls the color of the bottom gradient (default {{MdCode|outline|38,38,38}}) | ||
|- | |- | ||
| | | {{MdCode|oneclick|background=|gradient-height}} || controls the height of the gradient (default {{MdCode|outline|150px}}) | ||
|- | |- | ||
|} | |} | ||
== Examples == | ==Examples== | ||
* [[User:REDESAILE|THE OWL]] | * [[User:REDESAILE|THE OWL]] | ||
* [[User_talk:REDESAILE|User talk: THE OWL]] | * [[User_talk:REDESAILE|User talk: THE OWL]] | ||
* [[Half-Life: Alyx Workshop Tools:ru|Инструменты Мастерской Half-Life: Alyx]] | * [[Half-Life: Alyx Workshop Tools:ru|Инструменты Мастерской Half-Life: Alyx]] |
Revision as of 21:37, 13 December 2022

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.
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|
or modifier|
.
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.05 )
|
background-color |
controls the background color of the block (default transparent )
|
gradient-color |
controls the color of the bottom gradient (default 38,38,38 )
|
gradient-height |
controls the height of the gradient (default 150px )
|