Jump to content

Module:Wiki99/doc

From Meta, a Wikimedia project coordination wiki

This is the documentation page for Module:Wiki99

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-zamcdocecebchchochrchyckbcocpsFile:Cree flag.svgcrcrhcscsbcucvcydadagdedindiqdsbdtpdtydvdzeeegleleoeseteuextfafatfffifitfjfofonfrfrcfrpfrrfurfygagaagaggangcfgcrgdgilglgldglkgngomgorgotgpegrcgswgugucgurguwgvhahakhawhehihifhilhohrhrxhsbhsnhthuhyhywhziaidieigiiikiloinhioisitiujajamjbojutjvjv-x-bmskakaakabkbdkbpkcgkeakgkhwkikiukjkjpkkklkmknkokoikrkrckrikrjkrlkskshkswkukumkvkwkylaladlblbelezlfnlglilijlivlkilldlmolnlolozlrcltltglusluzlvlzhlzzmadmaimdfmgmhmhrmiminmkmlmnmnimnwmosmrmrhmrjmsmtFile:Flag of the Miccosukee Seminole Nation.PNGmusmwlmymyvmznnanahnannapnap
-x-
tar
a
nbndndsnds-nlnenewngnianiunlnmznnnodnovnqonrfnsonvnynynnysocojboloomorospapagpampappcdpcmpdcpdtpflpipihplpmspnbpntprgpsptpwnququgrcfrgnrifrmrmcrmyrnrorskruruerupruqrwryusasahsatscscnscosdsdcsdhseseisessgsgsshshishnshysisim
ple
sjdsjeskskrslslismsmasmnsmssnsosqsrsrnsrossststqstysusvswsycszlszytataotayFile:Flag of Tulunadu.jpgtcytddtetettgthtitktltlytntotpitrtrutrvtstttumtwtytyvtzmudmugukuruzvaivevecvepvivlsvmfvmwvovotvrowawalwarwlswowuuxacxalxhxmfxsyyiyoyoiyrkyrlyuayuezazeazghzhzuΣ
Wikidata item
st.
c:
1Earth308Q28110
2MoonView on maps274Q405599
3Sun296Q525386
4water266Q283547
5history234Q309161
6human219Q5333
7fire201Q3196154
8Universe186Q1253
9life167Q3183
10death170Q4263
11sky143Q52784
12mind140Q450112
13happiness117Q8111
Σautolist map13425122124118613111012135838813121151021213121312365513111312731113411101018413861346121213513410438523712131313131013141387513410711121012101351351311084451111413131113411121371313871311101113128131181261251137842133813134510511511111359481051197121091351392581136913131075124136121269813741211812114131354726213686613895256261371341313312561132131094710115121011521213741113134134312121313312612131381071366213211135912535513581338357131313171213588111361329111381312461392,721avg.:  6 \ 209
(49 %)
39556

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:
1Earth160Q28110
2MoonView on maps153Q405599
3Sun154Q525386
4water154Q283547
5history148Q309161
6human142Q5333
7fire129Q3196154
8Universe128Q1253
9life125Q3183
10death123Q4263
11sky109Q52784
12mind102Q450112
13happiness99Q8111
Σautolist map131312121113121388131113135131113121310113813121213135231213131313101341387131112101313108511111313131112131313871113128131212413381313101111111395111091313111313101213612131212131321386613213131313125113134751151311131312121313212131313131113591213813871313131381113613913813121391,726avg.:  11 \ 133
(81 %)
39556

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:
1Earth48Q28110
2MoonView on maps49Q405599
3Sun49Q525386
4water49Q283547
5history49Q309161
6human48Q5333
7fire48Q3196154
8Universe47Q1253
9life48Q3183
10death47Q4263
11sky43Q52784
12mind42Q450112
13happiness45Q8111
Σautolist map13121313131313131213131313131313131213131312131213813913131012121313131311131313131391313131313612avg.:  12 \ 47
(96 %)
39556

Optional parameters for showing additional result columns

[edit]

You can also set the following options to add columns that will be shown on each row before the list of tested languages:

  • image = y (or any non-empty value) for showing an examplar image for the topic, found in some properties of the Wikidata item.
{{#invoke:Wiki99|table
|Q2|Q405|Q525|Q283|Q309|Q5|Q3196|Q1|Q3|Q4|Q527|Q450|Q8
|image = y
|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
}}
Image
Wikipedia articles
enamarbebncsdadeelesetfafifrhehihrhuhyidisitjakakkkmkololtlvmnnbnenlplptrusisksqsrsvthtktrukvizhΣ
Wikidata item
st.
c:
1Earth47Q28110
2MoonView on maps48Q405599
3Sun48Q525386
4water48Q283547
5history48Q309161
6human47Q5333
7fire47Q3196154
8Universe46Q1253
9life47Q3183
10death46Q4263
11sky42Q52784
12mind41Q450112
13happiness44Q8111
Σautolist map/gallery131213131313131312131313131313131312131313121312138139131310121213131313111313131313913131313599avg.:  12 \ 46
(96 %)
39556
  • description = y (or any non-empty value) for showing the description label of the item in Wikidata after the name of the item, also allowing to disambiguate its default label.
{{#invoke:Wiki99|table
|Q2|Q405|Q525|Q283|Q309|Q5|Q3196|Q1|Q3|Q4|Q527|Q8|Q450
|description = y
|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
Description on WikidataenamarbebncsdadeelesetfafifrhehihrhuhyidisitjakakkkmkololtlvmnnbnenlplptrusisksqsrsvthtktrukuzvizhΣ
Wikidata item
st.
c:
1Earththird planet from the Sun in the Solar System48Q28110
2MoonView on mapsEarth's only natural satellite49Q405599
3Sunstar at the centre of the Solar System49Q525386
4waterchemical compound formed with the molecule composed of two hydrogen atom and two oxygen atoms49Q283547
5historypast events and their tracks or records49Q309161
6humanany member of Homo sapiens, unique extant species of the genus Homo48Q5333
7firerapid oxidation of a material; phenomenon that emits light and heat48Q3196154
8Universetotality consisting of space, time, matter and energy47Q1253
9lifematter capable of extracting energy from the environment for replication48Q3183
10deathpermanent cessation of vital functions47Q4263
11skyeverything that is above the surface of a planet, typically the Earth43Q52784
12mindcombination of cognitive faculties that provides consciousness, thinking, reasoning, perception, and judgement in humans and potentially other life forms42Q450112
13happinessPositive emotional state45Q8111
Σautolist map13121313131313131213131313131313131213131312131213813913131012121313131311131313131391313131313612avg.:  12 \ 47
(96 %)
39556

Credit

[edit]

As of January 2022 the original or at least the oldest version I found is Module:WikimediaCEETable, made in 2016 by User:Voll for Wikimedia Central and Eastern Europe and which Special:WhatLinksHere/Module:WikimediaCEETable reports is used on 304 pages. It is hard for me to tell how many of those 304 pages have repeated tables, but I think about 50 of those 300 pages have original content based on checking a few. Other projects using derivative versions of this table tool are Module:WikiDonneLang from WikiDonne, which Special:WhatLinksHere/Module:WikiDonneLang reports is being used for about 10 projects. The other is Module:WikimediaCH2020 from Wikimedia CH, which Special:WhatLinksHere/Module:WikimediaCH2020 reports is being used in 6 projects.

Bluerasberry (talk) 20:01, 12 June 2022 (UTC)