Edge Rewrite
Jump to content

Template talk:Shortcut

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
(Redirected from Module talk:Shortcut/sandbox/styles.css)
Latest comment: 1 day ago by FaviFake in topic ER

Edit request 5 June 2025

[edit]

Description of suggested change:

Diff:

line 52: line 52:
if options.target and yesno(options.target) then if options.target and yesno(options.target) then
listItems[i] = templateMode listItems[i] = templateMode
and string.format("{{%s[[%s|%s]]}}", prefix, templatePath, shortcut) and string.format("TM:{{%s[[%s|%s]]}}", prefix, templatePath, shortcut)
or string.format("[[%s]]", shortcut) or string.format("[[%s]]", shortcut)
else else
line 60: line 60:
} }
if templateMode then if templateMode then
listItems[i] = string.format("{{%s%s}}", prefix, listItems[i]) listItems[i] = string.format("TM:{{%s%s}}", prefix, listItems[i])
end end
end end

Whatback11 (talk) 17:23, 5 June 2025 (UTC)Reply

Please provide a "complete and specific description of the request". GoldRomean (talk) 19:01, 5 June 2025 (UTC)Reply
I think we should make it clear that the shortcut for "template:" is "tm:". Whatback11 (talk) 14:15, 11 June 2025 (UTC)Reply
It would be useful if you could identify a page where this change would make a difference, and state what that difference would be. Johnuniq (talk) 08:38, 12 June 2025 (UTC)Reply
The viewer can see that the shortcut for template: is tm: Whatback11 (talk) 06:52, 5 July 2025 (UTC)Reply
I disagree with this change. I have been here for 12 years and have never seen "TM" used as a short version of the template namespace. It is definitely not needed in this template, especially outside the braces, where it makes no sense. – Jonesey95 (talk) 13:49, 10 July 2025 (UTC)Reply
"TM:" is a shortcut for "template:". Try typing "tm:tm" in the search field and pressing Enter. Whatback11 (talk) 10:54, 8 August 2025 (UTC)Reply
So if I read this correctly, if I were to make a link to a template, such as "TM:Color", that it would work like the other namespace "shortcuts" (aliases)? Here it is:
Well, I'll be darned. To be honest, editor Whatback11, I don't think that the "TM:" is needed in the shortcut box because the double braces are already there, and they are only used on WP to indicate templates. The TM alias isn't as well-known as WP and WT, but it's usage is for template links, not for template transclusions or substitutions. P.I. Ellsworth, ed.  welcome!  13:12, 23 November 2025 (UTC)Reply
Then, using Template:A as an example, instead of putting everything on one line as TM:{{A}}, how about adding a small gray note below {{A}} saying, "You can also link to it as TM:A"? Whatback11 (talk) 14:46, 23 November 2025 (UTC)Reply
If a template-link shortcut is wanted, then a simple {{sh|TM:Shortcut}} is already available for usage, as shown to the right. Sorry, but I don't think that adding a note below the template shortcut(s) would help editors. The notes would really get hairy when there are two or more template shortcuts in the box. P.I. Ellsworth, ed.  welcome!  16:07, 23 November 2025 (UTC)Reply
Do you have any other suggestions for making viewers aware of the “TM:” shortcut? If not, I agree to leave things as they are without making this edit. Whatback11 (talk) 08:53, 26 November 2025 (UTC)Reply
Yes, gentle reminders on appropriate talk pages always help. Frankly, I hardly ever used the old alias for template links, which was just a simple and ambiguous "T:". I didn't know about "TM:" until this edit request and discussion made me look back at the Aliases section of the Namespace info page. We TEs are supposed to be aware of all the nooks and crannys when it comes to templates; however, sometimes an important change might slip by us for awhile. I want to thank you very much, editor Whatback11! Even though this edit request didn't happen, at the very least you have informed me and other TEs who didn't know about the change in the alias of the template namespace. You've already done a lot to spread the word about the usage of "TM:"! P.I. Ellsworth, ed.  welcome!  12:07, 26 November 2025 (UTC)Reply
Then, I would like to cancel this edit request. Whatback11 (talk) 09:54, 29 November 2025 (UTC)Reply

@Whatback11:  Not done for now: please establish a consensus for this alteration before using the {{Edit template-protected}} template. Est. 2021 (talk · contribs) 16:24, 10 July 2025 (UTC)Reply

What can I do to reach a consensus? Whatback11 (talk) 12:17, 23 November 2025 (UTC)Reply
@Whatback11: See Wikipedia:Consensus. In brief: discuss it with others, see what develops. --Redrose64 🌹 (talk) 20:55, 24 November 2025 (UTC)Reply

A little help

[edit]

Would somebody mind helping me fix the short cut at WP:CITE#Citations in explanatory footnotes? I changed the title of the header, and that seems to have broken it. The name of the shortcut is WP:EXPLNOTESECT.---- CharlesTGillingham (talk) 16:03, 1 July 2026 (UTC)Reply

@CharlesTGillingham: Done, like this. --Redrose64 🌹 (talk) 11:45, 2 July 2026 (UTC)Reply
Thanks. I learned how shortcuts work today! --- CharlesTGillingham (talk) 13:57, 2 July 2026 (UTC)Reply

ER

[edit]

This can't possibly be controversial so I'll open an edit request. The module should wrap each shortcut in a nowrap span for cases like Special:PermanentLink/1366587294, where 1 short shortcut uses 2 lines instead of 1, see sandbox.

Line 63: Line 63:
end end
end end
-- Wrap each shortcut in a nowrap span for shortcuts like [[WP:CFORK/I]] in [[Special:PermanentLink/1366587294]]
listItems[i] = string.format('<span class="nowrap">%s</span>', listItems[i])
end end
table.insert(listItems, options.msg) table.insert(listItems, options.msg)

FaviFake (talk) 19:27, 3 August 2026 (UTC)Reply