Template:Background/doc: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (MoFifiers ._.) |
||
Line 4: | Line 4: | ||
==Usage== | ==Usage== | ||
Just insert {{ | Just insert {{Code|style=1|select=1|<nowiki>{{background|}}</nowiki>}} into the page and insert your image after {{Code|style=1|<nowiki>background|</nowiki>}} or {{Code|style=1|<nowiki>modifier|</nowiki>}}. | ||
====Using Modifiers==== | ====Using Modifiers==== | ||
Insert {{ | Insert {{Code|style=1|select=1|<nowiki>modifier=|</nowiki>}} after {{Code|style=1|select=1|<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. | ||
== | ==Modifiers== | ||
{| class=standard-table | {| class=standard-table | ||
! Name !! Description | ! Name !! Description | ||
|- | |- | ||
| {{ | | {{Code|select=1|background=|opacity}} || allows you to change the opacity of the entire block (default {{Code|style=1|user=1|0.05}}) | ||
|- | |- | ||
| {{ | | {{Code|select=1|background=|background-color}} || controls the background color of the block (default {{Code|style=1|user=1|transparent}}) | ||
|- | |- | ||
| {{ | | {{Code|select=1|background=|gradient-color}} || controls the color of the bottom gradient (default {{Code|style=1|user=1|38,38,38}}) | ||
|- | |- | ||
| {{ | | {{Code|select=1|background=|gradient-height}} || controls the height of the gradient (default {{Code|style=1|user=1|150px}}) | ||
|- | |- | ||
|} | |} |
Revision as of 09:52, 25 January 2023

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.
Modifiers
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) |