Template talk:Shortcut

Template talk:Shortcut

Template talk:Shortcut

Edit request 5 June 2025

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

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

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

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.