Template:Userbox/doc: Difference between revisions
Jump to navigation
Jump to search
Mailmanmicky (talk | contribs) (Created page with "{{Doc/subpage}} This is a meta template used to aid in the creation of userbox templates. == Usage, Parameters and Examples == {{CodeBlock|{{((}}Userbox{{))}}}} {|class="sta...") |
|||
(26 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{Doc/subpage}} | {{Doc/subpage}} | ||
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 == | |||
{{CodeBlock|<nowiki>{{Userbox | |||
| info = | |||
| info-s = | |||
| id = | |||
| id-s = | |||
}}</nowiki>}} | |||
== Usage, Parameters and Examples == | == Usage, Parameters and Examples == | ||
{{CodeBlock|{{ | {{CodeBlock|<nowiki>{{Userbox}}</nowiki>}} | ||
{|class="standard-table" | style="width:100%; text-align:center;" | {|class="standard-table" | style="width:100%; text-align:center;" | ||
|- | |- | ||
! style="width:15%" | | ! style="width:15%" | {{Dictionary/common|Param}} | ||
! | ! {{Dictionary/common|Desc}} | ||
! Example | ! {{Dictionary/common|Example}} | ||
! style="width:20%" | Preview | ! style="width:20%" | {{Dictionary/common|Preview}} | ||
|- | |||
| No parameters | |||
| Template will revert to the default valves specified within the {{code|<nowiki>{{#switch}}</nowiki>}} parser functions. | |||
| {{CodeBlock|margin=5px|<nowiki>{{Userbox}}</nowiki>}} | |||
| {{Userbox}} | |||
|- | |- | ||
| {{Code|{{param|border-c}}}} | | {{Code|{{param|border-c}}}} | ||
| Userbox border color | | Userbox border color | ||
| {{CodeBlock| | | {{CodeBlock|margin=5px|<nowiki>| border-c = red</nowiki>}} | ||
| {{Userbox|border-c=red}} | | {{Userbox|border-c=red}} | ||
|- | |- | ||
| {{Code|{{param|border-w}}}} | | {{Code|{{param|border-w}}}} | ||
| Userbox border width <br>{{ | | Userbox border width <br>{{Note|Unit must be specified}} | ||
| {{CodeBlock| | | {{CodeBlock|margin=5px|<nowiki>| border-w = 3px</nowiki>}} | ||
| {{Userbox|border-w=3px}} | | {{Userbox|border-w=3px}} | ||
|- | |- | ||
| {{Code|{{param|info}}}} | | {{Code|{{param|info}}}} | ||
| Infobox content | | Infobox content | ||
| {{CodeBlock| | | {{CodeBlock|margin=5px|<nowiki>| info = Hello, World!</nowiki>}} | ||
| {{Userbox|info=Hello, World!}} | | {{Userbox|info=Hello, World!}} | ||
|- | |- | ||
| {{Code|{{param|info-s}}}} | | {{Code|{{param|info-s}}}} | ||
| Infobox styling | | Infobox styling | ||
| {{CodeBlock| | | {{CodeBlock|margin=5px|<nowiki>| info-s = background:#222;</nowiki>}} | ||
| {{Userbox|info-s=background:#222;}} | | {{Userbox|info-s=background:#222;}} | ||
|- | |- | ||
| {{Code|{{param|id}}}} | | {{Code|{{param|id}}}} | ||
| Idbox content | | Idbox content | ||
| {{CodeBlock| | | {{CodeBlock|margin=5px|<nowiki>| id = [[File:Earth.gif|link=]]</nowiki>}} | ||
| {{Userbox|id=[[File:Earth.gif|link=]]}} | | {{Userbox|id=[[File:Earth.gif|link=]]}} | ||
|- | |- | ||
| {{Code|{{param|id-s}}}} | | {{Code|{{param|id-s}}}} | ||
| Idbox styling | | Idbox styling | ||
| {{CodeBlock| | | {{CodeBlock|margin=5px|<nowiki>| id-s = background:indigo;</nowiki>}} | ||
| {{Userbox|id-s=background: | | {{Userbox|id-s=background:indigo;}} | ||
|- | |- | ||
| {{Code|{{param|type}}}} | | {{Code|{{param|type}}}} | ||
| Predefined styling for the entire userbox | | Predefined styling for the entire userbox | ||
| {{CodeBlock| | | {{CodeBlock|margin=5px|<nowiki>| type = black</nowiki>}} | ||
| {{Userbox|type=black}} | |||
|} | |} | ||
[[Category:Templates]] | == Available Types == | ||
{{CodeBlock|<nowiki>{{Userbox|type=black}} {{Userbox|type=pink}} {{Userbox|type=ClearBlack}}</nowiki>}} | |||
{{Capsule|{{userbox|type=black}} {{Userbox|type=pink}}{{Userbox|type=ClearBlack}}}}</div> | |||
<includeonly>[[Category:Templates]][[Category:Metatemplates]][[Category:Userbox Templates]]</includeonly> |
Latest revision as of 13:30, 17 November 2023

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.
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.
For the list of predefined userbox templates which uses this template, see Category:Userbox Templates.
Copy and Paste
Usage, Parameters and Examples
Parameter | Description | Example | Preview |
---|---|---|---|
No parameters | Template will revert to the default valves specified within the {{#switch}} parser functions. |
id
info | |
{{{border-c}}} | Userbox border color |
id
info | |
{{{border-w}}} | Userbox border width ![]() |
id
info | |
{{{info}}} | Infobox content |
id
Hello, World! | |
{{{info-s}}} | Infobox styling |
id
info | |
{{{id}}} | Idbox content | ![]() info | |
{{{id-s}}} | Idbox styling |
id
info | |
{{{type}}} | Predefined styling for the entire userbox |
id
info |
Available Types
id
info
id
info
id
info