Module:Tabular data

From MOASSpedia
Jump to navigation Jump to search

This module provides basic functions for interacting with tabular data on Wikimedia Commons.

cell

Returns the value of the cell at the given row index and column name.

Usage: {{#invoke:Tabular data|cell|Page name.tab|output_row=Index of row to output|output_column=Name of column to output}}

A row index of 1 refers to the first row in the table. A row index of -1 refers to the last row in the table. It is an error to specify a row index of 0.

Examples

Latest death toll in c:Data:COVID-19 cases in Santa Clara County, California.tab (regardless of when the table was last updated):

{{#invoke:Tabular data|cell
|output_row=-1
|output_column=deaths
|COVID-19 cases in Santa Clara County, California.tab}}

2855

lookup

Returns the value of the cell(s) in one or more output columns of the row matching the search key and column.

This function is reminiscent of LOOKUP() macros in popular spreadsheet applications, except that the search key must match exactly. (On the other hand, this means the table does not need to be sorted.)

Usage: {{#invoke:Tabular data|lookup|Page name.tab|search_value=Value to find in column|search_column=Name of column to search in|output_column=Name of column to output|output_column2=Name of another column to output|output_columnn=…|output_format=String format to format the output}}

If multiple columns are output without an explicit string format, this function formats the output as a human-readable list.

Some may find {{Tabular query}} (which uses this module) an intuitive way to obtain cell data as it resembles a simple SQL query.

Parameters

|1=
Page name on Commons with extension but no namespace
|search_value= or |search_pattern=
Value to find or pattern to match in column
|search_column=
Name of column to search in
|occurrence=
Index of the match to output in case of multiple matching rows. A row index of 1 refers to the first matching row. A row index of -1 refers to the last matching row. It is an error to specify a row index of 0.
|output_column= or |output_column1=, |output_column2=, ...
Names of columns to output
|output_format=
String format to format the output

Examples

Total confirmed case count in c:Data:COVID-19 cases in Santa Clara County, California.tab on the day that the county issued a stay-at-home order:

Lua error at line 48: Output column “totalConfirmedCases” not found..

The last day that a hundred or more patients with COVID-19 were in the hospital in c:Data:COVID-19 cases in Solano County, California.tab:

{{#invoke:Tabular data|lookup
|search_pattern=%d%d%d
|search_column=hospitalized
|output_column=date
|occurrence=-1
|COVID-19 cases in Solano County, California.tab}}

2022-02-06

Total number of administrators on all Wikimedia wikis using c:Data:Wikipedia statistics/data.tab:

{{#invoke:Tabular data|lookup
|search_column=site
|output_column=admins
|search_value=total.all
|Wikipedia statistics/data.tab}}

5701

Number of administrators and users on all Wikimedia wikis using c:Data:Wikipedia statistics/data.tab:

{{#invoke:Tabular data|lookup
|output_column=admins
|output_format=%d out of %d users are administrators
|search_column=site
|search_value=total.all
|output_column2=users
|Wikipedia statistics/data.tab}}

5701 out of 208493068 users are administrators

Note: Wikipedia statistics are shown as an illustration only. In practice, there is a high-performance module {{NUMBEROF}} to access Wikipedia statistics.

wikitable

Returns the entire data table as a (rather plain) table.

Usage: {{#invoke:Tabular data|wikitable|Page name.tab}}

Examples

COVID-19 statistics in Santa Clara County, California
{{#invoke:Tabular data|wikitable
|COVID-19 cases in Santa Clara County, California.tab}}

COVID-19 cases in Santa Clara County, California
DateNew casesTotal confirmed casesHospitalized confirmedHospitalized suspectedDeaths
2020-01-2711N/AN/A0
2020-01-2812N/AN/A0
2020-01-2913N/AN/A0
2020-01-3014N/AN/A0
2020-01-3126N/AN/A0
2020-02-0106N/AN/A0
2020-02-0206N/AN/A0
2020-02-0306N/AN/A0
2020-02-0406N/AN/A0
2020-02-0506N/AN/A0
2020-02-0606N/AN/A1
2020-02-0706N/AN/A1
2020-02-0806N/AN/A1
2020-02-0906N/AN/A1
2020-02-1006N/AN/A1
2020-02-1106N/AN/A1
2020-02-1206N/AN/A1
2020-02-1306N/AN/A1
2020-02-1406N/AN/A1
2020-02-1506N/AN/A1
2020-02-1606N/AN/A1
2020-02-1717N/AN/A2
2020-02-1807N/AN/A2
2020-02-1907N/AN/A2
2020-02-2018N/AN/A2
2020-02-2108N/AN/A2
2020-02-2208N/AN/A2
2020-02-2308N/AN/A2
2020-02-2408N/AN/A2
2020-02-2508N/AN/A2
2020-02-26210N/AN/A2
2020-02-27010N/AN/A2
2020-02-28212N/AN/A2
2020-02-29416N/AN/A2
2020-03-01016N/AN/A2
2020-03-02521N/AN/A2
2020-03-03223N/AN/A2
2020-03-04528N/AN/A2
2020-03-05735N/AN/A2
2020-03-061045N/AN/A3
2020-03-07853N/AN/A3
2020-03-08457N/AN/A3
2020-03-091774N/AN/A5
2020-03-101589N/AN/A5
2020-03-1126115N/AN/A5
2020-03-122313831N/A5
2020-03-134818637N/A6
2020-03-144322938N/A6
2020-03-1532261N/AN/A7
2020-03-163729852N/A7
2020-03-175134956N/A10
2020-03-184239156N/A10
2020-03-194343462N/A10
2020-03-206349765N/A12
2020-03-213653393N/A14
2020-03-2242575N/AN/A16
2020-03-2378653116N/A21
2020-03-2470723125N/A22
2020-03-2579802137N/A29
2020-03-2673875154N/A29
2020-03-27669411257430
2020-03-28409811419432
2020-03-29251,0061506234
2020-03-30741,08015410836
2020-03-31521,1321498737
2020-04-01501,1821526940
2020-04-02521,2341657742
2020-04-03431,2771657143
2020-04-04321,3091686345
2020-04-05421,3511675847
2020-04-06531,4041836448
2020-04-07411,4451895749
2020-04-08701,5151504251
2020-04-09681,5831517055
2020-04-10811,6641554556
2020-04-11411,7051404361
2020-04-12241,7291394867
2020-04-13401,7691484368
2020-04-14441,8131384070
2020-04-15311,8441416374
2020-04-16261,8701373677
2020-04-17401,9101493782
2020-04-18151,9251432786
2020-04-19141,9391431988
2020-04-20251,9641562293
2020-04-21261,9901443396
2020-04-22492,0391373599
2020-04-23202,05914325100
2020-04-24292,08813132101
2020-04-25142,10212631102
2020-04-26112,11312546105
2020-04-27242,13711546107
2020-04-28212,15811628109
2020-04-29282,18610918110
2020-04-30112,19710430113
2020-05-01222,2199328115
2020-05-02122,2319421118
2020-05-0382,2399719120
2020-05-04192,2589124124
2020-05-05132,2718014124
2020-05-06272,2987622126
2020-05-07132,3117214126
2020-05-08242,3357326127
2020-05-09112,3466624128
2020-05-1032,3496630128
2020-05-11202,3696330130
2020-05-12152,3845623131
2020-05-13202,4045615132
2020-05-14242,4285020133
2020-05-15152,4434718134
2020-05-16152,4584921135
2020-05-1772,4654525135
2020-05-18392,5044628135
2020-05-19442,5483726135
2020-05-20362,5843419135
2020-05-21212,6053511136
2020-05-22262,6313915136
2020-05-23172,6483314136
2020-05-2422,6503411136
2020-05-2572,6573114137
2020-05-26302,6873518137
2020-05-27392,7262716137
2020-05-28232,7492712139
2020-05-29442,7932623139
2020-05-30162,8092920139
2020-05-31102,8192621141
2020-06-01342,8532413142
2020-06-02252,8782717143
2020-06-03412,9193324143
2020-06-04362,9553534143
2020-06-05372,9923830144
2020-06-06133,0053923144
2020-06-07183,0233814144
2020-06-08393,062448144
2020-06-09463,1084110145
2020-06-10633,1714013146
2020-06-11503,2213920146
2020-06-12583,2794310147
2020-06-13213,3003510147
2020-06-14133,3133810147
2020-06-15623,3753714147
2020-06-16943,4693216147
2020-06-17913,5603620147
2020-06-181023,6623414147
2020-06-191113,7733817148
2020-06-20503,8233820149
2020-06-21373,8603814149
2020-06-221043,964488149
2020-06-231894,1535612151
2020-06-241464,2996511152
2020-06-251334,4326813153
2020-06-261374,5696611153
2020-06-271114,6807611153
2020-06-28604,7407813153
2020-06-291444,8848512155
2020-06-301895,073819155
2020-07-011855,2588115155
2020-07-021845,4429115156
2020-07-03785,5208315157
2020-07-04445,5648612159
2020-07-05955,6598727162
2020-07-062535,9128818164
2020-07-072906,2029817165
2020-07-082836,48510614165
2020-07-092826,76711623170
2020-07-102487,01511822170
2020-07-111817,19612025170
2020-07-121197,31512918171
2020-07-132067,52114424172
2020-07-143537,87414029174
2020-07-153818,25514537175
2020-07-163398,59414626177
2020-07-172958,88915131178
2020-07-181729,06115135180
2020-07-19889,14915635181
2020-07-202189,36716729182
2020-07-213129,67916934183
2020-07-222999,97817323183
2020-07-2328110,25917629186
2020-07-2424610,50517827187
2020-07-2512610,63117544189
2020-07-268610,71717446190
2020-07-2717610,89317429190
2020-07-2829811,19118525192
2020-07-2927111,46217732192
2020-07-3024011,70217833194
2020-07-3125911,96118220195
2020-08-0117312,13418331197
2020-08-028412,21818123199
2020-08-0317012,38816924202
2020-08-0430212,69017225205
2020-08-0533313,02316928206
2020-08-0624613,26916911206
2020-08-0725813,52717013206
2020-08-0820613,73317223206
2020-08-0910813,84117715207
2020-08-1022114,06218015207
2020-08-1132914,39116627209
2020-08-1228414,67516917210
2020-08-1324214,91717610213
2020-08-1425315,17016715214
2020-08-1515615,32617310216
2020-08-167115,3971729219
2020-08-1718515,58217111220
2020-08-1826815,8501667222
2020-08-1917216,02216216227
2020-08-2016216,18415320229
2020-08-2116616,35015511232
2020-08-2213716,48715812234
2020-08-236016,5471579236
2020-08-2415416,70115315240
2020-08-2528716,9881427241
2020-08-2622817,2161389247
2020-08-2719817,41413813247
2020-08-2819017,6041395250
2020-08-2914117,74514711251
2020-08-305617,80113813254
2020-08-3114817,94913111255
2020-09-0123418,18312814258
2020-09-0223118,41412816259
2020-09-0316818,58212222260
2020-09-0417718,75912012262
2020-09-059018,84912216262
2020-09-064518,89411612266
2020-09-074118,9351206266
2020-09-0819219,1271135270
2020-09-0920719,33412011270
2020-09-1014419,47811011271
2020-09-1113219,61010515273
2020-09-128319,69310713274
2020-09-133319,72610714279
2020-09-1412519,85110111283
2020-09-1522620,07710213286
2020-09-1615020,22710013286
2020-09-1717620,40310916288
2020-09-1813220,53511417288
2020-09-197120,60610814292
2020-09-204220,64810916293
2020-09-2112220,7709910294
2020-09-2214520,9151039296
2020-09-2313821,0531017298
2020-09-2411821,1711046300
2020-09-2510321,27410110300
2020-09-265321,3278610304
2020-09-274021,367896308
2020-09-289721,4648910310
2020-09-2914621,6108710312
2020-09-3011821,7288712315
2020-10-0112021,8488215315
2020-10-0212121,969788317
2020-10-036622,0357612319
2020-10-044322,0788815322
2020-10-058522,1638416324
2020-10-0614922,3127618325
2020-10-0713022,4427417325
2020-10-0812722,5697514330
2020-10-0911222,6816720331
2020-10-108722,7687213331
2020-10-114422,8127817334
2020-10-1213422,9468021336
2020-10-1315023,0967912336
2020-10-1414323,239859337
2020-10-1516023,3998312339
2020-10-1611123,5108611339
2020-10-176623,5767814339
2020-10-184023,6168713341
2020-10-1914023,7568812343
2020-10-2019723,9539622343
2020-10-2114824,1019213347
2020-10-2213224,2338913349
2020-10-2314524,3788713353
2020-10-246924,4479024355
2020-10-255624,5038721356
2020-10-2615824,6618016357
2020-10-2720224,8637819359
2020-10-2816925,0328311359
2020-10-2914325,175857360
2020-10-3014825,323909362
2020-10-319825,421857363
2020-11-015625,4778613367
2020-11-0222025,6978819371
2020-11-0328125,9789815372
2020-11-0429926,277999378
2020-11-0526626,5438715379
2020-11-0625826,8019313380
2020-11-0721127,01210216381
2020-11-088627,09810312384
2020-11-0929727,39510715385
2020-11-1042727,82210621386
2020-11-1134528,16710210388
2020-11-1244528,61211015389
2020-11-1338128,9931296390
2020-11-1426729,26013511391
2020-11-1511729,3771456395
2020-11-1631729,6941517396
2020-11-1756530,2591557403
2020-11-1857530,8341616404
2020-11-1951331,3471669408
2020-11-2055231,89917512408
2020-11-2134132,24019216411
2020-11-2227432,51419111413
2020-11-2363133,14519717414
2020-11-2468933,83421322419
2020-11-2584234,67622118422
2020-11-2615234,82822215425
2020-11-2752935,35723914427
2020-11-2856035,91727220432
2020-11-2951136,42828615436
2020-11-3094337,3712889439
2020-12-011,29838,6692877444
2020-12-021,35140,02029611451
2020-12-031,22841,24831115461
2020-12-041,22542,47331913465
2020-12-0581643,28933319470
2020-12-0649343,78236520477
2020-12-071,28245,06438330488
2020-12-081,55246,61640320494
2020-12-091,53948,15541413502
2020-12-101,33249,48742626511
2020-12-111,11450,60144623522
2020-12-1282051,42148418532
2020-12-1376652,18749123539
2020-12-141,24753,43452825552
2020-12-151,83555,26955821572
2020-12-161,64056,90956622583
2020-12-171,49658,40557621601
2020-12-181,18659,59161031614
2020-12-1974860,33960821635
2020-12-2060160,94062127650
2020-12-211,52862,46862322674
2020-12-221,43863,90663125693
2020-12-231,43265,33864518708
2020-12-2474266,08066515723
2020-12-2520966,28963022744
2020-12-2699067,27965116763
2020-12-2780568,08466918790
2020-12-281,82269,90671223810
2020-12-291,81471,72069720831
2020-12-301,91173,63168217850
2020-12-311,17574,80669622870
2021-01-0127575,08169121902
2021-01-0299076,07169124922
2021-01-0392876,99970020947
2021-01-041,60578,60472718960
2021-01-052,25280,85670917978
2021-01-061,80882,66472625993
2021-01-071,62584,289707211,010
2021-01-081,14285,431708191,027
2021-01-0987086,301700181,051
2021-01-1069586,996693151,063
2021-01-111,28288,278695141,086
2021-01-121,48589,763689201,112
2021-01-131,31491,077666311,130
2021-01-141,16492,241638271,147
2021-01-151,05493,295638251,172
2021-01-1662093,915623181,192
2021-01-1747094,385612181,213
2021-01-1873895,123614171,232
2021-01-191,02096,143608171,251
2021-01-2088397,026601211,269
2021-01-2177897,804585131,281
2021-01-2261998,423569141,298
2021-01-2342298,845545131,314
2021-01-2434599,190555181,328
2021-01-2562599,815523121,340
2021-01-26541100,356502121,353
2021-01-27530100,886503141,368
2021-01-28417101,303487101,382
2021-01-29508101,811479121,396
2021-01-30382102,193477131,400
2021-01-31275102,468474161,412
2021-02-01547103,015463161,428
2021-02-02453103,46843891,438
2021-02-03492103,960413131,455
2021-02-04396104,356377191,467
2021-02-05393104,749358161,477
2021-02-06243104,992344251,482
2021-02-07181105,173326141,491
2021-02-08349105,522334121,496
2021-02-09410105,932347151,507
2021-02-10375106,307325141,518
2021-02-11303106,610326191,530
2021-02-12263106,873319131,538
2021-02-13152107,025281131,543
2021-02-14185107,210296171,548
2021-02-15187107,397280271,556
2021-02-16242107,639274171,560
2021-02-17263107,902266131,569
2021-02-18270108,172253151,574
2021-02-19233108,405257131,579
2021-02-20175108,580225111,586
2021-02-21165108,745227141,591
2021-02-22261109,006224141,595
2021-02-23217109,223223221,601
2021-02-24258109,481205211,603
2021-02-25165109,646198191,606
2021-02-26156109,802195241,614
2021-02-27137109,939190271,619
2021-02-28123110,062182181,621
2021-03-01205110,267178151,625
2021-03-02183110,450168131,627
2021-03-03193110,643180171,628
2021-03-04164110,807171171,631
2021-03-05152110,959165241,635
2021-03-0684111,043151261,637
2021-03-0777111,120155121,638
2021-03-08163111,283151101,641
2021-03-09151111,434143181,644
2021-03-10135111,569148161,649
2021-03-11123111,692138141,654
2021-03-12112111,804135131,658
2021-03-1396111,900128121,659
2021-03-1466111,966134141,660
2021-03-15137112,103136121,660
2021-03-16116112,219135141,661
2021-03-17153112,372134161,663
2021-03-18107112,479128111,666
2021-03-19114112,59313071,668
2021-03-2067112,660119121,669
2021-03-2176112,736114171,670
2021-03-22113112,849120131,673
2021-03-23120112,969105201,675
2021-03-24125113,094124141,676
2021-03-25134113,228107101,679
2021-03-26127113,355115101,679
2021-03-2767113,422100131,680
2021-03-2866113,4889861,681
2021-03-29114113,60211491,683
2021-03-3091113,693114111,683
2021-03-31142113,835105101,683
2021-04-01124113,95910061,683
2021-04-02104114,06396271,685
2021-04-0371114,1349301,687
2021-04-0459114,1939821,693
2021-04-05194114,3879551,694
2021-04-06167114,55410371,695
2021-04-07169114,72396101,696
2021-04-08159114,8829771,698
2021-04-09130115,012105101,698
2021-04-10100115,1129491,700
2021-04-1167115,1799471,701
2021-04-12144115,3239061,701
2021-04-13119115,4428071,701
2021-04-14148115,59010251,701
2021-04-15139115,7298891,703
2021-04-16115115,84482131,704
2021-04-1794115,93876111,705
2021-04-1880116,0187161,705
2021-04-19134116,1528191,705
2021-04-20124116,27681111,706
2021-04-21120116,39670101,706
2021-04-2278116,4747081,707
2021-04-2394116,56865111,707
2021-04-2462116,63076101,708
2021-04-2551116,68185101,709
2021-04-2676116,75776101,710
2021-04-27106116,8637481,710
2021-04-2863116,92673101,713
2021-04-2983117,0097671,714
2021-04-3064117,0737661,714
2021-05-0147117,1208061,714
2021-05-0248117,16870111,714
2021-05-0372117,2406491,717
2021-05-0485117,32560121,718
2021-05-0571117,3966391,719
2021-05-0646117,44270131,720
2021-05-0752117,49471121,722
2021-05-0826117,5207581,722
2021-05-0926117,54665101,722
2021-05-1042117,5886991,722
2021-05-1170117,65859101,722
2021-05-1250117,70862151,722
2021-05-1361117,76959111,723
2021-05-1442117,81162111,723
2021-05-1523117,8346261,724
2021-05-1628117,86262121,724
2021-05-1728117,8906671,724
2021-05-1839117,9296351,724
2021-05-1927117,9566121,725
2021-05-2045118,0015421,725
2021-05-2119118,0206121,725
2021-05-2228118,0486041,726
2021-05-2318118,0665251,726
2021-05-2424118,090N/AN/A1,726
2021-05-2531118,121N/AN/A1,726
2021-05-2623118,144N/AN/A1,727
2021-05-2730118,174N/AN/A1,727
2021-05-2822118,196N/AN/A1,728
2021-05-2916118,212N/AN/A1,729
2021-05-3024118,236N/AN/A1,730
2021-05-316118,242N/AN/A1,730
2021-06-0142118,284N/AN/A1,731
2021-06-0238118,322N/AN/A1,731
2021-06-0334118,356N/AN/A1,732
2021-06-0439118,395N/AN/A1,732
2021-06-0521118,416N/AN/A1,733
2021-06-0619118,435N/AN/A1,733
2021-06-0727118,462N/AN/A1,734
2021-06-0823118,485N/AN/A1,735
2021-06-0926118,511N/AN/A1,736
2021-06-1038118,549N/AN/A1,737
2021-06-1133118,582N/AN/A1,738
2021-06-1221118,603N/AN/A1,738
2021-06-1321118,624N/AN/A1,739
2021-06-1418118,642N/AN/A1,739
2021-06-1534118,676N/AN/A1,739
2021-06-1629118,705N/AN/A1,739
2021-06-1743118,748N/AN/A1,739
2021-06-1826118,774N/AN/A1,739
2021-06-1916118,790N/AN/A1,740
2021-06-2016118,806N/AN/A1,740
2021-06-2142118,848N/AN/A1,740
2021-06-2238118,886N/AN/A1,740
2021-06-2330118,916N/AN/A1,740
2021-06-2434118,950N/AN/A1,740
2021-06-2527118,977N/AN/A1,740
2021-06-2618118,995N/AN/A1,740
2021-06-2722119,017N/AN/A1,741
2021-06-2848119,065N/AN/A1,741
2021-06-2943119,108N/AN/A1,741
2021-06-3046119,154N/AN/A1,741
2021-07-0152119,206N/AN/A1,741
2021-07-0243119,249N/AN/A1,741
2021-07-0366119,315N/AN/A1,741
2021-07-0420119,335N/AN/A1,741
2021-07-0556119,391N/AN/A1,741
2021-07-06107119,498N/AN/A1,741
2021-07-0788119,586N/AN/A1,742
2021-07-0891119,677N/AN/A1,742
2021-07-0998119,775N/AN/A1,742
2021-07-10105119,880N/AN/A1,742
2021-07-1168119,948N/AN/A1,742
2021-07-12128120,076N/AN/A1,742
2021-07-13147120,223N/AN/A1,743
2021-07-14160120,383N/AN/A1,743
2021-07-15166120,549N/AN/A1,743
2021-07-16139120,688N/AN/A1,743
2021-07-17148120,836N/AN/A1,743
2021-07-18115120,951N/AN/A1,743
2021-07-19199121,150N/AN/A1,744
2021-07-20228121,378N/AN/A1,744
2021-07-21255121,633N/AN/A1,744
2021-07-22218121,851N/AN/A1,744
2021-07-23235122,086N/AN/A1,745
2021-07-24178122,264N/AN/A1,746
2021-07-25159122,423N/AN/A1,746
2021-07-26306122,729N/AN/A1,746
2021-07-27336123,065N/AN/A1,746
2021-07-28346123,411N/AN/A1,747
2021-07-29323123,734N/AN/A1,747
2021-07-30272124,006N/AN/A1,748
2021-07-31228124,234N/AN/A1,749
2021-08-01222124,456N/AN/A1,749
2021-08-02339124,795N/AN/A1,749
2021-08-03450125,245N/AN/A1,750
2021-08-04426125,671N/AN/A1,750
2021-08-05443126,114N/AN/A1,750
2021-08-06356126,470N/AN/A1,750
2021-08-07265126,735N/AN/A1,752
2021-08-08236126,971N/AN/A1,753
2021-08-09435127,406N/AN/A1,755
2021-08-10491127,897N/AN/A1,757
2021-08-11447128,344N/AN/A1,758
2021-08-12464128,808N/AN/A1,759
2021-08-13487129,295N/AN/A1,759
2021-08-14311129,606N/AN/A1,761
2021-08-15238129,844N/AN/A1,761
2021-08-16419130,263N/AN/A1,764
2021-08-17524130,787N/AN/A1,765
2021-08-18468131,255N/AN/A1,767
2021-08-19382131,637N/AN/A1,767
2021-08-20403132,040N/AN/A1,768
2021-08-21247132,287N/AN/A1,769
2021-08-22214132,501N/AN/A1,775
2021-08-23415132,916N/AN/A1,775
2021-08-24415133,331N/AN/A1,775
2021-08-25454133,785N/AN/A1,777
2021-08-26398134,183N/AN/A1,780
2021-08-27373134,556N/AN/A1,784
2021-08-28212134,768N/AN/A1,788
2021-08-29190134,958N/AN/A1,791
2021-08-30377135,335N/AN/A1,793
2021-08-31353135,688N/AN/A1,795
2021-09-01340136,028N/AN/A1,798
2021-09-02336136,364N/AN/A1,802
2021-09-03333136,697N/AN/A1,805
2021-09-04174136,871N/AN/A1,806
2021-09-05160137,031N/AN/A1,809
2021-09-06168137,199N/AN/A1,812
2021-09-07329137,528N/AN/A1,814
2021-09-08298137,826N/AN/A1,817
2021-09-09280138,106N/AN/A1,825
2021-09-10245138,351N/AN/A1,826
2021-09-11192138,543N/AN/A1,831
2021-09-1296138,639N/AN/A1,835
2021-09-13279138,918N/AN/A1,838
2021-09-14254139,172N/AN/A1,842
2021-09-15244139,416N/AN/A1,843
2021-09-16220139,636N/AN/A1,846
2021-09-17191139,827N/AN/A1,846
2021-09-18137139,964N/AN/A1,848
2021-09-1998140,062N/AN/A1,849
2021-09-20212140,274N/AN/A1,849
2021-09-21194140,468N/AN/A1,851
2021-09-22231140,699N/AN/A1,851
2021-09-23175140,874N/AN/A1,854
2021-09-24173141,047N/AN/A1,857
2021-09-25123141,170N/AN/A1,859
2021-09-2679141,249N/AN/A1,860
2021-09-27203141,452N/AN/A1,861
2021-09-28185141,637N/AN/A1,864
2021-09-29175141,812N/AN/A1,864
2021-09-30148141,960N/AN/A1,866
2021-10-01137142,097N/AN/A1,867
2021-10-02110142,207N/AN/A1,867
2021-10-03113142,320N/AN/A1,872
2021-10-04163142,483N/AN/A1,873
2021-10-05143142,626N/AN/A1,876
2021-10-06160142,786N/AN/A1,876
2021-10-07152142,938N/AN/A1,876
2021-10-08154143,092N/AN/A1,879
2021-10-0992143,184N/AN/A1,880
2021-10-1091143,275N/AN/A1,883
2021-10-11163143,438N/AN/A1,884
2021-10-12196143,634N/AN/A1,885
2021-10-13170143,804N/AN/A1,885
2021-10-14130143,934N/AN/A1,887
2021-10-15136144,070N/AN/A1,887
2021-10-16105144,175N/AN/A1,888
2021-10-1791144,266N/AN/A1,888
2021-10-18173144,439N/AN/A1,889
2021-10-19173144,612N/AN/A1,890
2021-10-20172144,784N/AN/A1,892
2021-10-21159144,943N/AN/A1,893
2021-10-22174145,117N/AN/A1,897
2021-10-23143145,260N/AN/A1,897
2021-10-2488145,348N/AN/A1,898
2021-10-25191145,539N/AN/A1,899
2021-10-26180145,719N/AN/A1,901
2021-10-27191145,910N/AN/A1,901
2021-10-28208146,118N/AN/A1,904
2021-10-29159146,277N/AN/A1,905
2021-10-30134146,411N/AN/A1,905
2021-10-3189146,500N/AN/A1,906
2021-11-01205146,705N/AN/A1,907
2021-11-02202146,907N/AN/A1,908
2021-11-03202147,109N/AN/A1,911
2021-11-04190147,299N/AN/A1,912
2021-11-05185147,484N/AN/A1,913
2021-11-06124147,608N/AN/A1,913
2021-11-07107147,715N/AN/A1,914
2021-11-08227147,942N/AN/A1,918
2021-11-09242148,184N/AN/A1,919
2021-11-10178148,362N/AN/A1,922
2021-11-11144148,506N/AN/A1,922
2021-11-12220148,726N/AN/A1,923
2021-11-13116148,842N/AN/A1,924
2021-11-14116148,958N/AN/A1,925
2021-11-15213149,171N/AN/A1,927
2021-11-16218149,389N/AN/A1,928
2021-11-17187149,576N/AN/A1,929
2021-11-18149149,725N/AN/A1,929
2021-11-19231149,956N/AN/A1,930
2021-11-20120150,076N/AN/A1,930
2021-11-2193150,169N/AN/A1,932
2021-11-22214150,383N/AN/A1,932
2021-11-23168150,551N/AN/A1,934
2021-11-24182150,733N/AN/A1,934
2021-11-2525150,758N/AN/A1,935
2021-11-26160150,918N/AN/A1,937
2021-11-27141151,059N/AN/A1,937
2021-11-28158151,217N/AN/A1,937
2021-11-29319151,536N/AN/A1,938
2021-11-30304151,840N/AN/A1,941
2021-12-01272152,112N/AN/A1,942
2021-12-02252152,364N/AN/A1,944
2021-12-03259152,623N/AN/A1,945
2021-12-04164152,787N/AN/A1,947
2021-12-05149152,936N/AN/A1,948
2021-12-06298153,234N/AN/A1,949
2021-12-07228153,462N/AN/A1,952
2021-12-08196153,658N/AN/A1,952
2021-12-09182153,840N/AN/A1,952
2021-12-10197154,037N/AN/A1,952
2021-12-11162154,199N/AN/A1,954
2021-12-12128154,327N/AN/A1,954
2021-12-13216154,543N/AN/A1,956
2021-12-14231154,774N/AN/A1,957
2021-12-15278155,052N/AN/A1,957
2021-12-16301155,353N/AN/A1,960
2021-12-17310155,663N/AN/A1,961
2021-12-18285155,948N/AN/A1,961
2021-12-19261156,209N/AN/A1,963
2021-12-20652156,861N/AN/A1,965
2021-12-21736157,597N/AN/A1,967
2021-12-221,021158,618N/AN/A1,967
2021-12-231,130159,748N/AN/A1,970
2021-12-24603160,351N/AN/A1,971
2021-12-25193160,544N/AN/A1,973
2021-12-26980161,524N/AN/A1,973
2021-12-272,631164,155N/AN/A1,975
2021-12-283,205167,360N/AN/A1,976
2021-12-293,451170,811N/AN/A1,978
2021-12-303,260174,071N/AN/A1,980
2021-12-312,169176,240N/AN/A1,980
2022-01-01905177,145N/AN/A1,981
2022-01-022,494179,639N/AN/A1,981
2022-01-035,988185,627N/AN/A1,985
2022-01-046,439192,066N/AN/A1,987
2022-01-056,815198,881N/AN/A1,990
2022-01-066,365205,246N/AN/A1,992
2022-01-075,303210,549N/AN/A1,996
2022-01-083,317213,866N/AN/A2,002
2022-01-093,085216,951N/AN/A2,005
2022-01-106,217223,168N/AN/A2,010
2022-01-116,078229,246N/AN/A2,011
2022-01-125,847235,093N/AN/A2,013
2022-01-135,127240,220N/AN/A2,015
2022-01-144,659244,879N/AN/A2,017
2022-01-152,475247,354N/AN/A2,023
2022-01-162,066249,420N/AN/A2,029
2022-01-173,871253,291N/AN/A2,034
2022-01-184,774258,065N/AN/A2,041
2022-01-194,334262,399N/AN/A2,051
2022-01-204,112266,511N/AN/A2,058
2022-01-213,453269,964N/AN/A2,067
2022-01-221,730271,694N/AN/A2,074
2022-01-231,613273,307N/AN/A2,080
2022-01-243,640276,947N/AN/A2,081
2022-01-253,052279,999N/AN/A2,092
2022-01-262,815282,814N/AN/A2,095
2022-01-272,425285,239N/AN/A2,100
2022-01-282,285287,524N/AN/A2,112
2022-01-291,270288,794N/AN/A2,122
2022-01-30963289,757N/AN/A2,132
2022-01-312,198291,955N/AN/A2,136
2022-02-011,679293,634N/AN/A2,137
2022-02-021,645295,279N/AN/A2,143
2022-02-031,286296,565N/AN/A2,147
2022-02-041,229297,794N/AN/A2,152
2022-02-05615298,409N/AN/A2,156
2022-02-06603299,012N/AN/A2,162
2022-02-071,192300,204N/AN/A2,167
2022-02-08971301,175N/AN/A2,169
2022-02-09981302,156N/AN/A2,173
2022-02-10778302,934N/AN/A2,177
2022-02-11708303,642N/AN/A2,181
2022-02-12463304,105N/AN/A2,186
2022-02-13342304,447N/AN/A2,191
2022-02-14662305,109N/AN/A2,193
2022-02-15558305,667N/AN/A2,200
2022-02-16548306,215N/AN/A2,203
2022-02-17391306,606N/AN/A2,208
2022-02-18380306,986N/AN/A2,211
2022-02-19238307,224N/AN/A2,212
2022-02-20188307,412N/AN/A2,218
2022-02-21281307,693N/AN/A2,221
2022-02-22390308,083N/AN/A2,225
2022-02-23272308,355N/AN/A2,232
2022-02-24276308,631N/AN/A2,234
2022-02-25272308,903N/AN/A2,238
2022-02-26174309,077N/AN/A2,238
2022-02-27133309,210N/AN/A2,239
2022-02-28309309,519N/AN/A2,241
2022-03-01278309,797N/AN/A2,244
2022-03-02240310,037N/AN/A2,246
2022-03-03252310,289N/AN/A2,247
2022-03-04188310,477N/AN/A2,248
2022-03-05130310,607N/AN/A2,250
2022-03-06104310,711N/AN/A2,253
2022-03-07254310,965N/AN/A2,255
2022-03-08213311,178N/AN/A2,256
2022-03-09240311,418N/AN/A2,259
2022-03-10160311,578N/AN/A2,263
2022-03-11187311,765N/AN/A2,264
2022-03-12134311,899N/AN/A2,267
2022-03-1376311,975N/AN/A2,267
2022-03-14192312,167N/AN/A2,267
2022-03-15180312,347N/AN/A2,267
2022-03-16182312,529N/AN/A2,267
2022-03-17177312,706N/AN/A2,267
2022-03-18146312,852N/AN/A2,268
2022-03-1995312,947N/AN/A2,268
2022-03-2096313,043N/AN/A2,271
2022-03-21180313,223N/AN/A2,272
2022-03-22240313,463N/AN/A2,273
2022-03-23171313,634N/AN/A2,274
2022-03-24189313,823N/AN/A2,275
2022-03-25149313,972N/AN/A2,275
2022-03-26139314,111N/AN/A2,278
2022-03-27142314,253N/AN/A2,281
2022-03-28207314,460N/AN/A2,284
2022-03-29245314,705N/AN/A2,285
2022-03-30258314,963N/AN/A2,286
2022-03-31200315,163N/AN/A2,287
2022-04-01199315,362N/AN/A2,287
2022-04-02127315,489N/AN/A2,287
2022-04-03143315,632N/AN/A2,287
2022-04-04297315,929N/AN/A2,287
2022-04-05263316,192N/AN/A2,287
2022-04-06279316,471N/AN/A2,287
2022-04-07222316,693N/AN/A2,287
2022-04-08221316,914N/AN/A2,288
2022-04-09152317,066N/AN/A2,288
2022-04-10164317,230N/AN/A2,290
2022-04-11280317,510N/AN/A2,291
2022-04-12350317,860N/AN/A2,292
2022-04-13291318,151N/AN/A2,294
2022-04-14270318,421N/AN/A2,294
2022-04-15305318,726N/AN/A2,295
2022-04-16261318,987N/AN/A2,295
2022-04-17198319,185N/AN/A2,295
2022-04-18451319,636N/AN/A2,295
2022-04-19446320,082N/AN/A2,295
2022-04-20423320,505N/AN/A2,296
2022-04-21415320,920N/AN/A2,297
2022-04-22462321,382N/AN/A2,297
2022-04-23305321,687N/AN/A2,297
2022-04-24335322,022N/AN/A2,298
2022-04-25689322,711N/AN/A2,299
2022-04-26635323,346N/AN/A2,299
2022-04-27579323,925N/AN/A2,301
2022-04-28542324,467N/AN/A2,302
2022-04-29559325,026N/AN/A2,302
2022-04-30444325,470N/AN/A2,302
2022-05-01389325,859N/AN/A2,302
2022-05-02889326,748N/AN/A2,303
2022-05-03931327,679N/AN/A2,304
2022-05-04853328,532N/AN/A2,304
2022-05-05815329,347N/AN/A2,304
2022-05-06781330,128N/AN/A2,304
2022-05-07559330,687N/AN/A2,304
2022-05-08471331,158N/AN/A2,304
2022-05-091,032332,190N/AN/A2,305
2022-05-101,203333,393N/AN/A2,306
2022-05-111,061334,454N/AN/A2,308
2022-05-121,043335,497N/AN/A2,309
2022-05-13953336,450N/AN/A2,311
2022-05-14708337,158N/AN/A2,312
2022-05-15735337,893N/AN/A2,314
2022-05-161,385339,278N/AN/A2,315
2022-05-171,341340,619N/AN/A2,316
2022-05-181,255341,874N/AN/A2,317
2022-05-191,269343,143N/AN/A2,317
2022-05-201,103344,246N/AN/A2,318
2022-05-21732344,978N/AN/A2,319
2022-05-22747345,725N/AN/A2,321
2022-05-231,418347,143N/AN/A2,322
2022-05-241,423348,566N/AN/A2,323
2022-05-251,378349,944N/AN/A2,324
2022-05-261,159351,103N/AN/A2,327
2022-05-271,037352,140N/AN/A2,328
2022-05-28718352,858N/AN/A2,330
2022-05-29710353,568N/AN/A2,331
2022-05-30709354,277N/AN/A2,331
2022-05-311,652355,929N/AN/A2,331
2022-06-011,436357,365N/AN/A2,333
2022-06-021,203358,568N/AN/A2,334
2022-06-031,137359,705N/AN/A2,335
2022-06-04864360,569N/AN/A2,337
2022-06-05775361,344N/AN/A2,337
2022-06-061,434362,778N/AN/A2,337
2022-06-071,263364,041N/AN/A2,337
2022-06-081,212365,253N/AN/A2,338
2022-06-091,075366,328N/AN/A2,342
2022-06-101,060367,388N/AN/A2,343
2022-06-11702368,090N/AN/A2,346
2022-06-12650368,740N/AN/A2,347
2022-06-131,105369,845N/AN/A2,348
2022-06-141,119370,964N/AN/A2,350
2022-06-151,124372,088N/AN/A2,351
2022-06-16980373,068N/AN/A2,352
2022-06-17969374,037N/AN/A2,354
2022-06-18758374,795N/AN/A2,355
2022-06-19662375,457N/AN/A2,355
2022-06-201,146376,603N/AN/A2,358
2022-06-211,270377,873N/AN/A2,359
2022-06-221,186379,059N/AN/A2,362
2022-06-231,124380,183N/AN/A2,363
2022-06-241,039381,222N/AN/A2,365
2022-06-25792382,014N/AN/A2,366
2022-06-26730382,744N/AN/A2,367
2022-06-271,328384,072N/AN/A2,368
2022-06-281,514385,586N/AN/A2,370
2022-06-291,244386,830N/AN/A2,373
2022-06-301,074387,904N/AN/A2,377
2022-07-011,048388,952N/AN/A2,378
2022-07-02667389,619N/AN/A2,380
2022-07-03637390,256N/AN/A2,383
2022-07-04520390,776N/AN/A2,384
2022-07-051,561392,337N/AN/A2,386
2022-07-061,212393,549N/AN/A2,388
2022-07-071,186394,735N/AN/A2,390
2022-07-081,031395,766N/AN/A2,391
2022-07-09777396,543N/AN/A2,393
2022-07-10659397,202N/AN/A2,395
2022-07-111,142398,344N/AN/A2,397
2022-07-121,103399,447N/AN/A2,397
2022-07-131,017400,464N/AN/A2,400
2022-07-14929401,393N/AN/A2,400
2022-07-15920402,313N/AN/A2,402
2022-07-16653402,966N/AN/A2,405
2022-07-17620403,586N/AN/A2,405
2022-07-181,119404,705N/AN/A2,409
2022-07-191,002405,707N/AN/A2,413
2022-07-20981406,688N/AN/A2,415
2022-07-21873407,561N/AN/A2,417
2022-07-22863408,424N/AN/A2,421
2022-07-23609409,033N/AN/A2,422
2022-07-24513409,546N/AN/A2,424
2022-07-251,019410,565N/AN/A2,426
2022-07-26922411,487N/AN/A2,430
2022-07-27934412,421N/AN/A2,432
2022-07-28709413,130N/AN/A2,435
2022-07-29690413,820N/AN/A2,435
2022-07-30472414,292N/AN/A2,437
2022-07-31456414,748N/AN/A2,440
2022-08-01732415,480N/AN/A2,445
2022-08-02833416,313N/AN/A2,446
2022-08-03663416,976N/AN/A2,450
2022-08-04470417,446N/AN/A2,450
2022-08-05584418,030N/AN/A2,453
2022-08-06493418,523N/AN/A2,456
2022-08-07434418,957N/AN/A2,461
2022-08-08709419,666N/AN/A2,461
2022-08-09627420,293N/AN/A2,463
2022-08-10593420,886N/AN/A2,464
2022-08-11550421,436N/AN/A2,466
2022-08-12445421,881N/AN/A2,467
2022-08-13336422,217N/AN/A2,467
2022-08-14283422,500N/AN/A2,469
2022-08-15596423,096N/AN/A2,470
2022-08-16542423,638N/AN/A2,472
2022-08-17506424,144N/AN/A2,472
2022-08-18479424,623N/AN/A2,474
2022-08-19468425,091N/AN/A2,476
2022-08-20312425,403N/AN/A2,477
2022-08-21236425,639N/AN/A2,480
2022-08-22526426,165N/AN/A2,480
2022-08-23439426,604N/AN/A2,480
2022-08-24406427,010N/AN/A2,480
2022-08-25346427,356N/AN/A2,480
2022-08-26336427,692N/AN/A2,483
2022-08-27238427,930N/AN/A2,484
2022-08-28205428,135N/AN/A2,486
2022-08-29384428,519N/AN/A2,486
2022-08-30414428,933N/AN/A2,488
2022-08-31363429,296N/AN/A2,489
2022-09-01294429,590N/AN/A2,492
2022-09-02322429,912N/AN/A2,494
2022-09-03193430,105N/AN/A2,495
2022-09-04184430,289N/AN/A2,496
2022-09-05168430,457N/AN/A2,496
2022-09-06370430,827N/AN/A2,497
2022-09-07310431,137N/AN/A2,498
2022-09-08283431,420N/AN/A2,501
2022-09-09263431,683N/AN/A2,504
2022-09-10178431,861N/AN/A2,505
2022-09-11203432,064N/AN/A2,506
2022-09-12310432,374N/AN/A2,506
2022-09-13266432,640N/AN/A2,506
2022-09-14252432,892N/AN/A2,507
2022-09-15201433,093N/AN/A2,508
2022-09-16238433,331N/AN/A2,510
2022-09-17147433,478N/AN/A2,511
2022-09-18134433,612N/AN/A2,512
2022-09-19244433,856N/AN/A2,513
2022-09-20231434,087N/AN/A2,517
2022-09-21212434,299N/AN/A2,517
2022-09-22200434,499N/AN/A2,517
2022-09-23192434,691N/AN/A2,518
2022-09-24148434,839N/AN/A2,518
2022-09-25133434,972N/AN/A2,521
2022-09-26261435,233N/AN/A2,523
2022-09-27263435,496N/AN/A2,524
2022-09-28239435,735N/AN/A2,527
2022-09-29186435,921N/AN/A2,527
2022-09-30220436,141N/AN/A2,527
2022-10-01168436,309N/AN/A2,527
2022-10-02170436,479N/AN/A2,529
2022-10-03219436,698N/AN/A2,529
2022-10-04218436,916N/AN/A2,530
2022-10-05197437,113N/AN/A2,530
2022-10-06188437,301N/AN/A2,530
2022-10-07161437,462N/AN/A2,531
2022-10-08122437,584N/AN/A2,533
2022-10-09111437,695N/AN/A2,533
2022-10-10220437,915N/AN/A2,533
2022-10-11203438,118N/AN/A2,533
2022-10-12178438,296N/AN/A2,533
2022-10-13198438,494N/AN/A2,535
2022-10-14171438,665N/AN/A2,537
2022-10-15126438,791N/AN/A2,537
2022-10-16111438,902N/AN/A2,538
2022-10-17199439,101N/AN/A2,538
2022-10-18221439,322N/AN/A2,538
2022-10-19205439,527N/AN/A2,538
2022-10-20147439,674N/AN/A2,538
2022-10-21150439,824N/AN/A2,538
2022-10-22121439,945N/AN/A2,540
2022-10-23117440,062N/AN/A2,540
2022-10-24217440,279N/AN/A2,541
2022-10-25213440,492N/AN/A2,541
2022-10-26204440,696N/AN/A2,542
2022-10-27184440,880N/AN/A2,542
2022-10-28167441,047N/AN/A2,543
2022-10-29132441,179N/AN/A2,544
2022-10-30128441,307N/AN/A2,544
2022-10-31239441,546N/AN/A2,544
2022-11-01230441,776N/AN/A2,545
2022-11-02246442,022N/AN/A2,545
2022-11-03233442,255N/AN/A2,546
2022-11-04251442,506N/AN/A2,549
2022-11-05170442,676N/AN/A2,550
2022-11-06179442,855N/AN/A2,551
2022-11-07297443,152N/AN/A2,551
2022-11-08276443,428N/AN/A2,551
2022-11-09281443,709N/AN/A2,552
2022-11-10254443,963N/AN/A2,552
2022-11-11244444,207N/AN/A2,553
2022-11-12158444,365N/AN/A2,554
2022-11-13184444,549N/AN/A2,554
2022-11-14350444,899N/AN/A2,554
2022-11-15349445,248N/AN/A2,555
2022-11-16305445,553N/AN/A2,557
2022-11-17358445,911N/AN/A2,558
2022-11-18327446,238N/AN/A2,559
2022-11-19217446,455N/AN/A2,562
2022-11-20204446,659N/AN/A2,563
2022-11-21408447,067N/AN/A2,564
2022-11-22418447,485N/AN/A2,564
2022-11-23409447,894N/AN/A2,567
2022-11-2484447,978N/AN/A2,568
2022-11-25300448,278N/AN/A2,569
2022-11-26415448,693N/AN/A2,570
2022-11-27428449,121N/AN/A2,572
2022-11-28750449,871N/AN/A2,573
2022-11-29639450,510N/AN/A2,574
2022-11-30625451,135N/AN/A2,576
2022-12-01518451,653N/AN/A2,577
2022-12-02513452,166N/AN/A2,578
2022-12-03256452,422N/AN/A2,580
2022-12-04291452,713N/AN/A2,582
2022-12-05676453,389N/AN/A2,585
2022-12-06626454,015N/AN/A2,588
2022-12-07538454,553N/AN/A2,591
2022-12-08458455,011N/AN/A2,594
2022-12-09541455,552N/AN/A2,595
2022-12-10299455,851N/AN/A2,600
2022-12-11248456,099N/AN/A2,602
2022-12-12646456,745N/AN/A2,604
2022-12-13570457,315N/AN/A2,605
2022-12-14480457,795N/AN/A2,608
2022-12-15400458,195N/AN/A2,611
2022-12-16399458,594N/AN/A2,614
2022-12-17257458,851N/AN/A2,616
2022-12-18204459,055N/AN/A2,617
2022-12-19565459,620N/AN/A2,620
2022-12-20453460,073N/AN/A2,621
2022-12-21441460,514N/AN/A2,623
2022-12-22436460,950N/AN/A2,623
2022-12-23402461,352N/AN/A2,624
2022-12-24151461,503N/AN/A2,627
2022-12-2589461,592N/AN/A2,629
2022-12-26355461,947N/AN/A2,629
2022-12-27553462,500N/AN/A2,631
2022-12-28526463,026N/AN/A2,634
2022-12-29433463,459N/AN/A2,636
2022-12-30486463,945N/AN/A2,639
2022-12-31194464,139N/AN/A2,641
2023-01-0183464,222N/AN/A2,643
2023-01-02295464,517N/AN/A2,646
2023-01-03525465,042N/AN/A2,648
2023-01-04291465,333N/AN/A2,651
2023-01-05319465,652N/AN/A2,652
2023-01-06361466,013N/AN/A2,656
2023-01-07182466,195N/AN/A2,658
2023-01-08144466,339N/AN/A2,660
2023-01-09318466,657N/AN/A2,660
2023-01-10218466,875N/AN/A2,664
2023-01-11250467,125N/AN/A2,665
2023-01-12205467,330N/AN/A2,665
2023-01-13182467,512N/AN/A2,667
2023-01-14116467,628N/AN/A2,669
2023-01-1588467,716N/AN/A2,675
2023-01-16114467,830N/AN/A2,678
2023-01-17208468,038N/AN/A2,678
2023-01-18176468,214N/AN/A2,678
2023-01-19158468,372N/AN/A2,679
2023-01-20131468,503N/AN/A2,679
2023-01-21102468,605N/AN/A2,681
2023-01-22100468,705N/AN/A2,681
2023-01-23160468,865N/AN/A2,683
2023-01-24188469,053N/AN/A2,684
2023-01-25186469,239N/AN/A2,684
2023-01-26177469,416N/AN/A2,686
2023-01-27177469,593N/AN/A2,687
2023-01-28131469,724N/AN/A2,689
2023-01-29102469,826N/AN/A2,689
2023-01-30214470,040N/AN/A2,689
2023-01-31228470,268N/AN/A2,691
2023-02-01213470,481N/AN/A2,693
2023-02-02229470,710N/AN/A2,693
2023-02-03187470,897N/AN/A2,693
2023-02-04131471,028N/AN/A2,695
2023-02-05111471,139N/AN/A2,698
2023-02-06253471,392N/AN/A2,700
2023-02-07230471,622N/AN/A2,700
2023-02-08252471,874N/AN/A2,700
2023-02-09200472,074N/AN/A2,702
2023-02-10238472,312N/AN/A2,706
2023-02-11132472,444N/AN/A2,708
2023-02-12136472,580N/AN/A2,709
2023-02-13252472,832N/AN/A2,710
2023-02-14207473,039N/AN/A2,711
2023-02-15231473,270N/AN/A2,714
2023-02-16207473,477N/AN/A2,715
2023-02-17229473,706N/AN/A2,716
2023-02-18139473,845N/AN/A2,719
2023-02-19145473,990N/AN/A2,722
2023-02-20115474,105N/AN/A2,724
2023-02-21290474,395N/AN/A2,726
2023-02-22210474,605N/AN/A2,727
2023-02-23276474,881N/AN/A2,729
2023-02-24190475,071N/AN/A2,730
2023-02-25144475,215N/AN/A2,732
2023-02-26172475,387N/AN/A2,732
2023-02-27226475,613N/AN/A2,736
2023-02-28207475,820N/AN/A2,737
2023-03-01188476,008N/AN/A2,739
2023-03-02164476,172N/AN/A2,739
2023-03-03158476,330N/AN/A2,741
2023-03-04113476,443N/AN/A2,742
2023-03-0589476,532N/AN/A2,743
2023-03-06207476,739N/AN/A2,745
2023-03-07189476,928N/AN/A2,746
2023-03-08194477,122N/AN/A2,747
2023-03-09186477,308N/AN/A2,747
2023-03-10146477,454N/AN/A2,750
2023-03-11102477,556N/AN/A2,751
2023-03-1288477,644N/AN/A2,753
2023-03-13193477,837N/AN/A2,758
2023-03-14187478,024N/AN/A2,761
2023-03-15152478,176N/AN/A2,761
2023-03-16118478,294N/AN/A2,762
2023-03-17116478,410N/AN/A2,764
2023-03-1890478,500N/AN/A2,765
2023-03-1967478,567N/AN/A2,766
2023-03-20135478,702N/AN/A2,768
2023-03-21138478,840N/AN/A2,770
2023-03-2294478,934N/AN/A2,771
2023-03-23119479,053N/AN/A2,771
2023-03-24120479,173N/AN/A2,772
2023-03-2563479,236N/AN/A2,774
2023-03-2661479,297N/AN/A2,775
2023-03-27126479,423N/AN/A2,775
2023-03-28117479,540N/AN/A2,775
2023-03-29110479,650N/AN/A2,776
2023-03-30111479,761N/AN/A2,777
2023-03-31116479,877N/AN/A2,778
2023-04-0169479,946N/AN/A2,778
2023-04-0263480,009N/AN/A2,778
2023-04-03144480,153N/AN/A2,779
2023-04-04120480,273N/AN/A2,781
2023-04-0596480,369N/AN/A2,782
2023-04-06100480,469N/AN/A2,782
2023-04-0798480,567N/AN/A2,782
2023-04-0875480,642N/AN/A2,782
2023-04-0953480,695N/AN/A2,784
2023-04-10142480,837N/AN/A2,787
2023-04-11108480,945N/AN/A2,787
2023-04-1297481,042N/AN/A2,787
2023-04-1384481,126N/AN/A2,788
2023-04-14102481,228N/AN/A2,789
2023-04-1569481,297N/AN/A2,789
2023-04-1652481,349N/AN/A2,790
2023-04-17108481,457N/AN/A2,791
2023-04-18110481,567N/AN/A2,791
2023-04-1984481,651N/AN/A2,791
2023-04-2082481,733N/AN/A2,791
2023-04-2176481,809N/AN/A2,792
2023-04-2252481,861N/AN/A2,793
2023-04-2348481,909N/AN/A2,793
2023-04-24130482,039N/AN/A2,795
2023-04-2581482,120N/AN/A2,795
2023-04-26110482,230N/AN/A2,795
2023-04-27112482,342N/AN/A2,795
2023-04-2869482,411N/AN/A2,796
2023-04-2953482,464N/AN/A2,796
2023-04-3050482,514N/AN/A2,798
2023-05-0189482,603N/AN/A2,798
2023-05-0280482,683N/AN/A2,798
2023-05-0376482,759N/AN/A2,798
2023-05-0493482,852N/AN/A2,800
2023-05-0582482,934N/AN/A2,800
2023-05-0653482,987N/AN/A2,800
2023-05-0743483,030N/AN/A2,801
2023-05-0895483,125N/AN/A2,801
2023-05-0998483,223N/AN/A2,802
2023-05-1072483,295N/AN/A2,802
2023-05-1176483,371N/AN/A2,803
2023-05-1273483,444N/AN/A2,803
2023-05-1349483,493N/AN/A2,803
2023-05-1442483,535N/AN/A2,803
2023-05-1586483,621N/AN/A2,805
2023-05-1675483,696N/AN/A2,805
2023-05-1788483,784N/AN/A2,806
2023-05-1896483,880N/AN/A2,807
2023-05-1987483,967N/AN/A2,808
2023-05-2050484,017N/AN/A2,808
2023-05-2164484,081N/AN/A2,809
2023-05-2259484,140N/AN/A2,810
2023-05-2368484,208N/AN/A2,811
2023-05-2459484,267N/AN/A2,812
2023-05-2550484,317N/AN/A2,812
2023-05-2648484,365N/AN/A2,813
2023-05-2755484,420N/AN/A2,814
2023-05-2843484,463N/AN/A2,814
2023-05-2937484,500N/AN/A2,814
2023-05-30106484,606N/AN/A2,814
2023-05-3162484,668N/AN/A2,814
2023-06-0164484,732N/AN/A2,814
2023-06-0256484,788N/AN/A2,815
2023-06-0357484,845N/AN/A2,815
2023-06-0449484,894N/AN/A2,815
2023-06-0570484,964N/AN/A2,815
2023-06-0667485,031N/AN/A2,815
2023-06-0770485,101N/AN/A2,817
2023-06-0847485,148N/AN/A2,817
2023-06-0955485,203N/AN/A2,818
2023-06-1020485,223N/AN/A2,818
2023-06-1131485,254N/AN/A2,819
2023-06-1250485,304N/AN/A2,819
2023-06-1348485,352N/AN/A2,819
2023-06-1451485,403N/AN/A2,820
2023-06-1548485,451N/AN/A2,820
2023-06-1650485,501N/AN/A2,820
2023-06-1742485,543N/AN/A2,821
2023-06-1838485,581N/AN/A2,821
2023-06-1955485,636N/AN/A2,821
2023-06-2056485,692N/AN/A2,822
2023-06-2147485,739N/AN/A2,823
2023-06-2253485,792N/AN/A2,823
2023-06-2366485,858N/AN/A2,823
2023-06-2441485,899N/AN/A2,823
2023-06-2540485,939N/AN/A2,823
2023-06-26128486,067N/AN/A2,823
2023-06-2772486,139N/AN/A2,823
2023-06-2881486,220N/AN/A2,823
2023-06-2958486,278N/AN/A2,823
2023-06-3065486,343N/AN/A2,823
2023-07-0137486,380N/AN/A2,823
2023-07-0233486,413N/AN/A2,823
2023-07-0360486,473N/AN/A2,823
2023-07-0420486,493N/AN/A2,824
2023-07-0566486,559N/AN/A2,824
2023-07-0686486,645N/AN/A2,824
2023-07-0792486,737N/AN/A2,825
2023-07-0848486,785N/AN/A2,826
2023-07-0940486,825N/AN/A2,826
2023-07-10110486,935N/AN/A2,826
2023-07-1186487,021N/AN/A2,826
2023-07-1264487,085N/AN/A2,827
2023-07-1372487,157N/AN/A2,827
2023-07-1457487,214N/AN/A2,827
2023-07-1547487,261N/AN/A2,827
2023-07-1653487,314N/AN/A2,827
2023-07-1789487,403N/AN/A2,828
2023-07-1880487,483N/AN/A2,829
2023-07-1971487,554N/AN/A2,829
2023-07-2079487,633N/AN/A2,829
2023-07-2181487,714N/AN/A2,829
2023-07-2268487,782N/AN/A2,829
2023-07-2350487,832N/AN/A2,831
2023-07-24120487,952N/AN/A2,831
2023-07-2565488,017N/AN/A2,831
2023-07-2673488,090N/AN/A2,831
2023-07-2791488,181N/AN/A2,831
2023-07-2888488,269N/AN/A2,831
2023-07-2960488,329N/AN/A2,832
2023-07-3071488,400N/AN/A2,832
2023-07-31120488,520N/AN/A2,832
2023-08-01125488,645N/AN/A2,833
2023-08-0294488,739N/AN/A2,834
2023-08-03113488,852N/AN/A2,834
2023-08-04101488,953N/AN/A2,834
2023-08-0594489,047N/AN/A2,835
2023-08-0671489,118N/AN/A2,836
2023-08-07126489,244N/AN/A2,836
2023-08-08140489,384N/AN/A2,836
2023-08-09128489,512N/AN/A2,836
2023-08-10126489,638N/AN/A2,837
2023-08-11132489,770N/AN/A2,837
2023-08-12102489,872N/AN/A2,838
2023-08-1395489,967N/AN/A2,838
2023-08-14154490,121N/AN/A2,839
2023-08-15156490,277N/AN/A2,839
2023-08-16158490,435N/AN/A2,839
2023-08-17150490,585N/AN/A2,840
2023-08-18132490,717N/AN/A2,840
2023-08-19112490,829N/AN/A2,841
2023-08-2096490,925N/AN/A2,841
2023-08-21208491,133N/AN/A2,841
2023-08-22172491,305N/AN/A2,842
2023-08-23159491,464N/AN/A2,842
2023-08-24194491,658N/AN/A2,842
2023-08-25161491,819N/AN/A2,842
2023-08-2697491,916N/AN/A2,844
2023-08-2786492,002N/AN/A2,844
2023-08-28169492,171N/AN/A2,844
2023-08-29189492,360N/AN/A2,844
2023-08-30151492,511N/AN/A2,846
2023-08-31170492,681N/AN/A2,846
2023-09-01151492,832N/AN/A2,847
2023-09-02102492,934N/AN/A2,847
2023-09-0381493,015N/AN/A2,847
2023-09-0499493,114N/AN/A2,848
2023-09-05185493,299N/AN/A2,848
2023-09-06157493,456N/AN/A2,849
2023-09-07158493,614N/AN/A2,849
2023-09-08139493,753N/AN/A2,849
2023-09-09116493,869N/AN/A2,849
2023-09-1064493,933N/AN/A2,851
2023-09-11163494,096N/AN/A2,851
2023-09-12154494,250N/AN/A2,851
2023-09-13120494,370N/AN/A2,851
2023-09-14126494,496N/AN/A2,852
2023-09-15112494,608N/AN/A2,852
2023-09-1691494,699N/AN/A2,852
2023-09-1754494,753N/AN/A2,852
2023-09-18146494,899N/AN/A2,855
2023-09-19130495,029N/AN/A2,855
2023-09-2097495,126N/AN/A2,855
2023-09-2180495,206N/AN/A2,855
2023-09-2293495,299N/AN/A2,855
2023-09-2365495,364N/AN/A2,855
2023-09-2454495,418N/AN/A2,855
2023-09-25120495,538N/AN/A2,855
2023-09-26113495,651N/AN/A2,855
2023-09-2790495,741N/AN/A2,855
2023-09-2882495,823N/AN/A2,855
2023-09-2976495,899N/AN/A2,855
2023-09-3072495,971N/AN/A2,855
2023-10-0143496,014N/AN/A2,855
2023-10-0295496,109N/AN/A2,855
2023-10-0383496,192N/AN/A2,855
2023-10-0464496,256N/AN/A2,855
2023-10-0560496,316N/AN/A2,855
2023-10-0656496,372N/AN/A2,855
2023-10-0772496,444N/AN/A2,855
2023-10-0849496,493N/AN/A2,855
2023-10-0994496,587N/AN/A2,855
2023-10-1077496,664N/AN/A2,855
2023-10-1189496,753N/AN/A2,855
2023-10-1274496,827N/AN/A2,855
2023-10-1372496,899N/AN/A2,855
2023-10-1453496,952N/AN/A2,855
2023-10-1553497,005N/AN/A2,855
2023-10-16103497,108N/AN/A2,855
2023-10-1791497,199N/AN/A2,855
2023-10-1874497,273N/AN/A2,855
2023-10-1985497,358N/AN/A2,855
2023-10-2067497,425N/AN/A2,855
2023-10-2164497,489N/AN/A2,855
2023-10-2247497,536N/AN/A2,855
2023-10-2378497,614N/AN/A2,855
2023-10-2474497,688N/AN/A2,855
2023-10-2585497,773N/AN/A2,855
2023-10-2669497,842N/AN/A2,855
2023-10-2765497,907N/AN/A2,855
2023-10-2866497,973N/AN/A2,855
2023-10-2958498,031N/AN/A2,855
2023-10-30106498,137N/AN/A2,855
2023-10-3182498,219N/AN/A2,855
2023-11-0188498,307N/AN/A2,855
2023-11-0286498,393N/AN/A2,855
2023-11-0379498,472N/AN/A2,855
2023-11-0460498,532N/AN/A2,855
2023-11-0567498,599N/AN/A2,855
2023-11-06109498,708N/AN/A2,855
2023-11-0797498,805N/AN/A2,855
2023-11-0875498,880N/AN/A2,855
2023-11-0989498,969N/AN/A2,855
2023-11-1094499,063N/AN/A2,855
2023-11-1191499,154N/AN/A2,855
2023-11-1273499,227N/AN/A2,855
2023-11-13138499,365N/AN/A2,855
2023-11-1492499,457N/AN/A2,855
2023-11-1576499,533N/AN/A2,855
2023-11-1675499,608N/AN/A2,855
2023-11-1759499,667N/AN/A2,855
2023-11-1849499,716N/AN/A2,855
2023-11-1934499,750N/AN/A2,855
2023-11-2074499,824N/AN/A2,855
2023-11-2178499,902N/AN/A2,855
2023-11-2281499,983N/AN/A2,855
2023-11-2327500,010N/AN/A2,855
2023-11-2494500,104N/AN/A2,855
2023-11-2562500,166N/AN/A2,855
2023-11-2677500,243N/AN/A2,855
2023-11-27109500,352N/AN/A2,855
2023-11-28124500,476N/AN/A2,855
2023-11-29102500,578N/AN/A2,855
2023-11-30208500,786N/AN/A2,855
2023-12-01172500,958N/AN/A2,855
2023-12-02110501,068N/AN/A2,855
2023-12-0354501,122N/AN/A2,855
2023-12-04131501,253N/AN/A2,855
2023-12-05168501,421N/AN/A2,855
2023-12-06160501,581N/AN/A2,855
2023-12-07108501,689N/AN/A2,855
2023-12-0884501,773N/AN/A2,855
2023-12-0968501,841N/AN/A2,855
2023-12-1050501,891N/AN/A2,855
2023-12-11176502,067N/AN/A2,855
2023-12-12159502,226N/AN/A2,855
2023-12-13133502,359N/AN/A2,855
2023-12-14111502,470N/AN/A2,855
2023-12-15120502,590N/AN/A2,855
2023-12-1672502,662N/AN/A2,855
2023-12-1796502,758N/AN/A2,855
2023-12-18166502,924N/AN/A2,855
2023-12-19155503,079N/AN/A2,855
2023-12-20171503,250N/AN/A2,855
2023-12-21167503,417N/AN/A2,855
2023-12-22159503,576N/AN/A2,855
2023-12-23101503,677N/AN/A2,855
2023-12-2491503,768N/AN/A2,855
2023-12-2568503,836N/AN/A2,855
2023-12-26181504,017N/AN/A2,855
2023-12-27212504,229N/AN/A2,855
2023-12-28205504,434N/AN/A2,855
2023-12-29203504,637N/AN/A2,855
2023-12-30122504,759N/AN/A2,855
2023-12-3195504,854N/AN/A2,855
2024-01-0190504,944N/AN/A2,855
2024-01-02184505,128N/AN/A2,855
2024-01-03200505,328N/AN/A2,855
2024-01-04196505,524N/AN/A2,855
2024-01-05185505,709N/AN/A2,855
2024-01-06100505,809N/AN/A2,855
2024-01-07116505,925N/AN/A2,855
2024-01-08170506,095N/AN/A2,855
2024-01-09180506,275N/AN/A2,855
2024-01-10158506,433N/AN/A2,855
2024-01-11150506,583N/AN/A2,855
2024-01-12160506,743N/AN/A2,855
2024-01-13100506,843N/AN/A2,855
2024-01-14109506,952N/AN/A2,855
2024-01-15105507,057N/AN/A2,855
2024-01-16172507,229N/AN/A2,855
2024-01-17153507,382N/AN/A2,855
2024-01-18146507,528N/AN/A2,855
2024-01-19133507,661N/AN/A2,855
2024-01-2077507,738N/AN/A2,855
2024-01-2179507,817N/AN/A2,855
2024-01-22117507,934N/AN/A2,855
2024-01-23110508,044N/AN/A2,855
2024-01-24110508,154N/AN/A2,855
2024-01-25104508,258N/AN/A2,855
2024-01-2689508,347N/AN/A2,855
2024-01-2766508,413N/AN/A2,855
2024-01-2861508,474N/AN/A2,855
2024-01-29126508,600N/AN/A2,855
2024-01-3079508,679N/AN/A2,855
2024-01-31102508,781N/AN/A2,855
2024-02-0173508,854N/AN/A2,855
2024-02-0284508,938N/AN/A2,855
2024-02-0360508,998N/AN/A2,855
2024-02-0446509,044N/AN/A2,855
2024-02-0590509,134N/AN/A2,855
2024-02-0696509,230N/AN/A2,855
2024-02-07102509,332N/AN/A2,855
2024-02-0871509,403N/AN/A2,855
2024-02-0966509,469N/AN/A2,855
2024-02-1049509,518N/AN/A2,855
2024-02-1138509,556N/AN/A2,855
2024-02-1282509,638N/AN/A2,855
2024-02-1370509,708N/AN/A2,855
2024-02-1476509,784N/AN/A2,855
2024-02-1559509,843N/AN/A2,855
2024-02-1660509,903N/AN/A2,855
2024-02-1732509,935N/AN/A2,855
2024-02-1847509,982N/AN/A2,855
2024-02-1935510,017N/AN/A2,855
2024-02-2061510,078N/AN/A2,855
2024-02-2167510,145N/AN/A2,855
2024-02-2256510,201N/AN/A2,855
2024-02-2356510,257N/AN/A2,855
2024-02-2439510,296N/AN/A2,855
2024-02-2530510,326N/AN/A2,855
2024-02-2672510,398N/AN/A2,855
2024-02-2747510,445N/AN/A2,855
2024-02-2862510,507N/AN/A2,855
2024-02-2945510,552N/AN/A2,855
2024-03-0167510,619N/AN/A2,855
2024-03-0232510,651N/AN/A2,855
2024-03-0331510,682N/AN/A2,855
2024-03-0454510,736N/AN/A2,855
2024-03-0550510,786N/AN/A2,855
2024-03-0648510,834N/AN/A2,855
2024-03-07N/AN/AN/AN/A2,855
2024-03-0851511,276N/AN/A2,855
2024-03-0933510,918N/AN/A2,855
2024-03-1023510,941N/AN/A2,855
2024-03-1136510,977N/AN/A2,855
2024-03-1221510,998N/AN/A2,855
COVID Cases and Deaths Dashboard”, “COVID-19 hospitalizations by date”, “COVID-19 Hospitalizations Dashboard”, “Count of deaths with COVID-19 by date”, Santa Clara County Public Health
Data available under Creative Commons Zero.

Implementation notes

The implementation of this function incorporates {{n/a}} (to represent null values), {{yes}} (true), and {{no}} (false). The templates themselves cannot be reused because they are incompatible with the mw.html library, which builds the table using an HTML DOM instead of pure wikitext.

Internationalization

You can most likely port this template to a wiki in another language without making major modifications. The wikitable function automatically localizes the table's description, column titles, and license name into the wiki's content language. It also formats numbers according to the content language. However, you should localize the cells representing true, false, and null by changing the values in the messages, bgColors, and colors variables to match the wiki's own {{yes}}, {{no}}, and {{n/a}} templates, respectively.

See also


local p = {}
local lang = mw.getContentLanguage()
local navbar = require("Module:Navbar")

local messages = {
	["true"] = "Yes",
	["false"] = "No",
	null = "N/A",
}

local bgColors = {
	["true"] = "#9f9",
	["false"] = "#f99",
	null = "#ececec",
}

local colors = {
	null = "#2c2c2c",
}

function p._cell(args)
	local data = args.data or mw.ext.data.get(args[1])
	local rowIdx = tonumber(args.output_row)
	local outputFormat = args.output_format
	
	local outputColumnNames = {
		args.output_column1 or args.output_column,
	}
	while args["output_column" .. #outputColumnNames + 1] do
		table.insert(outputColumnNames, args["output_column" .. #outputColumnNames + 1])
	end
	
	local outputColumnIdxs = {}
	local numOutputColumnIdxs = 0
	for i, field in ipairs(data.schema.fields) do
		for j, outputColumnName in ipairs(outputColumnNames) do
			if field.name == outputColumnName then
				outputColumnIdxs[outputColumnName] = i
				numOutputColumnIdxs = numOutputColumnIdxs + 1
			end
		end
		if numOutputColumnIdxs == #outputColumnNames then
			break
		end
	end
	if numOutputColumnIdxs < #outputColumnNames then
		for i, outputColumnName in ipairs(outputColumnNames) do
			assert(outputColumnIdxs[outputColumnName],
				mw.ustring.format("Output column “%s” not found.", outputColumnName))
		end
	end
	
	if rowIdx > 0 then
		rowIdx = (rowIdx - 1) % #data.data + 1
	elseif rowIdx < 0 then
		rowIdx = rowIdx % #data.data + 1
	else
		error("0 is not a valid row index.")
	end
	
	local record = data.data[rowIdx]
	if record ~= nil then
		if outputFormat or numOutputColumnIdxs > 1 then
			local values = {}
			for i, columnName in ipairs(outputColumnNames) do
				local columnIdx = outputColumnIdxs[columnName]
				table.insert(values, record[columnIdx])
			end
			if outputFormat then
				return mw.ustring.format(outputFormat, unpack(values))
			else
				return mw.text.listToText(values)
			end
		else
			local columnIdx = outputColumnIdxs[outputColumnNames[1]]
			return record[columnIdx]
		end
	end
end

--- Returns the value of the cell at the given row index and column name.
--- A row index of 1 refers to the first row in the table. A row index of -1
--- refers to the last row in the table. It is an error to specify a row index
--- of 0.
--- Usage: {{#invoke:Tabular data | cell | Table name | output_row = Index of row to output | output_column = Name of column to output }}
function p.cell(frame)
	return p._cell(frame.args)
end

function p._lookup(args)
	local data = args.data or mw.ext.data.get(args[1])
	local searchValue = args.search_value
	local searchPattern = args.search_pattern
	local searchColumnName = args.search_column
	
	local searchColumnIdx
	for i, field in ipairs(data.schema.fields) do
		if field.name == searchColumnName then
			searchColumnIdx = i
		end
		if searchColumnIdx then
			break
		end
	end
	assert(searchColumnIdx, mw.ustring.format("Search column “%s” not found.", searchColumnName))
	
	local occurrence = tonumber(args.occurrence) or 1
	
	local numMatchingRecords = 0
	for i = (occurrence < 0 and #data.data or 1),
		(occurrence < 0 and 1 or #data.data),
		(occurrence < 0 and -1 or 1) do
		local record = data.data[i]
		if (searchValue and record[searchColumnIdx] == searchValue) or
			(searchPattern and mw.ustring.match(tostring(record[searchColumnIdx]), searchPattern)) then
			numMatchingRecords = numMatchingRecords + 1
			if numMatchingRecords == math.abs(occurrence) then
				local args = mw.clone(args)
				args.data = data
				args.output_row = i
				return p._cell(args)
			end
		end
	end
end

--- Returns the value of the cell(s) in the given output column(s) of the row
--- matching the search key and column.
--- Reminiscent of LOOKUP() macros in popular spreadsheet applications, except
--- that the search key must match exactly. (On the other hand, this means the
--- table does not need to be sorted.)
--- Usage: {{#invoke: Tabular data | lookup | Table name | search_value = Value to find in column | search_pattern = Pattern to find in column | search_column = Name of column to search in | occurrence = 1-based index of the matching row to output | output_column = Name of column to output | output_column2 = Name of another column to output | … | output_format = String format to output the values in }}
function p.lookup(frame)
	return p._lookup(frame.args)
end

function p._wikitable(args)
	local pageName = args[1]
	local data = mw.ext.data.get(pageName)
	
	local datatypes = {}
	
	local htmlTable = mw.html.create("table")
		:addClass("wikitable sortable")
	htmlTable
		:tag("caption")
		:wikitext(navbar.navbar({
			template = ":c:Data:" .. pageName,
			mini = "y",
			style = "float: right;",
			"view", "edit",
		}))
		:wikitext(data.description)
	
	local headerRow = htmlTable
		:tag("tr")
	for i, field in ipairs(data.schema.fields) do
		headerRow
			:tag("th")
			:attr("scope", "col")
			:attr("data-sort-type", datatypes[j] == "text" and "string" or datatypes[j])
			:wikitext(field.title)
		datatypes[i] = field.type
	end
	
	for i, record in ipairs(data.data) do
		local row = htmlTable:tag("tr")
		for j = 1, #data.schema.fields do
			local cell = row:tag("td")
			if record[j] then
				local formattedData = record[j]
				if datatypes[j] == "number" then
					formattedData = lang:formatNum(formattedData)
					cell:attr("align", "right")
				elseif datatypes[j] == "boolean" then
					cell
						:addClass(record[j] and "table-yes" or "table-no")
						:css({
							background = record[j] and bgColors["true"] or bgColors["false"],
							color = record[j] and colors["true"] or colors["false"],
							["vertical-align"] = "middle",
							["text-align"] = "center",
						})
						:wikitext(record[j] and messages["true"] or messages["false"])
				end
				cell:wikitext(formattedData)
			else
				cell
					:addClass("mw-tabular-value-null")
					:addClass("table-na")
					:css({
						background = bgColors.null,
						color = colors.null,
						["vertical-align"] = "middle",
						["text-align"] = "center",
					})
					:wikitext(messages.null)
			end
		end
	end
	
	local footer = htmlTable
		:tag("tr")
		:tag("td")
		:addClass("sortbottom")
		:attr("colspan", #data.schema.fields)
	footer:wikitext(data.sources)
	footer:tag("br")
	
	local licenseText = mw.message.new("Jsonconfig-license",
		mw.ustring.format("[%s %s]", data.license.url, data.license.text))
	footer
		:tag("i")
		:wikitext(tostring(licenseText))
	
	return htmlTable
end

--- Returns a tabular data page as a wikitext table.
--- Usage: {{#invoke:Tabular data | wikitable | Table name }}
function p.wikitable(frame)
	return p._wikitable(frame.args)
end

return p