Help talk:Range blocks/IPv6

Jump to: navigation, search

About this board

By clicking "Add topic", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 3.0 License and GFDL
Doug Weller (talkcontribs)

With permission I'm copying a discussion from an enwiki editor's talk page. I don't know if any of it should be added here or elsewhere.

IPv6 range contributions

Our discussion at WP:VPT encouraged me to enhance {{blockcalc}}. It can be used with multiple IPv4 and/or IPv6 addresses. If you have a single IPv6 address, you can enter it as in this example:

{{blockcalc|2601:188:0:ABE6:65F5:930C:B0B2:CD63}}

The result (below) displays a /64 range with a link to the contributions made by addresses in that range in the last month (for today, that means edits on and after 26 March 2016).


Template:Blockcalc


If older contributions are wanted, you can enter something like this (edits on and after 26 January 2016).

{{blockcalc|months=3|2601:188:0:ABE6:65F5:930C:B0B2:CD63}}

Johnuniq (talk) 08:06, 26 April 2016 (UTC)

I love you, John, but… am I supposed to go somewhere and write {{blockcalc|etc}}? Where? Or can I just go to the single IPv6's contribs, cut off the IP after the fourth group of digits, leave the colon in, add an asterisk, and click Search? It seems to work. And to the kind of mind I have, it sounds… simpler. At least, if I'm satisfied with going back one month — I don't know what I would do for going back longer. (Change the numeral in the URL, perhaps?)
PS, by the way, yes it worked, but you should have seen how fantastically it worked when I forgot to leave the colon in! :-) Lots of IPs, lots of contributions. Are all those other IPs irrelevant? Bishonen | talk 15:31, 26 April 2016 (UTC).
To try blockcalc, you might edit your sandbox and replace its contents with the example above, then Preview. There is no need to save the edit because preview is enough to see the results. When finished, close the browser window to discard the previewed edit.
You are correct that looking at Special:Contributions/2601:188:0:ABE6:65F5:930C:B0B2:CD63 then replacing everything after 2601:188:0:ABE6: with * works well.
Blockcalc has two advantages. First, it defaults to showing only the edits in the last month (or whatever number of months is specified). With many IPs, that makes no difference because the IP only has a handful of edits in total. However, for other IPs, it makes a big difference. In the above example table, blockcalc generates this contribs link—that currently shows 13 different IPs. The manual method of inserting an asterisk lists 90 different IPs, many of which have not edited in the last few months.
The second advantage of blockcalc is that it can handle multiple IPs and can calculate what ranges are needed to cover all the IPs entered. That may not be useful in practice because what is needed is obvious, or because the technically correct answer would block far too many IPs. Anyway, blockcalc is an option that may be helpful in some cases. Johnuniq (talk) 07:00, 27 April 2016 (UTC)
Johnuniq (talkcontribs)

Encouraged by a notification I received from the above, I added a link under "Tools".

Reply to "blockcalc en:Template:IP range calculator"
There are no older topics