Template:Userbox/doc: Difference between revisions

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


== Usage, Parameters and Examples ==
== Usage, Parameters and Examples ==
{{CodeBlock|{{((}}Userbox{{))}}}}
{{CodeBlock|<nowiki>{{Userbox}}</nowiki>}}
{|class="standard-table" | style="width:100%; text-align:center;"
{|class="standard-table" | style="width:100%; text-align:center;"
|-
|-
Line 39: Line 39:
| {{Code|{{param|id-s}}}}
| {{Code|{{param|id-s}}}}
| Idbox styling
| Idbox styling
| {{CodeBlock|{{((}}Userbox&#124;{{Tint|color=yellow|id-s}}{{=}}{{Tint|color=green|background:black;}}{{))}}}}
| {{CodeBlock|{{((}}Userbox&#124;{{Tint|color=yellow|id-s}}{{=}}{{Tint|color=green|background:indigo;}}{{))}}}}
| {{Userbox|id-s=background:black;}}
| {{Userbox|id-s=background:indigo;}}
|-
|-
| {{Code|{{param|type}}}}
| {{Code|{{param|type}}}}
| Predefined styling for the entire userbox
| Predefined styling for the entire userbox
| {{CodeBlock|{{((}}Userbox&#124;{{Tint|color=yellow|type}}{{=}}{{Tint|color=green|N/A}}{{))}}}}
| {{CodeBlock|{{((}}Userbox&#124;{{Tint|color=yellow|type}}{{=}}{{Tint|color=green|deepdark}}{{))}}}}
| No preview avaliable
| {{Userbox|type=deepdark}}
|}
|}


== Available Types ==
{{CodeBlock|<nowiki>{{Userbox|type=deepdark}}</nowiki>}}
{{Capsule|{{userbox|type=deepdark}}}}
[[Category:Templates]]
[[Category:Templates]]

Revision as of 12:00, 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.

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=deepdark}}
id

info

Available Types

{{Userbox|type=deepdark}}
id

info