Wikipedia talk:Userboxes

Page contents not supported in other languages.
Source: Wikipedia, the free encyclopedia.

Need help with creating a userbox

I want to make a userbox. I have created an image for it, and I've read the pages here on creating one, but none of the templates show how you insert an image into it. I know I would have to upload the image to Wikimedia, but what is the code to have in the userbox to put in the link? Also, do I have to shrink the image down to the 45px high or just have a link and it will resize how it appears?

The instructions for creating a userbox are very confusing, but I want to learn how. Can someone give me step-by-step instructions? I want a standard size userbox with an image on the left, and the words "This user enjoys..." followed by my hobby. Thanks in advance for any help you can offer! nycdi (talk) 23:51, 24 October 2022 (UTC)[reply]

@Nycdi: I created the basics for you at your subpage User:Nycdi/userboxcreate. I put notes in that describe what you need to add, all you need to do is replace them with the content you desire. Let me know if you have any more questions. ––FormalDude (talk) 23:58, 24 October 2022 (UTC)[reply]

New request for help: I have been following the instructions to create a number of userboxes down the right hand side of my Userpage. I have inserted the Userboxtop then tried putting in a userbox template beneath it. I have done this in both Visual editor and Source. The problem is that the userboxtop seems to take all the existing content on my user page and include it in its template so there is now a new "frame" around my text on the userpage and the heading Userbox top is at the top, centred. Also, when I insert a user box underneath, it does not justify to the right margin but sits on the left. The instructions to insert userboxes do not seem to suit my userpage. It may be because there are a lot of tables on my userpage? Maybe the cursor needs to be in a certain place? Can an experienced editor who uses userboxes please start the userbox list going for me on my userpage by adding in userboxtop then one or two of the stats boxes on right side to get me started? I would like to have Active edits and Active articles on english wikipedia to start then I will look at how it was done and continue to add userboxes myself. See Wikipedia:Userboxes/Wikipedia/Stats and tools/edit count. LPascal (talk) 02:12, 15 March 2024 (UTC)[reply]

Looking at your user page history, it seems like you forgot to put {{userboxbottom}} at the end of the list. If you don't include it, it breaks the {{userboxtop}} format. I have taken the liberty of implementing the templates on your user page using the {{User active}} userbox and the {{User active edits}} userbox that you put previously. To add more userboxes, just insert them in new lines between the {{userboxtop}} and {{userboxbottom}} templates. -- KomradeKalashnikov (talk) 02:30, 15 March 2024 (UTC)[reply]

Which section of Wikipedia:Userboxes/Expertise...

Would

fall under? This one is about sports state %s

Please help: My user page is not using latest version of my userbox

My user page (at User:OneSkyWalker) is not displaying the latest version of my Userbox (at User:OneSkyWalker/Userboxes/LikesUserboxes). Please let me know what I need to change so that my user page displays the most recent version of my userbox. OneSkyWalker (talk) 19:52, 6 March 2023 (UTC)[reply]

Hmmm, never mind. I edited my user page to point to User:UBX/Medieval spherical earth size rather than User:UBX/Medieval spherical earth and my user page began displaying the latest version of User:OneSkyWalker/Userboxes/LikesUserboxes. 🙄
Having looked into this a little further, I am guessing that a
Wikipedia:Purge
might have helped? I am not certain what page needs to be purged, but I am guessing that the userbox needs to be purged rather than the page on which the userbox is published?
OneSkyWalker (talk) 20:10, 6 March 2023 (UTC)[reply]

Problem

My user page got corrupted automatically, and I don't understand why. JacktheBrown (talk) 22:40, 17 April 2024 (UTC)[reply]

Design: How to construct the box

This is just to answer questions if anyone has any about the revisions I just posted for the table of Userbox parameters. Mainly cleaned up some inconsistency in the old version, and I made an effort to ensure that it was clear which values were unit-less and which ones required a CSS length suffix. I also added some examples, to hopefully make some of it more clear.

To sum up on something that I found fairly confusing, namely, which must be unit-less (bare number) and what must have a unit (i.e px):

  • Font-size and border-width (border-s, id-s, info-s) must be a unitless number with no suffix like 'px'.
  • Cell padding (id-p) must use a CSS length value, and can not be unit-less.
  • Line-height (id-lh, info-lh) can and should be unit-less, but optionally it can use a unitized value like 14px.
  • I only listed HEX and Named Colors, I wasn't sure what other color methods are supported.

Cheers  Myndex talk   07:10, 20 April 2024 (UTC)[reply]