Template talk:Shortcut

Latest comment: 3 months ago by Timeshifter in topic Please add a width parameter

“Take up to ten (10) shortcuts as parameters” Don’t think so..?

edit

Upon testing, it turns out that this template can take more than 10 shortcuts. I don’t know what the maximum number is. Did I misunderstand something, or should the documentation be edited as necessary? -Colathewikian (talk) 06:18, 2 February 2021 (UTC)Reply

I assume it's been outdated since it was turned into a module. Removed. Nardog (talk) 06:30, 2 February 2021 (UTC)Reply
For the record, my tests showed around 9 quadrillion parameters, but that was using {{shortcut|9000000000000000=WP:FOO}}. It would probably break a lot sooner if you actually put that many shortcuts... CLYDE TALK TO ME/STUFF DONE (I will not see your reply if you don't mention me) 06:56, 21 July 2023 (UTC)Reply

Template-protected edit request on 27 February 2022

edit

Please place the shortcut list div inside of the anchor list div, instead of after it. Currently, the browser (Firefox) scrolls not to the box, but about two line heights above it. In the case of MOS:DABBLUE, this makes it look like the shortcut points to the bullet item above the intended one. Paradoctor (talk) 23:43, 27 February 2022 (UTC)Reply

  Note: Redirected target to module (Where the change would need to be made) Terasail[✉️] 16:25, 28 February 2022 (UTC)Reply
  Not done it is not clear what you want to change. Please make your change in the sandbox here: Module:Shortcut/sandbox, test your change, then reactivate the immediate edit request. If you want to simply further discuss improvements to this module, feel free to continue below. — xaosflux Talk 19:05, 28 February 2022 (UTC)Reply

Please add a width parameter

edit

This could be useful on more than just help pages.

On a lot of help pages there is this:

{{Wikipedia how to|Example. Link2. Link3. Link4}}
{{Wiki markup}}

Here is how it looks:

But {{Wikipedia how to}} is broken, and does not wrap around the shortcut. So in portrait view in a cell phone the how-to text looks weird with a long column of text and a lot of wasted whitespace to the right and left of it. Like the following. I wrapped a narrow table around it so you could see the problem without having to go to your cell phone. Here is how it looks in my iphone SE 2020:


It has been like this for a long time, and has been asked about at WP:VPT, etc., but it is still broke. See:

In the meantime there is an easy fix by putting the shortcut(s) below it. But it needs to be in a wider box. So that it takes up less vertical space in the right sidebar. I used a table below, not the shortcut template.

Like this:

Shortcuts: Example. Link2. Link3. Link4

--Timeshifter (talk) 22:51, 8 July 2024 (UTC)Reply

Discussion on the Commons:
c:Commons:Village pump/Proposals#Needs to be a better box for Current and Recent templates
--Timeshifter (talk) 01:46, 19 August 2024 (UTC)Reply