Currently you can use MediaWiki:ipb-default-expiry so when you visit Special:Block the default block expiry time is already selected. However said ipb-default-expiry works both for anonymous users and registered users. Considering that the defaults for anonymous and registered contributors often do not match (ie: we hardly indef. any IP address but it is very common for registered accounts), could we create a similar function but for unregistered user blocks? Thanks.
Description
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Special:Block: Add separate default block length for IP blocks | mediawiki/core | master | +12 -2 |
Related Objects
Event Timeline
@MarcoAurelio to clarify, you are looking for:
- If you arrive at Special:Block/1.2.3.4, the default length should be the contents of MediaWiki:ipb-default-expiry-anon (new)
- If you arrive at Special:Block/DannyS712 or just Special:Block, the default length should be the contents of MediaWiki:ipb-default-expiry (current)
- Every time the input to the Username or IP address field is validated, update the default block length (new)
Change 527948 had a related patch set uploaded (by DannyS712; owner: DannyS712):
[mediawiki/core@master] Add separate default block length for IP blocks
https://gerrit.wikimedia.org/r/527948
@MarcoAurelio the patch I've uploaded accomplishes #1 and #2, but I'm not sure this can be included in the validation of the block target
Tagging contributors-team for review per https://www.mediawiki.org/wiki/Developers/Maintainers
Change 527948 merged by jenkins-bot:
[mediawiki/core@master] Special:Block: Add separate default block length for IP blocks
https://gerrit.wikimedia.org/r/527948
Roughly when would we expect this to be in production?
<code>MediaWiki:ipb-default-expiry</code> can set the default block length for your wiki. You can now use <code>MediaWiki:ipb-default-expiry-ip</code> to set a different default block length for IP editors.
Thanks @Johan
- as for when this will get deployed to production, I suspect next week but ReleaseTaggerBot is down so we don't know yet.
- the message isn't called 'ipb-default-expiry-anon' anymore. It was renamed to 'ipb-default-expiry-ip'.
Regards.
OK, adding it to the issue going on Monday, and we'll figure out if it should be in "later this week" or "future news" before the issue gets delivered.
I couldn't find any example in other wikis or documentation. how we can set it? for example: for 1 day i should write 1 or 1d or 1 day, for 2 hours,...?
The options are listed here: https://www.mediawiki.org/wiki/MediaWiki:Ipboptions
They are also translated:
https://translatewiki.net/wiki/Special:PrefixIndex?prefix=Ipboptions%2F&namespace=8&hideredirects=1
@Yamaha5 @Thibaut120094 Please also note that the message will be named MediaWiki:Ipb-default-expiry-ip (not anon). The code does not seem to be yet deployed to Wikimedia Production at the moment I am posting this. The values that you can put in there are, for example, 1 day or 31 hours. No need for, e.g.: 1 jour:1day. Regards.