Support recipient-level optout for Twinkle notices#2251
Open
siddharthvp wants to merge 1 commit intomasterfrom
Open
Support recipient-level optout for Twinkle notices#2251siddharthvp wants to merge 1 commit intomasterfrom
siddharthvp wants to merge 1 commit intomasterfrom
Conversation
efb153c to
45712b0
Compare
2cf3e90 to
d4f0e7b
Compare
Allows users to opt out from CSD/PROD/XFD notices by placing {{Twinkle optout}} on their talk page. The template creates an invisible external link to `https://optout.twinkle` with a `types` query param being the list of opted-out notice types. Opting out of specific CSD criteria notices is left for later, but opting out from specific XfD venues is supported. See https://en.wikipedia.org/wiki/Template:Twinkle_optout for usage details.
In Twinkle, we use a prop=extlinks API call to check for external links to that domain and parse the `types` parameter. An external link is used because it's the only way to create metadata that can be modified in wikitext and also accessed via the API.
This is a popular request, the most recent version being https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)#Mute_feature_not_working.
d4f0e7b to
f7b1357
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Allows users to opt out from CSD/PROD/XFD notices by placing {{Twinkle optout}} on their talk page. The template creates an invisible external link to
https://optout.twinklewith atypesquery param being the list of opted-out notice types. Opting out of specific CSD criteria notices is left for later, but opting out from specific XfD venues is supported. See https://en.wikipedia.org/wiki/Template:Twinkle_optout for usage details.In Twinkle, we use a prop=extlinks API call to check for external links to that domain and parse the
typesparameter. An external link is used because it's the only way to create metadata that can be modified in wikitext and also accessed via the API.This is a popular request, the most recent version being https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)#Mute_feature_not_working.