Template:Userbox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 8: Line 8:


box-shadow:{{#switch:{{{type}}}
box-shadow:{{#switch:{{{type}}}
| black    =
| pink    = rgb(159, 59, 86,.4)
| #default = inset 0 0px 5px rgba(0,0,0,.5)
| #default = inset 0 0px 5px rgba(0,0,0,.5)
}}">  
}}">  
Line 15: Line 13:
<div style="background:{{#switch:{{{type}}}  
<div style="background:{{#switch:{{{type}}}  
| black    = #000
| black    = #000
| pink    = rgb(159, 59, 86,.4)
| pink    = rgb(159, 59, 86,.16)
| #default = rgba(0,0,0,.16)
| #default = rgba(0,0,0,.16)
}}; display:grid; width:47px; padding:.2em; {{{id-s|}}}">
}}; display:grid; width:47px; padding:.2em; {{{id-s|}}}">
Line 23: Line 21:
<div style="background:{{#switch:{{{type}}}  
<div style="background:{{#switch:{{{type}}}  
| black    = #000
| black    = #000
| pink    = rgb(159, 59, 86,.4)
| pink    = rgb(159, 59, 86,.16)
| #default = rgba(0,0,0,.16)
| #default = rgba(0,0,0,.16)
}};display:grid; font-size:8pt; {{{info-s|}}}"><p style="align-self:center; padding-left:5px; line-height: 1.25em; ">{{{info|''info''}}}</p></div></div></onlyinclude></includeonly>
}};display:grid; font-size:8pt; {{{info-s|}}}"><p style="align-self:center; padding-left:5px; line-height: 1.25em; ">{{{info|''info''}}}</p></div></div></onlyinclude></includeonly>

Revision as of 19:12, 24 April 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)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history

This is a meta template used to aid in the creation of userbox templates.

For the list of predefined userbox templates which uses this template, see Category:Userbox Templates.

Copy and Paste

{{Userbox | info = | info-s = | id = | id-s = }}

Usage, Parameters and Examples

{{Userbox}}
Parameter Description Example Preview
No parameters Template will revert to the default valves specified within the {{#switch}} parser functions.
{{Userbox}}
id

info

{{{border-c}}} Userbox border color
| border-c = red
id

info

{{{border-w}}} Userbox border width
Note.pngNote:Unit must be specified
| border-w = 3px
id

info

{{{info}}} Infobox content
| info = Hello, World!
id

Hello, World!

{{{info-s}}} Infobox styling
| info-s = background:#222;
id

info

{{{id}}} Idbox content
| id = [[File:Earth.gif|link=]]
Earth.gif

info

{{{id-s}}} Idbox styling
| id-s = background:indigo;
id

info

{{{type}}} Predefined styling for the entire userbox
| type = black
id

info

Available Types

{{Userbox|type=black}} {{Userbox|type=pink}} {{Userbox|type=ClearBlack}}
id

info

id

info

id

info