User:Willscrlt/UBX/Userbox-2
From Wikipedia, the free encyclopedia
id1 | info | id2 |
[edit] Purpose
{{User:Willscrlt/UBX/Userbox-2}} — makes a userbox for users to provide information about themselves on their user page. This version has two ID boxes and a center Info area.
This template was copied from the Userbox-2 template available on the English Wikipedia, which may have more usage examples and may have been changed since it was copied.
This is version 1.1.3 (Userbox-2) of my custom template. The most current version is available from my English Wikipedia account.
[edit] Usage
[edit] Compact
Using the compact form, you do not use labels; simply include the values in the proper order. All attributes are optional, but you may not skip any attributes prior to the one you want to specify. It is the order of the attributes that is important in this form. Skipping attributes messes up the order and breaks the template.
{{User:Willscrlt/UBX/Userbox-2 | side-box 1 color | main box color | ID/icon 1 | message | ID/icon 2 | border color (defaults to same as side-box 1) | side-box 2 color (defaults to same as side-box 1) }}
[edit] Extended
Using the extended form gives you much more control, but you must use labels as shown. All attributes are optional and may appear in any order.
{{User:Willscrlt/UBX/Userbox-2 |float = |border-c = border color |border-s = border width |id1 = side-box 1 content |id1-c = side-box 1 colour |id1-s = side-box 1 font size |id1-fc = side-box 1 font color |id1-op = side-box 1 CSS properties |info = main box content |info-c = main box colour |info-s = main box font size |info-fc = main box font color |info-lh = main box line height |info-p = main box padding |info-op = main box CSS properties |id2 = side-box 2 content |id2-c = side-box 2 colour |id2-s = side-box 2 font size |id2-fc = side-box 2 font color |id2-op = side-box 2 CSS properties }}
[edit] Notes
- If border-c is not specified, id1-c will be used
- Equal signs ("=") break the compact form. You will have to use the extended form if you include an equal sign.
- Pipes ("|") characters may break both forms. You may be able to use the {{!}} template or a related template in place of the pipe.
[edit] Related templates
- My versions of the templates available here at the English Wikipedia
- User:Willscrlt/UBX/Userbox — One ID box on the left and a larger Info area on the right
- User:Willscrlt/UBX/Userbox-r — The reverse layout of previous template
- User:Willscrlt/UBX/Userbox-2 — Two ID boxes with a larger Info area centered between
- Local versions (if any) of the templates available here at the English Wikipedia
- Category:User namespace templates
- Category:Userboxes
- Wikipedia:Userbox
- Template:Userbox
- Template:Userbox-r
- Template:Userbox-2
- Original versions available on the English Wikipedia which include more examples