Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

speedy: Fix long-standing bug in G6 copypaste notice #872

Merged

Conversation

Amorymeltzer
Copy link
Collaborator

I only noticed this after looking at things after #849, but we've been giving inaccurate notices for G6's copypaste for ages. {{db-copypaste-notice}} is just {{uw-c&pmove}} at a different title so Twinkle can handle providing the notice, but that notice uses a different format than the rest of the (standardized) csd notices. In particular, parameter 1 is not the page name, but rather the name of the original page. I think it's likely fine to change {{db-copypaste-notice}}, but I'm not sure if anyone else uses it and for now this is simpler.

I only noticed this after looking at things after wikimedia-gadgets#849, but we've been giving inaccurate notices for G6's copypaste for ages.  {{db-copypaste-notice}} is just {{uw-c&pmove}} at a different title so Twinkle can handle providing the notice, but that notice uses a different format than the rest of the (standardized) csd notices.  In particular, parameter `1` is *not* the page name, but rather the name of the *original* page.  I *think* it's likely fine to change {{db-copypaste-notice}}, but I'm not sure if anyone else uses it and for now this is simpler.
@Amorymeltzer Amorymeltzer added this to the March 2020 update milestone Feb 28, 2020
@Amorymeltzer Amorymeltzer merged commit 074101e into wikimedia-gadgets:master Feb 28, 2020
@Amorymeltzer Amorymeltzer deleted the speedy-fixcopypaste branch February 28, 2020 20:14
Amorymeltzer added a commit to Amorymeltzer/twinkle that referenced this pull request Feb 29, 2020
As noted in wikimedia-gadgets#872 for the CSD module, {{uw-c&pmove}} actually takes the source of the material as the first unnamed parameter, and the target article as the `to` parameter.  As users are likely to be warning an editor for the incorrect behavior, this will be populated with the target of the c&p move, so should take the `to` parameter.
Amorymeltzer added a commit to Amorymeltzer/twinkle that referenced this pull request Feb 29, 2020
As noted in wikimedia-gadgets#872 for the CSD module, {{uw-c&pmove}} actually takes the source of the material as the first unnamed parameter, and the target article as the `to` parameter.  As users are likely to be warning an editor for the incorrect behavior, this will be populated with the target of the c&p move, so should take the `to` parameter.

In the future, it would be nice to have an additional box just for {{uw-c&pmove}} to also list the source page, if it's known, but that'd involve a larger restructuring.
wiki-ST47 pushed a commit to wiki-ST47/twinkle that referenced this pull request Sep 2, 2020
As noted in wikimedia-gadgets#872 for the CSD module, {{uw-c&pmove}} actually takes the source of the material as the first unnamed parameter, and the target article as the `to` parameter.  As users are likely to be warning an editor for the incorrect behavior, this will be populated with the target of the c&p move, so should take the `to` parameter.

In the future, it would be nice to have an additional box just for {{uw-c&pmove}} to also list the source page, if it's known, but that'd involve a larger restructuring.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant