Template talk:Myprefs

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

Linking to sections within tabs[edit]

I've sandboxed up the code which should be needed in order to jump to specific sections on each tab, but it seems to only work for sections within the first (User profile) tab, see Template:Myprefs/testcases. For sections on any other tab, it resolutely jumps to the top of the User profile tab. --Redrose64 (talk) 19:02, 17 October 2011 (UTC)[reply]

Links like Special:Preferences#mw-htmlform-displaywatchlist are not supposed to work. The code at mediawiki.special.preferences.js can switch to the specified section (tab) but not to some-id-inside-section (which is theoretically possible to do). — AlexSm 19:33, 17 October 2011 (UTC)[reply]

Check= parameter[edit]

Technical 13, I'm really not sure what the purpose is... If I do {{Myprefs|1|Diffs|check=NotAnAbbreviation}}, it come out as Preferences → Appearance → Diffs → check NotAnAbbreviation. Surely that can't be right? -- [[User:Edokter]] {{talk}} 18:46, 24 January 2015 (UTC)[reply]

  • You're misusing the parameter. It's suppose to be a visual representation of exactly what the user should be looking for. So, a valid example would be:
Preferences → Appearance → Diffs → uncheck Do not show page content below diffs
Preferences → Appearance → Diffs → check Omit diff after performing a rollback
That way people who have no idea at all, can see okay, click here, then there (or start here), then look for this text and then there should be a checkbox with blah wording and the box should be (un)checked like in the example. — {{U|Technical 13}} (etc) 18:58, 24 January 2015 (UTC)[reply]
Edokter ping... PS, I wouldn't object to moving the abbr to the checkbox itself and using css to get rid of the dotted underline. I'd not use the abbr at all if the Phab: ticket on the issue was fixed. — {{U|Technical 13}} (etc) 19:03, 24 January 2015 (UTC)[reply]
Now it's a bit clear, in which case the <abbr> isn't needed at all; you can set an |alt= parameter for the image. Which phab ticket are you referring to? -- [[User:Edokter]] {{talk}} 19:26, 24 January 2015 (UTC)[reply]
  • |alt= is set... The phab ticket (which I can't seem to find at the moment, I've been hunting) was to fix it so that alt text was applied as title when the image exists. — {{U|Technical 13}} (etc) 19:44, 24 January 2015 (UTC)[reply]
Made the above change and updated docs. — {{U|Technical 13}} (etc) 19:50, 24 January 2015 (UTC)[reply]
Alt and title serve two completely different purposes. Why are you utilizing <abbr>? If for screenreaders, then |alt= is your guy. -- [[User:Edokter]] {{talk}} 22:22, 24 January 2015 (UTC)[reply]
  • Alt doesn't work. check (nothing on mouseover with |alt=check|link=) check (url to image location in bottom left corner on mouseover with |alt=check) check (tooltip on mouseover with <abbr>...</abbr>) — {{U|Technical 13}} (etc) 22:39, 24 January 2015 (UTC)[reply]
Oh, you want a tooltip! Just use the image caption. -- [[User:Edokter]] {{talk}} 22:47, 24 January 2015 (UTC)[reply]
check apparently now works, it didn't use to. Maybe I couldn't find the ticket because it was already fixed. — {{U|Technical 13}} (etc) 22:49, 24 January 2015 (UTC)[reply]
I think that was fixed over a year ago. Closest I could find is phab:T45836. -- [[User:Edokter]] {{talk}} 23:02, 24 January 2015 (UTC)[reply]

New Banners tab[edit]

With the addition of the Banners tab, could a number be designated to it for the first parameter? It'd make it easier to point people to disabling the fundraising banner. —Tenryuu 🐲 ( 💬 • 📝 ) 04:23, 8 December 2021 (UTC)[reply]

Please apply this edit. Afterward, please also append the following to the first table at Template:Myprefs/doc#Parameters so that the documentation is immediately up-to-date:
|-
| Banners || {{myprefs|Banners}}
Thank you. Rummskartoffel 22:36, 14 December 2021 (UTC)[reply]
 Done Nardog (talk) 22:41, 14 December 2021 (UTC)[reply]

Avoid line breaks between checkbox and text[edit]

Allowing line breaks (wrapping) to occur between the checkbox and associated text occasionally makes this template have a confusing output. To fix this, please wrap both the [[File:U+2610.svg|alt=uncheck|link=|uncheck]] {{{uncheck}}} and [[File:Check mark.svg|alt=check|link=|check]] {{{check}}} blocks in line-break-preventing spans (<span style="white-space: nowrap;"> and </span>). --Yair rand (talk) 01:55, 23 December 2021 (UTC)[reply]

Not sure if this is that simple. Your suggestion would make the entire input in |check= unwrapped, which could result in unwieldy layout when it's long. (And &nbsp; doesn't work after an image.) Nardog (talk) 02:49, 23 December 2021 (UTC)[reply]
Are there any parameter texts that are long enough that this would be a problem? --Yair rand (talk) 17:50, 23 December 2021 (UTC)[reply]
Most, I bet. Try squeezing your browser window and see how this paragraph looks. Preferences → Recent changes → check Show the difference between the accepted and latest revisions when viewing the latest pending revision. Nardog (talk) 05:33, 26 December 2021 (UTC)[reply]
 Done with {{nowrap}} and {{wrap}}. Nardog (talk) 06:08, 26 December 2021 (UTC)[reply]

Why the serif font? It looks odd at H:MW#See also.[edit]

Here: style="font-family: Georgia, serif;"
Does MOS:FONTFAMILY not apply to help pages?

Font families should not be explicitly defined in an article, with the exception of PUA characters (next section), because this interferes with Wikipedia's flexibility, and it is impossible to foresee what fonts will be installed on a user's computer.

Guarapiranga  04:10, 15 June 2022 (UTC)[reply]

I don't think that's the same thing. Font family definition appears to be used in the past to render characters in a certain font because older browsers could not automatically select an appropriate font. I like having a font change as it catches the reader's eye, especially when it's in a paragraph with a lot of other text. That said, I suppose it wouldn't be too difficult to add a parameter to suppress the font change. —Tenryuu 🐲 ( 💬 • 📝 ) 04:56, 15 June 2022 (UTC)[reply]
Or, alternatively, add a parameter, e.g. |style=, to change the font (if that's at all necessary and compliant, when editors can simply enclose the template in {{font}}). Here are other help pages that use it: Guarapiranga  06:49, 15 June 2022 (UTC)[reply]