Difference between revisions of "Template:Userbox"
(Update from sandbox) |
|||
| (9 intermediate revisions by 5 users not shown) | |||
| Line 10: | Line 10: | ||
|user = {{#if:{{{usercategory|}}}|[[Category:{{{usercategory}}}]]}}{{#if:{{{usercategory2|}}}|[[Category:{{{usercategory2}}}]]}}{{#if:{{{usercategory3|}}}|[[Category:{{{usercategory3}}}]]}} | |user = {{#if:{{{usercategory|}}}|[[Category:{{{usercategory}}}]]}}{{#if:{{{usercategory2|}}}|[[Category:{{{usercategory2}}}]]}}{{#if:{{{usercategory3|}}}|[[Category:{{{usercategory3}}}]]}} | ||
|template = {{#if:{{{usercategory|}}}|[[Category:{{{usercategory}}}| {{BASEPAGENAME}}]]}}{{#if:{{{usercategory2|}}}|[[Category:{{{usercategory2}}}| {{BASEPAGENAME}}]]}}{{#if:{{{usercategory3|}}}|[[Category:{{{usercategory3}}}| {{BASEPAGENAME}}]]}} | |template = {{#if:{{{usercategory|}}}|[[Category:{{{usercategory}}}| {{BASEPAGENAME}}]]}}{{#if:{{{usercategory2|}}}|[[Category:{{{usercategory2}}}| {{BASEPAGENAME}}]]}}{{#if:{{{usercategory3|}}}|[[Category:{{{usercategory3}}}| {{BASEPAGENAME}}]]}} | ||
| β | }}}}<noinclude> | + | }}}}<noinclude>[[Category:Templates]] |
| β | |||
</noinclude> | </noinclude> | ||
| + | <noinclude><br><br><br><br><br> To implement this template, use this format: | ||
| + | |||
| + | <nowiki>{{Userbox | id = id text| info = info text }}</nowiki> | ||
| + | |||
| + | <br>Here is a list of some commonly used parameters for this template and their functions: | ||
| + | *border-c - Determines the color of the userbox's border. Put a hex color value here to change the color of the border. If this isn't included, it defaults to grey. | ||
| + | *border-s - Determines the width of the border in pixels. A higher value means a thicker border, while a lower value means a thinner one. If this isn't included, it defaults to 1. | ||
| + | *info-s - Determines the size of the info text in points. Increase this value for a bigger font size, and decrease it for a smaller font size. If this isn't included, it defaults to your system's default font size. | ||
| + | *id-s - Determines the size of the id text in points. Increase this value or a bigger font size, decrease it for a smaller one. If this isn't | ||
| + | *id-c - The background color for the 'id' section of the userbox. Change this value for a different background color. If this isn't included, it defaults to a darker grey. | ||
| + | *info-c - The background color for the 'info' section of the user box. Change this value for a different background color. If this isn't included, it defaults to an even darker grey. | ||
| + | *Float - Where the userbox will go in relation to the page. Can be left, center, or right. If this isn't included, it defaults to left. | ||
| + | *Align - Determines how the info text is aligned. Can be left, center, or right. If this isn't included, it defaults to left.</noinclude> | ||
Latest revision as of 20:39, 18 February 2026
| id | info |
|---|
To implement this template, use this format:
{{Userbox | id = id text| info = info text }}
Here is a list of some commonly used parameters for this template and their functions:
- border-c - Determines the color of the userbox's border. Put a hex color value here to change the color of the border. If this isn't included, it defaults to grey.
- border-s - Determines the width of the border in pixels. A higher value means a thicker border, while a lower value means a thinner one. If this isn't included, it defaults to 1.
- info-s - Determines the size of the info text in points. Increase this value for a bigger font size, and decrease it for a smaller font size. If this isn't included, it defaults to your system's default font size.
- id-s - Determines the size of the id text in points. Increase this value or a bigger font size, decrease it for a smaller one. If this isn't
- id-c - The background color for the 'id' section of the userbox. Change this value for a different background color. If this isn't included, it defaults to a darker grey.
- info-c - The background color for the 'info' section of the user box. Change this value for a different background color. If this isn't included, it defaults to an even darker grey.
- Float - Where the userbox will go in relation to the page. Can be left, center, or right. If this isn't included, it defaults to left.
- Align - Determines how the info text is aligned. Can be left, center, or right. If this isn't included, it defaults to left.
