Template talk:Userbox

Active discussions

WikiProject Userboxes  
Template:Userbox is part of WikiProject Userboxes. This means that the WikiProject has identified it as part of the userboxes system. WikiProject Userboxes itself is an attempt to improve, grow and standardize Wikipedia's articles and templates related to the userbox system, used on many users' pages. We need all your help, so join in today!

Adding an ImageEdit

I'm finding the instructions for creating a userbox overly complicated. I just want a template to copy and add in my text and an image to create a userbox, but I can't find how to add an image. I'm tired of clicking on page after page on Userboxes - can anyone just tell me how or point me where I can find explicit directions? Thanks in advance! nycdi (talk) 00:17, 4 December 2017 (UTC)

The simplest way to create a userbox is to go to a userbox gallery such as Wikipedia:Userboxes/Life and find a userbox similar to what you want. Copy the userbox you like onto your user page and modify it with your image and text. I'll be glad to help if you want. Yours aye,  Buaidh  19:59, 25 January 2018 (UTC)

Lua problemsEdit

The new Lua version of Template:Userbox is producing one-pixel-wide white strips on many userboxes that appear after a refresh. Please see Wikipedia:Userboxes/Life for examples. Can this be fixed or do we need to revert? Yours aye,  Buaidh  20:08, 25 January 2018 (UTC)

This may be a browser specific problem. I'm using Firefox.  Buaidh  20:13, 25 January 2018 (UTC)

@Buaidh:. You are going to have to be more specific. Can you make a screenshot and put that somewhere online ? —TheDJ (talkcontribs) 21:04, 25 January 2018 (UTC)
After further examination, I believe this is entirely a browser problem. The white strips appear when Firefox displays at a scale greater than 100%. At 100% there are no problems. There appears to be no problem with Lua. I apologize for the false alarm. THERE ARE NO BALLISTIC MISSILES HEADED INBOUND TO HAWAII. Yours aye,  Buaidh  21:56, 25 January 2018 (UTC)

This is a well known and very old bug in FF in when using tables. If u google a bit u can likely quickly find the ticket. Its a shame that Firefix still has not been able to fix it after all those years. —TheDJ (talkcontribs) 19:33, 26 January 2018 (UTC)

Safari problems with UserboxEdit

For some reason, the Safari (web browser) in iOS will only center info text if info-a=center and info has more than one line of text. If info has only a single line of text, Safari displays the text left justified even though info-a=center.

Also, Safari will not override the default id width of 45 pixels if an id image is wider than 45 pixels.

Please see Template:Userbox test. The three userboxes display identically in Firefox, Google Chrome, and Microsoft Edge, but very differently in Safari on my iphone. I don't know if Safari performs the same on an Apple computer or on a different operating system. Does anyone understand why this is happening? Thanks for your help,  Buaidh  talk contribs 20:50, 4 February 2019 (UTC)

What does Safari show for a basic table? Is the below "Test" centered? -- WOSlinker (talk) 17:08, 5 February 2019 (UTC)
WOSlinker, it's a side effect of the mobile version of the website having code that allows tables to overscroll the viewport on mobile. Short lines don't need full width of the cell and thus don't, causing them to be center aligned within the width of a smaller box than the background of the table would have you suspect.
Would best be solved if we would stop using tables for userboxes. —TheDJ (talkcontribs) 20:50, 5 February 2019 (UTC)
Test
Thanks DJ. These are weird features of mobile Safari, but probably not worth a work around. I don't know how we would eliminate tables from userboxes. Yours aye,  Buaidh  talk contribs 01:44, 6 February 2019 (UTC)
BTW – The 6,080 citizens of Collectivité d'Outre-mer de Saint-Pierre-et-Miquelon have a wonderful flag.  Buaidh  talk contribs 01:52, 6 February 2019 (UTC)

"Justify" meaningEdit

What does "Justify" mean in both id-a and info-a parameters? Wei4Green · 唯绿远大 16:48, 18 October 2019 (UTC)

Just try it and see. -- WOSlinker (talk) 18:13, 18 October 2019 (UTC)
Justify
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Dolor sed viverra ipsum nunc aliquet bibendum enim.
Blank
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Dolor sed viverra ipsum nunc aliquet bibendum enim.
In case that's less than clear, it spreads the words out so that they reach the margin or border on both sides. Left justify has words aligned vertically to the left, right justify to the right. Justify on its own does both sides, as you can see in the examples. Captainllama (talk) 21:19, 18 October 2019 (UTC)

Did I do this correctly?Edit

I just created my first userbox at Template:Userbox/Bob Kingsley, thinking that I was following the directions at Template:Userbox, but now I notice that almost all of the userboxes listed in the userbox galleries are user subpages. I think I may have goofed up, but I just wanted to check before I moved anything. Thanks. Larry Hockett (Talk) 04:41, 15 August 2020 (UTC)

Larry Hockett, yes, moving it to a subpage, like User:Larry Hockett/Bob Kingsley is recommended per WP:UBXNS. —⁠andrybak (talk) 14:50, 15 August 2020 (UTC)
Thanks for your prompt message, Andrybak. Larry Hockett (Talk) 21:33, 15 August 2020 (UTC)

Options to omit user categories on some pagesEdit

Many users place userboxes on a subpage and transclude them on the main userpage, e.g. User:Excirial/UserBoxes and User:Excirial. This causes both pages to be added to user categories like Category:Wikipedians in the Article Rescue Squadron. There are ways to avoid it like {{User Article Rescue Squadron|nocat=<noinclude>yes</noinclude>}}, but almost nobody does that. I suggest two ways to make it easier:

  1. A new parameter value like |nocat=subpage to not place categories on subpages but still do it on rootpages.
  2. A new template like {{No user categories}} placed anywhere on a page instructs {{Userbox}} to never add categories to the page. Similar to how cs1|2 templates detect {{Use mdy dates}} and use it to control their output.

PrimeHunter (talk) 13:41, 7 April 2021 (UTC)

Return to "Userbox" page.