Template:Background/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 3: Line 3:
This template allows you to add a background for an article.
This template allows you to add a background for an article.


==Usage==
==Parameters==
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====
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

Revision as of 07:19, 27 January 2023

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
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.

Parameters

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)

Examples