Description
Currently you can use 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.
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 , the default length should be the contents of (new)
- If you arrive at or just , the default length should be the contents of (current)
- Every time the input to the field is validated, update the default block length (new)
In T219126#5390079, @DannyS712 wrote:@MarcoAurelio to clarify, you are looking for:
- If you arrive at , the default length should be the contents of (new)
- If you arrive at or just , the default length should be the contents of (current)
- Every time the input to the field is validated, update the default block length (new)
Yes, that's correct. Thanks.
Change 527948 had a related patch set uploaded (by DannyS712; owner: DannyS712):
[mediawiki/core@master] Add separate default block length for IP blocks
@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
If it accomplishes 1 and 2 it's okay for me :)
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
User-notice part remains to be done though. Ping to @Johan for that.
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.
It'll be "later this week", sorry for the inclarity.
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,...?
In T219126#5634260, @Yamaha5 wrote: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 (not ). 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, or . No need for, e.g.: . Regards.
