Skip to content

block: add preset for LTA#2315

Open
IlyasLebleu wants to merge 2 commits intowikimedia-gadgets:masterfrom
IlyasLebleu:blocklta
Open

block: add preset for LTA#2315
IlyasLebleu wants to merge 2 commits intowikimedia-gadgets:masterfrom
IlyasLebleu:blocklta

Conversation

@IlyasLebleu
Copy link
Copy Markdown
Contributor

Adds a quick LTA preset (no template by default, everything disabled), tested at https://test.wikipedia.org/wiki/Special:Contributions/~2024-1844

notemplate: true,
pageParam: false,
reason: 'Long-term abuse',
templateName: 'uw-blocknotalk'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we code this so that, instead of having notemplate: true, that we instead leave templateName blank or null or undefined, and the system detects a falsey templateName, and in that situation doesn't leave a user talk template?

@NovemLinguae
Copy link
Copy Markdown
Member

I asked the talk page WT:TWINKLE to double check the consensus and details of this idea: https://en.wikipedia.org/wiki/Wikipedia_talk:Twinkle#Admins%2C_interested_in_an_%22LTA%22_block_preset%3F

@NovemLinguae
Copy link
Copy Markdown
Member

I asked the talk page WT:TWINKLE to double check the consensus and details of this idea: https://en.wikipedia.org/wiki/Wikipedia_talk:Twinkle#Admins%2C_interested_in_an_%22LTA%22_block_preset%3F

Consensus check looks good. No problems there. Next step is to resolve the code review comment.

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.

2 participants