Template talk:User info

From Meta, a Wikimedia project coordination wiki

This template is based on <https://wikimediafoundation.org/w/index.php?title=Template:User_info&action=history>. --MZMcBride (talk) 00:01, 8 March 2012 (UTC)[reply]

Disclaimer[edit]

I noticed the disclaimer for the version here is different than the one on English Wikipedia. Which one should we be standardizing on? (My personal preference goes to the version on EN.) Steven Walling (WMF) • talk 02:23, 28 March 2012 (UTC)[reply]

Showing more context[edit]

Where people are a part of a Team, I'd like their userpage reflect this.

The X's co-workers should be listed, and it should be indicated who is supervising X's work. --Gryllida 00:20, 4 September 2014 (UTC)[reply]

That's not problem of template, but problem of a content on the userpage, imo. Revicomplaint? 03:56, 4 September 2014 (UTC)[reply]

Languages[edit]

The documentation mentions entering languages using the {{#babel}}-format but doesn't make it clear where on the page this should be added (in order to not break layouting).

In case there isn't a readily available solution I would say that we simply add an optional div for languages. /André Costa (WMSE) (talk) 11:23, 25 August 2016 (UTC)[reply]

I've tweaked the documentation to recommend placing them in the "contact me" section, which is normally where people place them. Quiddity (WMF) (talk) 15:36, 12 April 2018 (UTC)[reply]

Pronouns[edit]

I'd like to add a "pronouns" field, so folks who have preferred pronouns (or their allies) can specify those. Any one have any advice or comments, eg on where these should appear? CAnanian (WMF) (talk) 22:00, 13 May 2018 (UTC)[reply]

@CAnanian (WMF): I think it would make the most sense to have that within the "contact me" section, which most people fill out with short bulletpoints (as you have done), and is also contextually appropriate. Quiddity (WMF) (talk) 20:09, 2 July 2018 (UTC)[reply]

Former staff or affiliate[edit]

Would it be a good idea to add a parameter to this template to indicate that the user is a former WMF or affiliate staff? Today we have {{Former staff}} and {{Former affiliate staff}} (that I just created), but a parameter that would add some info about the user being inactive and where to find more info would be a cleaner and better solution. /Axel Pettersson (WMSE) (talk) 11:44, 2 July 2018 (UTC)[reply]

@Axel Pettersson (WMSE): There is a | former = true parameter, which seems to: (1) add the {{Former staff}} template, and (2) remove the page from Category:Wikimedia Foundation staff. (I've added that to the docs now.)
The complexity of this template is just a bit beyond my comfort-zone, so I cannot advise on how easy it would be to add new parameters for former affiliate staff. But it seems like a reasonable idea. :) Quiddity (WMF) (talk) 19:45, 2 July 2018 (UTC)[reply]
Thanks Quiddity (WMF), I'm on your side regarding the complexity. My approach is to try, mess things up and then ask André to clean up after me. André rocks! I'll see what we André can come up with. /Axel Pettersson (WMSE) (talk) 06:39, 3 July 2018 (UTC)[reply]
Attempted some fix at {{User info/sandbox}}, miserably failed. — regards, Revi 08:36, 3 July 2018 (UTC)[reply]
Actually Quiddity (WMF), feature of |former=whatevertexthereblahblahduhfixmebaby is just 1. 2 is done by the {{Former staff}}. — regards, Revi 08:38, 3 July 2018 (UTC)[reply]
@-revi: Oh? IIUC, the {{Former staff}} template is adding the "Former WMF staff" category, but the |former = foo parameter in this template is removing the "WMF staff" category (if it was added via the |organization parameter). At least I think that's what is going on. :-) Quiddity (WMF) (talk) 15:35, 3 July 2018 (UTC)[reply]
Oh, yeah, near the T:9, indeed. — regards, Revi 16:03, 3 July 2018 (UTC)[reply]

RTL[edit]

I think that the WMF/legal disclaimer blurb needs to have lang="en" dir="ltr" class="mw-content-ltr" added (else global user pages display strangely on RTL wikis), but I'm not sure how to do that and not have it apply to translated content. Does anyone else know how to fix this? Whatamidoing (WMF) (talk) 22:44, 12 November 2018 (UTC)[reply]

i18n problem[edit]

If you look at, for example, User:Katherine (WMF), you'll notice the user page is translated to many languages, including Spanish. However, if you visit the user page from a Spanish project, such as es:User:Katherine (WMF), the English version is displayed. I think the problem stems from the fact that Template:CURRENTCONTENTLANGUAGE outputs "en" no matter on what project the page is transcluded. Sophivorus (talk) 19:25, 9 May 2020 (UTC)[reply]

@Sophivorus: Hmmm, I remember/found this possibly-related thread from 2015 at mw:Help talk:Extension:GlobalUserPage#Changing default page to another. Does that help? (I don't quite understand the technical aspects well enough to poke at it.) Quiddity (WMF) (talk) 18:19, 11 May 2020 (UTC)[reply]
{{int:lang}} certainly works on my user page (it displays e.g. an es-0 Babel box on es:Usuario:Tacsipacsi). The problem here is probably not (or not only) the value of {{CURRENTCONTENTLANGUAGE}}, but that it’s not evaluated at all—the translation is based on a clever hack using the fact that <translate> tags result in garbage output when transcluded, so if I paste {{User:Katherine (WMF)}} here, the huge #switch will go to the second branch (where language switch happens); however, if one goes to es:User:Katherine (WMF), I think the page loads as if it would load on User:Katherine (WMF), so the <translate> tags are removed, and the #switch goes to the first branch (English-only). Tacsipacsi (talk) 23:24, 13 May 2020 (UTC)[reply]
@Tacsipacsi: I think {{CURRENTCONTENTLANGUAGE}} is causing the problem. See it's doc. If page name end's with a lang code then {{CURRENTCONTENTLANGUAGE}} returns that lang code, otherwise it returns always 'en'. Since user name doesn't end with a language code, it always gives en. I think we should use {{int:lang}} (same as mw:Template:User info) --আফতাবুজ্জামান (talk) 03:29, 10 November 2020 (UTC)[reply]
@আফতাবুজ্জামান: The text output by the template may be translated by changing {{CURRENTCONTENTLANGUAGE}} to {{int:lang}} in this template. However, that doesn’t change the fact that even though the user page itself is translatable, that non-template text always appears in English. —Tacsipacsi (talk) 21:20, 14 November 2020 (UTC)[reply]

Update /en[edit]

Please update Template:User_info/en from Template:User_info. I've now updated this with flexbox formatting so that it should reflow on mobiles better. T.Shafee(Evo﹠Evo)talk 04:26, 3 February 2021 (UTC)[reply]

Done I triggered the translation to replicate. — xaosflux Talk 16:30, 4 February 2021 (UTC)[reply]

Apologies, Same as above (fixing a flexbox width issue per comment below). T.Shafee(Evo﹠Evo)talk 22:45, 4 February 2021 (UTC)[reply]

Line-wrap too short in first lines[edit]

There seems to be a problem in the latest update, where the first 3 text lines (full name, job title, short quote) all seem to be a fixed-width, using a very narrow restriction, at all window-widths. E.g. User:Quiddity (WMF) wraps after the "Quiddity" part! Whereas, they should be able to expand as needed into the empty space. @Evolution and evolvability: do you know how to fix this? (Quick screenshot. I see the problem in both the latest Firefox and Chromium.) Thanks. Quiddity (WMF) (talk) 18:17, 4 February 2021 (UTC)[reply]

@Quiddity (WMF): My error! The div that the should be corrected now so that it expands to fill the available space, then triggers wrapping then it's shrunk to 300px. Just needs an admin to implement the translation (see comment in section above). T.Shafee(Evo﹠Evo)talk 22:57, 4 February 2021 (UTC)[reply]
Done! Ty. :-) Quiddity (WMF) (talk) 23:50, 4 February 2021 (UTC)[reply]

Problems with babel[edit]

Hello. I have problems with "babel" in this template. Check my user page to see what happened. Until the last changes in this template, everything was fine. Pinigin (talk) 05:50, 5 February 2021 (UTC)[reply]

@Pinigin, Hidayatsrf, and Julle: I think I've now tracked down the root cause of the issue. From working with the Template:User_info/sandbox, it looks like the babel template didn't like it when it's transcluded into a div that's all on one line (e.g <div lang="" dir="auto">...</div>). Please let me know if any additional errors show up! T.Shafee(Evo﹠Evo)talk 02:09, 22 February 2021 (UTC)[reply]
Please trigger the translation to replicate this template to /en again for the above, corrected template. T.Shafee(Evo﹠Evo)talk 04:22, 22 February 2021 (UTC)[reply]
@Evolution and evolvability: marked for translation. Sgd. —Hasley 14:40, 22 February 2021 (UTC)[reply]

Text does not wrap anymore[edit]

@Evolution and evolvability: Text does not wrap anymore, so the layout is broken for everyone who has a bit more text (like me). Can you please fix or revert? Also, why hardcode custom fonts instead of using the default ones by MediaWiki (which are by default literally the same)? This makes things harder to maintain. Thanks, --AKlapper (WMF) (talk) 16:42, 7 April 2021 (UTC)[reply]

Support replacing the entire left column with {{Infobox User}}[edit]

I’d like to use {{Infobox User}} in place of the image[note 1] and the “Contact me” column.

I’ve currently created a fork that somewhat achieves this at {{User:ExE Boss/UserInfo}}, but it doesn’t currently support |full name=, |job title=, |organization=, or |short quote= when an infobox is used.

The new parameter should probably be named |infobox= and make it so that the <div class="userinfo-basic"> tag doesn’t include the .userinfo-basic::after pseudo‑element when it’s used.

I’d do this myself, but this template and its stylesheet are regularly‑ish transwikied  from wmf:Template:User info, so my changes would likely get overwritten at some point. — ExE Boss (talk) 18:30, 27 June 2021 (UTC)[reply]

Notes

  1. my usual profile picture is under a non‑free copyright license, so it’s not allowed on Commons

Content renders differently across projects[edit]

Tracked in Phabricator:
Task T292498 resolved

I have recently started using this template on my global user page. Suddenly, maybe 4 or 5 days ago (cannot remember exactly) the image wrapped differently on all other projects.

In parsed content which renders in an unexpected way is the element figure with class="mw-halign-right", while on this project it uses div with class="floatright". Has something happened with templatestyles here? Or is it something that should be reported on phabricator? -- Abuluntu (👨🏼‍💻💬) 14:21, 4 October 2021 (UTC)[reply]

@Abuluntu: On-wiki code cannot control what HTML element images use, so it definitely belongs to Phabricator. By the way, I see <figure class="mw-halign-right"> on Meta as well, but here the necessary CSS is loaded. —Tacsipacsi (talk) 08:33, 5 October 2021 (UTC)[reply]
Thanks alot! I’ll keep an eye on the task you mentioned. -- Abuluntu (👨🏼‍💻💬) 10:46, 5 October 2021 (UTC)[reply]