This script returns the ranking of a Wikimedia foundation project when sorted by size.

usage:

?family=[project family]

?lang=[language]

project family can be one of: w, wikt, n, b, q, s, v, voy (interwiki shortcuts)

language should be a language prefix that exists as a wikipedia subdomain:

output:

<lang.project> <rank within project> <number of wikis in project> <global rank> <global number of wikis>
en.wikipedia 1 272 1 761

examples:
?family=w&lang=en (Spanish Wikipedia)
?family=wikt&lang=de (English Wiktionary)
?family=v&lang=ru (Russian Wikiversity)

Complete tables can be found in wikistats