Template:Userbox/doc: Difference between revisions

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


This is a meta template used to aid in the creation of userbox templates.
This is a meta template used to aid in the creation of userbox templates.
== Copy and Paste ==
{{CodeBlock|<nowiki>{{Userbox
| info  =
| info-s =
| id    =
| id-s  =
}}</nowiki>}}


== Usage, Parameters and Examples ==
== Usage, Parameters and Examples ==

Revision as of 12:05, 24 April 2023

Edit-copy.png
This is a documentation subpage for Template:Userbox.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

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

Copy and Paste

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

Usage, Parameters and Examples

{{Userbox}}
Parameter Description Example Preview
{{{border-c}}} Userbox border color
{{Userbox|border-c=red}}
id

info

{{{border-w}}} Userbox border width
Template:ModernNote Unit must be specified
{{Userbox|border-w=3px}}
id

info

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

Hello, World!

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

info

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

info

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

info

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

info

Available Types

{{Userbox|type=black}}
id

info