Template:Userbox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "<includeonly><onlyinclude></onlyinclude></includeonly><div style="margin:1px; display:inline-grid; grid-template-columns:1fr 6fr; box-sizing:border-box; width:240px; border-ra...")
 
m (fix)
Line 1: Line 1:
<includeonly><onlyinclude></onlyinclude></includeonly><div style="margin:1px; display:inline-grid; grid-template-columns:1fr 6fr; box-sizing:border-box; width:240px; border-radius:.25em; border: {{{border-w|1px}}} solid  
<includeonly><onlyinclude><div style="margin:1px; display:inline-grid; grid-template-columns:1fr 6fr; box-sizing:border-box; width:240px; border-radius:.25em; border: {{{border-w|1px}}} solid  


{{#switch:{{{type}}}
{{#switch:{{{type}}}
Line 22: Line 22:
<div style="background:{{#switch:{{{type}}}  
<div style="background:{{#switch:{{{type}}}  
| #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>
}};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>


{{doc}}{{ModernTodo|Documentation}}
{{doc}}{{ModernTodo|Documentation}}
This is a meta template for creating other userbox templates.
This is a meta template for creating other userbox templates.

Revision as of 12:26, 19 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

Template:ModernTodo

This is a meta template for creating other userbox templates.