Template:Userbox/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 13: Line 13:
== Usage, Parameters and Examples ==
== Usage, Parameters and Examples ==
{{CodeBlock|<nowiki>{{Userbox}}</nowiki>}}
{{CodeBlock|<nowiki>{{Userbox}}</nowiki>}}
{|class="standard-table" | style="width:auto; text-align:center;"
{|class="standard-table" | style="width:auto;"
|-
|-
! style="width:15%" | {{Dictionary/common|Param}}
! style="width:15%" | {{Dictionary/common|Param}}

Revision as of 09:48, 15 June 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

Template:Userbox
Logo-template.png
Summary
Aids in the creation of userbox templates
Type
Metatemplate
Contributors
N/A
Creation date
25/04/2022
(25 April 2022)
Notes
N/A
Subpages
Documentation
Preload
N/A
Sandbox
N/A
Strings
N/A
Testcases
N/A
Other
N/A
Revision information
Latest editor
Mailmanmicky
Last edited
15/06/2023
20230615094839
Revision size
2400 bytes
2.4 kilobytes
0.0024 megabytes
Technical information
Page identifier
52343
Contains translations
No
Uses parser functions?
Yes
Uses variables?
No