Template talk:User info: Difference between revisions

Content deleted Content added
 
(31 intermediate revisions by 15 users not shown)
Line 31:
::Attempted some fix at {{tl|User info/sandbox}}, miserably failed. &mdash;&nbsp;regards, [[User:-revi|<span style="color:green;font-family:Courier new, serif;font-variant:small-caps">Revi</span>]] 08:36, 3 July 2018 (UTC)
::Actually {{U|Quiddity (WMF)}}, feature of <code>|former=whatevertexthereblahblahduhfixmebaby</code> is just 1. 2 is done by the {{tl|Former staff}}. &mdash;&nbsp;regards, [[User:-revi|<span style="color:green;font-family:Courier new, serif;font-variant:small-caps">Revi</span>]] 08:38, 3 July 2018 (UTC)
:::{{ping|-revi}} Oh? IIUC, the {{tl|Former staff}} template is ''adding'' the "Former WMF staff" category, but the <code>|former = foo</code> parameter in this template is ''removing'' the "WMF staff" category (if it was added via the <code>|organization</code> parameter). At least I think that's what is going on. :-) [[User:Quiddity (WMF)|Quiddity (WMF)]] ([[User talk:Quiddity (WMF)|talk]]) 15:35, 3 July 2018 (UTC)
::::Oh, yeah, near the T:9, indeed. &mdash;&nbsp;regards, [[User:-revi|<span style="color:green;font-family:Courier new, serif;font-variant:small-caps">Revi</span>]] 16:03, 3 July 2018 (UTC)
 
== RTL ==
 
I think that the WMF/legal disclaimer blurb needs to have <code>lang="en" dir="ltr" class="mw-content-ltr"</code> 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? [[User:Whatamidoing (WMF)|Whatamidoing (WMF)]] ([[User talk:Whatamidoing (WMF)|talk]]) 22:44, 12 November 2018 (UTC)
 
== i18n problem ==
 
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. [[User:Sophivorus|Sophivorus]] ([[User talk:Sophivorus|talk]]) 19:25, 9 May 2020 (UTC)
:{{ping|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.) [[User:Quiddity (WMF)|Quiddity (WMF)]] ([[User talk:Quiddity (WMF)|talk]]) 18:19, 11 May 2020 (UTC)
::<code><nowiki>{{int:lang}}</nowiki></code> certainly works on my user page (it displays e.g. an <code>es-0</code> Babel box on [[:es:Usuario:Tacsipacsi]]). The problem here is probably not (or not only) the value of {{tl|CURRENTCONTENTLANGUAGE}}, but that it’s not evaluated at all—the translation is based on a clever hack using the fact that &lt;translate&gt; tags result in garbage output when transcluded, so if I paste <code><nowiki>{{User:Katherine (WMF)}}</nowiki></code> here, the huge <code>#switch</code> 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 &lt;translate&gt; tags are removed, and the <code>#switch</code> goes to the first branch (English-only). [[User:Tacsipacsi|Tacsipacsi]] ([[User talk:Tacsipacsi|talk]]) 23:24, 13 May 2020 (UTC)
:::{{ping|Tacsipacsi}} I think {{tl|CURRENTCONTENTLANGUAGE}} is causing the problem. See it's doc. If page name end's with a lang code then {{tl|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 <code><nowiki>{{int:lang}}</nowiki></code> (same as [[:mw:Template:User info]]) --[[User:আফতাবুজ্জামান|আফতাবুজ্জামান]] ([[User talk:আফতাবুজ্জামান|talk]]) 03:29, 10 November 2020 (UTC)
::::{{reply to|আফতাবুজ্জামান}} The text output by the template may be translated by changing <code><nowiki>{{CURRENTCONTENTLANGUAGE}}</nowiki></code> to <code><nowiki>{{int:lang}}</nowiki></code> 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. —[[User:Tacsipacsi|Tacsipacsi]] ([[User talk:Tacsipacsi|talk]]) 21:20, 14 November 2020 (UTC)
 
== Update /en ==
 
{{edit protected|answered=yes}}
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. [[User:Evolution_and_evolvability|T.Shafee(Evo&#65120;Evo)]]<sup>[[User talk:Evolution_and_evolvability|talk]]</sup> 04:26, 3 February 2021 (UTC)
:{{done}} I triggered the translation to replicate. — [[User:Xaosflux|<span style="color:#FF9933; font-weight:bold; font-family:monotype;">xaosflux</span>]] <sup>[[User talk:Xaosflux|<span style="color:#009933;">Talk</span>]]</sup> 16:30, 4 February 2021 (UTC)
{{edit protected|answered=yes}}
Apologies, Same as above (fixing a flexbox width issue per comment below). [[User:Evolution_and_evolvability|T.Shafee(Evo&#65120;Evo)]]<sup>[[User talk:Evolution_and_evolvability|talk]]</sup> 22:45, 4 February 2021 (UTC)
 
== Line-wrap too short in first lines ==
 
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. {{ping|Evolution and evolvability}} do you know how to fix this? (Quick [https://i.postimg.cc/W1twmNxB/image.png screenshot]. I see the problem in both the latest Firefox and Chromium.) Thanks. [[User:Quiddity (WMF)|Quiddity (WMF)]] ([[User talk:Quiddity (WMF)|talk]]) 18:17, 4 February 2021 (UTC)
:{{re|User: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). [[User:Evolution_and_evolvability|T.Shafee(Evo&#65120;Evo)]]<sup>[[User talk:Evolution_and_evolvability|talk]]</sup> 22:57, 4 February 2021 (UTC)
::Done! Ty. :-) [[User:Quiddity (WMF)|Quiddity (WMF)]] ([[User talk:Quiddity (WMF)|talk]]) 23:50, 4 February 2021 (UTC)
 
== Problems with babel ==
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. [[User:Pinigin|Pinigin]] ([[User talk:Pinigin|talk]]) 05:50, 5 February 2021 (UTC)
:{{re|Pinigin|Hidayatsrf|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 <code><nowiki><div lang="" dir="auto">...</div></nowiki></code>). Please let me know if any additional errors show up! [[User:Evolution_and_evolvability|T.Shafee(Evo&#65120;Evo)]]<sup>[[User talk:Evolution_and_evolvability|talk]]</sup> 02:09, 22 February 2021 (UTC)
{{edit protected|ans=yes}}
:Please trigger the translation to replicate this template to [[Template:User info/en|/en]] again for the above, corrected template. [[User:Evolution_and_evolvability|T.Shafee(Evo&#65120;Evo)]]<sup>[[User talk:Evolution_and_evolvability|talk]]</sup> 04:22, 22 February 2021 (UTC)
::@[[User:Evolution and evolvability|Evolution and evolvability]]: marked for translation.&nbsp;<span style="font-size: smaller; font-style: italic;">Sgd.</span>&nbsp;&mdash;[[user talk:Hasley|<span style="color: #0645AD;">Hasley</span>]] 14:40, 22 February 2021 (UTC)
 
== Text does not wrap anymore ==
{{ping|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, --[[User:AKlapper (WMF)|AKlapper (WMF)]] ([[User talk:AKlapper (WMF)|talk]]) 16:42, 7 April 2021 (UTC)
 
== Support replacing the entire left column with {{mono|{{tl|Infobox User}}}} ==
I’d&nbsp;like to&nbsp;use {{mono|{{tl|Infobox&nbsp;User}}}} in&nbsp;place of&nbsp;the&nbsp;image{{NoteTag|my&nbsp;usual profile&nbsp;picture is&nbsp;under a&nbsp;non‑free copyright&nbsp;license, so&nbsp;it’s&nbsp;not&nbsp;allowed on&nbsp;Commons}} and&nbsp;the&nbsp;“Contact&nbsp;me”&nbsp;column.
 
I’ve&nbsp;currently created&nbsp;a&nbsp;fork that&nbsp;somewhat achieves&nbsp;this at&nbsp;{{mono|{{tlu|User:ExE&nbsp;Boss/UserInfo}}}}, but&nbsp;it&nbsp;doesn’t currently&nbsp;support {{para|full&nbsp;name}}, {{para|job&nbsp;title}}, {{para|organization}}, or&nbsp;{{para|short&nbsp;quote}} when&nbsp;an&nbsp;infobox is&nbsp;used.
 
The&nbsp;new&nbsp;parameter should&nbsp;probably be&nbsp;named {{para|infobox}} and&nbsp;make&nbsp;it so&nbsp;that the&nbsp;<syntaxhighlight inline lang="html" style="white-space:nowrap"><div class="userinfo-basic"></syntaxhighlight>&nbsp;tag doesn’t&nbsp;include the&nbsp;<syntaxhighlight inline lang="css" style="white-space:nowrap">.userinfo-basic::after</syntaxhighlight>&nbsp;pseudo‑element when&nbsp;it’s&nbsp;used.
 
I’d&nbsp;do&nbsp;this&nbsp;myself, but&nbsp;this&nbsp;template and&nbsp;its&nbsp;[[Template:User&nbsp;info/styles.css|stylesheet]] are&nbsp;regularly‑ish {{ll|Help:Import#Transwiki&nbsp;import|transwikied}}&nbsp;from [[wmf:Template:User&nbsp;info]], so&nbsp;my&nbsp;changes would&nbsp;likely get&nbsp;overwritten at&nbsp;some&nbsp;point. —&nbsp;[[User:ExE&nbsp;Boss|ExE&nbsp;Boss]] ([[User&nbsp;talk:ExE&nbsp;Boss|<span class="signature-talk" style="white-space:nowrap">{{int:talkpagelinktext}}</span>]]) 18:30, 27 June 2021 (UTC)
 
{{Reflist-talk|title=Notes|group=note}}
 
== Content renders differently across projects ==
 
{{tracked|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 <code>figure</code> with <code>class="mw-halign-right"</code>, while on this project it uses <code>div</code> with <code>class="floatright"</code>. Has something happened with templatestyles here? Or is it something that should be reported on phabricator? -- [[User:Abuluntu | Abuluntu]] ([[m:User Talk:Abuluntu |👨🏼‍💻💬]]) 14:21, 4 October 2021 (UTC)
:{{reply to|Abuluntu}} On-wiki code cannot control what HTML element images use, so it definitely belongs to Phabricator. By the way, I see <syntaxhighlight lang="html" inline><figure class="mw-halign-right"></syntaxhighlight> on Meta as well, but here the necessary CSS is loaded. —[[User:Tacsipacsi|Tacsipacsi]] ([[User talk:Tacsipacsi|talk]]) 08:33, 5 October 2021 (UTC)
::Thanks alot! I’ll keep an eye on the task you mentioned. -- [[User:Abuluntu | Abuluntu]] ([[m:User Talk:Abuluntu |👨🏼‍💻💬]]) 10:46, 5 October 2021 (UTC)
 
== Bar colors not working? ==
 
I tried using the bar color parameters on my userpage but they don't seem to be working? [[User:Vera de Kok|Vera de Kok]] ([[User talk:Vera de Kok|talk]]) 16:43, 26 January 2025 (UTC)
 
:[https://meta.wikimedia.org/w/index.php?title=Template:User_info&diff=28178186 Fixed.] —[[User:Tacsipacsi|Tacsipacsi]] ([[User talk:Tacsipacsi|talk]]) 23:39, 26 January 2025 (UTC)
Return to "User info" page.