Jump to content

Module:Wiki99

From Meta, a Wikimedia project coordination wiki
Module documentation

Module:Wiki99 takes user input of Wikidata items and outputs a table which shows whether a Wikipedia article exists for that item in a list of selected languages. The intended use of this table is community organization for improving and developing lists of about 99 topics in the Wiki99 outreach model.

Internationalization

[edit]

This module generates a table supporting internationalization. Its labels can be translated on Template:Wiki99/i18n.

Usage

[edit]

Setup the table according to this template (by default, this tests and shows an extensive set of languages). "Q" numbers are Wikidata identifiers. Search for any topic in Wikidata to get its identifier.

{{#invoke:Wiki99|table
|Q2|Q405|Q525|Q283|Q309|Q5|Q3196|Q1|Q3|Q4|Q527|Q450|Q8
}}

Wikipedia articles
enaaababsaceadyaebafakalnaltamamiananganpararnarqaryarzasaseastatjavavkawaayazazbbabanbarbbcbccbcibclbebe-
tar
ask
bgbgnbhobibjnblkbmbnbobpybqibrbrhbrxbsbtmbtobugbxrcacbk-x-zamcdocecebchchochrchyckbcocpscrcrhcscsbcucvcydadagdedindiqdsbdtpdtydvdzeeegleleoeseteuextfafatfffifitfjfofonfrfrcfrpfrrfurfygagaagaggangcfgcrgdgilglgldglkgngomgorgotgpegrcgswgugucgurguwgvhahakhawhehihifhilhohrhrxhsbhsnhthuhyhywhziaidieigiiikiloinhioisitiujajamjbojutjvjv-x-bmskakaakabkbdkbpkcgkeakgkhwkikiukjkjpkkklkmknkokoikrkrckrikrjkrlkskshkswkukumkvkwkylaladlblbelezlfnlglilijlivlkilldlmolnlolozlrcltltglusluzlvlzhlzzmadmaimdfmgmhmhrmiminmkmlmnmnimnwmosmrmrhmrjmsmtmusmwlmymyvmznnanahnannapnap
-x-
tar
a
nbndndsnds-nlnenewngnianiunlnmznnnodnovnqonrfnsonvnynynnysocojboloomorospapagpampappcdpcmpdcpdtpflpipihplpmspnbpntprgpsptpwnququgrcfrgnrifrmrmcrmyrnrorskruruerupruqrwryusasahsatscscnscosdsdcsdhseseisessgsgsshshishnshysisim
ple
sjdsjeskskrslslismsmasmnsmssnsosqsrsrnsrossststqstysusvswsycszlszytataotayFile:Flag of Tulunadu.jpgtcytddtetettgthtitktltlytntotpitrtrutrvtstttumtwtytyvtzmudmugukuruzvaivevecvepvivlsvmfvmwvovotvrowawalwarwlswowuuxacxalxhxmfxsyyiyoyoiyrkyrlyuayuezazeazghzhzuΣ
Wikidata item
st.
c:
1Earth302Q28010
2MoonView on maps274Q405567
3Sun296Q525386
4water267Q283547
5history233Q309161
6human219Q5323
7fire201Q3196154
8Universe185Q1253
9life167Q3183
10death170Q4263
11sky143Q52784
12mind140Q450112
13happiness117Q8111
Σautolist map13425122124118613111012135838813121151021213121312365513111312731113411101018413836134612121351341043851271213131313101313138751341071112101210135135131108445111141313111341112137131387131110111312813118126125113784213381313451051251111135948105119712101013513925810369131310751241361212697137412118121141313547262136866138952562613713413133125611321310947101151210115212137411131341343121213133261213138107136621321113391252551358133735713131371213588111361328111381312461392,714avg.:  6 \ 209
(49 %)
39054

Selection of languages to test and display

[edit]

You can pass langs=simple to get a reduced list with the most common languages:

{{#invoke:Wiki99|table
|Q2|Q405|Q525|Q283|Q309|Q5|Q3196|Q1|Q3|Q4|Q527|Q450|Q8
|langs = simple
}}

Wikipedia articles
ensim
ple
afamanarasastavayazbabebgbmbnbobrbscacechckbcocscvcydadedvdzeeeleoeseteuextfafffifjfofrfygagdglgngswgugvhahakhehihrhthuhyiaidieigioisitiujajvkakgkkklkmknkokskukwkylalblglilnloltlvmgmkmlmnmrmsmtmynannbnenlnnnyocomorospapiplpnbpsptqurmrnrorurwsascsdseshsiskslsnsosqsrstsusvswtatetgthtitktltrtstttwugukuruzvivowawarwowuuxhyiyoyuezazhzuΣ
Wikidata item
st.
c:
1Earth156Q28010
2MoonView on maps153Q405567
3Sun154Q525386
4water154Q283547
5history147Q309161
6human142Q5323
7fire129Q3196154
8Universe127Q1253
9life125Q3183
10death123Q4263
11sky109Q52784
12mind102Q450112
13happiness99Q8111
Σautolist map1313121211131213881311131351311131213101138131212131351212131313131013313871311121013131085111113131311121313138711131281312124133813131012111113951110101313101313101213612131212131321386613213131313125113134751151311131312121313212131313131113391213813771313131381113613813813121391,720avg.:  11 \ 132
(81 %)
39054

You can also specify which languages are to be presented in the table by inputting their codes in the langs parameter (its value is actually a set of valid BCP 47 language tags). Language tags are encoded from Basic Latin/ASCII only, have non-significant lettercase, and must start by at 2 or 3 letters, normally from ISO 639-1, or ISO 639-2/T, or ISO 639-3 otherwise (a few legacy language tags for variants may start by a few more letters); language tags are made of subtags, each comprising 1 to 8 characters, separated by a single hyphen or underscore; subtags can only contain letters, or possibly digits (only in trailing subtags for a few variants): any other character (including controls, whitespaces, symbols, or punctuation signs) is treated as a separator between language codes.

Language are then listed as columns in the table in the specified order (but after the user language and its fallbacks that are always listed first, even if they are not requested), and should occur only once in the list:

{{#invoke:Wiki99|table
|Q2|Q405|Q525|Q283|Q309|Q5|Q3196|Q1|Q3|Q4|Q527|Q450|Q8
|langs = am,ar,be,bn,cs,da,de,el,en,es,et,fa,fi,fr,he,hi,hr,hu,hy,id,is,it,ja,ka,kk,km,ko,lo,lt,lv,mn,nb,ne,nl,pl,pt,ru,si,sk,sq,sr,sv,th,tk,tr,uk,uz,vi,zh
}}

Wikipedia articles
enamarbebncsdadeelesetfafifrhehihrhuhyidisitjakakkkmkololtlvmnnbnenlplptrusisksqsrsvthtktrukuzvizhΣ
Wikidata item
st.
c:
1Earth49Q28010
2MoonView on maps49Q405567
3Sun49Q525386
4water49Q283547
5history49Q309161
6human48Q5323
7fire48Q3196154
8Universe47Q1253
9life48Q3183
10death47Q4263
11sky43Q52784
12mind