Archives: 1 |
|
This page has archives. Sections older than 90 days may be automatically archived by Lowercase sigmabot III when more than 4 sections are present. |
![]() | Template:Reply to is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
I rewrote the module to greatly simplify it, taking advantage of the mw.text.listToText function, at Module:Reply to/sandbox (and implemented at Template:Reply to/sandbox). It passes all the testcases, and the only change to the output text is that it fixes a bug that had caused multiple spaces to be inserted after the penultimate list item. Since this is a very widely used template, I thought I'd open it up to public review before copying it to the main template. --Ahecht (TALK
PAGE) 18:21, 30 March 2022 (UTC)
pairs(args)
. Shouldn't that be ipairs
? Line 14 uses mw.ustring.match(v,'%S')
. Plain string.match
works for that and is faster (not that the speed would be noticed). Johnuniq (talk) 02:09, 31 March 2022 (UTC)
pairs
and ipairs
to allow it to work if the numbered parameters are non-sequential and to preserved their order. I think the resulting code is a bit less efficient that the non-sandbox version, since there's now an extra loop and a sort operation, but at least it looks cleaner. --Ahecht (TALK{{reply to|Jimbo Wales|4=Example}}
. That has parameters 1 and 4 with nils for 2 and 3. If someone complained that they used that syntax but Example wasn't pinged, I would tell them to do what the documentation says. However, the overhead of your more thorough code is trivial and if you think coping with skipped parameters is needed, undo my edit and proceed. Johnuniq (talk) 02:05, 1 April 2022 (UTC)
{{reply to|Example1|Example2|Example3}}
and then changes it to {{reply to||Example2|Example3}}
. That should work. Unless the module does something very strange, there is no nil. Is the module using Module:Arguments and it inserts nil? There should be parameters to stop that, although a better solution would be to not use Module:Arguments. Johnuniq (talk) 05:25, 6 April 2022 (UTC)
{{reply to|1=Example1|2=Example2|3=Example3|label1=1|label2=2|label3=3}}
and wants to delete one, but I guess that's a pretty uncommon situation. --Ahecht (TALK
The redirect Template:Pin has been listed at redirects for discussion to determine whether its use and function meets the redirect guidelines. Readers of this page are welcome to comment on this redirect at Wikipedia:Redirects for discussion/Log/2023 March 6 § Template:Pin until a consensus is reached. {{ping|ClydeFranklin}} (t/c) 01:36, 6 March 2023 (UTC)
Should the ":" be removed at default? It's never useful, as most of the ttime the ping goes at the end of a message, and not the beginning. EF5 18:43, 19 December 2024 (UTC)
Plenty of people? Examples please: I've never seen it done this way. --Redrose64 🌹 (talk) 22:57, 21 December 2024 (UTC)
Also pinging {{u|Example}}.
" Also pinging Bugghost. Johnuniq (talk) 02:55, 22 December 2024 (UTC)
{{Reply to}}
does exactly what its name implies: it shows to whom you are replying. That's all. It does not, of itself, create a notification: it is the presence of a link to a user page in combination with other factors that creates the notification. --Redrose64 🌹 (talk) 11:33, 22 December 2024 (UTC)
Examples pleaserequest that any examples posted should also go through a test of whether you personally
agree with its formatting. I guess I have come up short and no examples of pings happening at the end of messages will ever be found.
{{reply to}}
template has had the colon ever since it was created way back in May 2013. As already noted, it is not necessary to use this template for the purposes of WP:MENTIONing a user and so triggering a notification. As Johnuniq has pointed out, the {{u}}
template has no colon (it also has no "@" sign) but will serve equally well to notify a user, as I shall demonstrate for you right now, Bugghost. I see no need to alter the {{reply to}}
template. --Redrose64 🌹 (talk) 17:57, 22 December 2024 (UTC)
many use use {{ping}} and {{reply to}}to mention people, so I don't understand your reason for saying
it is not necessary to use this template for the purposes of WP:MENTIONing a user. Yes, technically, it is not necessary to use {{ping}} to ping people, but that is still the template's sole purpose.
p
parameter value to blank, it will make the template more versatile and less clunky to use. Is it being the same since 2013 a big problem? Changing the default value to blank wouldn't contextually change the meaning of existing transclusions, and in many cases the removal of the colon would improve the readability of usages. BugGhost 🦗👻 22:50, 22 December 2024 (UTC)
@Username:
followed by the message. That's how it is done, and it makes grammatical sense. There is no reason to insert @
in text like "Also pinging @Example" so {{u}} is perfect for that. If you think @ is needed, it's not hard to type. Johnuniq (talk) 01:38, 23 December 2024 (UTC){{ping|Example}}
use {{u|Example}}
. Johnuniq (talk) 03:21, 21 December 2024 (UTC)You cannot directly type the "@" symbol to notify a user of your reply, you must use the template documented here or manually create a wikilink to their user page.
?
Or does an @ mention notify editors? My experience would seem to suggest that it is outdated, however I wanted to verify. i know you're a dog 19:33, 5 May 2025 (UTC)