Template:Userbox/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 31: Line 31:
|-
|-
| {{Code|{{param|border-w}}}}
| {{Code|{{param|border-w}}}}
| Userbox border width <br>{{Note|Unit must be specified}}
| Userbox border width <br>{{Note}} Unit must be specified
| {{CodeBlock|margin=5px|<nowiki>| border-w = 3px</nowiki>}}
| {{CodeBlock|margin=5px|<nowiki>| border-w = 3px</nowiki>}}
| {{Userbox|border-w=3px}}
| {{Userbox|border-w=3px}}

Revision as of 23:28, 28 May 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
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}}
id

info

id

info