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

warn: Template:Uw-botun doesn't allow linked article #1537

Open
TheTVExpert opened this issue Mar 11, 2022 · 2 comments
Open

warn: Template:Uw-botun doesn't allow linked article #1537

TheTVExpert opened this issue Mar 11, 2022 · 2 comments

Comments

@TheTVExpert
Copy link
Contributor

Requested by InterstateFive at https://en.wikipedia.org/w/index.php?title=Wikipedia_talk:Twinkle#Slight_error_when_warning_a_user_for_having_a_%22bot_username%22

Add to list at

twinkle/modules/twinklewarn.js

Lines 1402 to 1409 in f8e5769

// The value of each tag is the label next to the input field
var notLinkedArticle = {
'uw-agf-sock': 'Optional username of other account (without User:) ',
'uw-bite': "Username of 'bitten' user (without User:) ",
'uw-socksuspect': 'Username of sock master, if known (without User:) ',
'uw-username': 'Username violates policy because... ',
'uw-aiv': 'Optional username that was reported (without User:) '
};

@TheTVExpert TheTVExpert changed the title warn: Template:Botun doesn't allow linked article warn: Template:Uw-botun doesn't allow linked article Mar 11, 2022
@NovemLinguae
Copy link
Member

NovemLinguae commented Mar 11, 2022

So this template for its 1st parameter doesn't seem to want a username, it wants some kind of message. The exact code in the template is {{<includeonly>safesubst:</includeonly>#if:{{{1|}}}|&nbsp;In addition, it {{{1}}}.}}

The proposed algorithm above I think would just change "linked page" to some custom text that asks for a username. But then would create a situation where a user supplies a username, and the template just prints In addition, it USERNAME.

I think #1538 might be a better approach. Thoughts?

@TheTVExpert
Copy link
Contributor Author

TheTVExpert commented Mar 11, 2022

The proposed algorithm above I think would just change "linked page" to some custom text that asks for a username.

I think this object just changes the label for the linked article input, so for this template we would ask for an additional reason, not an article or username.

I do agree that #1538 might be better though, since the reason parameter for this template probably doesn't get much use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants