Content deleted Content added
Line 57:
:::::I've updated [[WP:SPT]] so that it doesn't delete extra fields added by other tools. At the moment, it outputs a different Lua table format than WegweiserBot (see [[Special:Diff/1132560943|this diff]] for an example). This makes for unclean diffs, so it would be a good idea to settle on one format. I'll have a look at WegweiserBot's code to see how easy it would be to change. — '''''[[User:Mr. Stradivarius|<span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span>]]''''' <sup>[[User talk:Mr. Stradivarius|♪ talk ♪]]</sup> 13:17, 9 January 2023 (UTC)
::::::{{ping|JPxG}} I'm still not sure why page view data is necessary in these modules to begin with. By storing it here we are duplicating the data that's already available in the page view API's database. What are you planning to do with the page view data in the index modules that can't be done using the page view API directly? — '''''[[User:Mr. Stradivarius|<span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span>]]''''' <sup>[[User talk:Mr. Stradivarius|♪ talk ♪]]</sup> 13:26, 9 January 2023 (UTC)
:::::::{{ping|Mr. Stradivarius}} Here are a few mockups I made to show the data in use:
:::::::*[[User:JPxG/sandbox99#All_articles_since_2015,_sortable_by_7-day_views]]
:::::::*[[User:JPxG/sandbox99#All_articles_since_2015_by_JPxG,_sortable_by_7-day_views]]
:::::::*[[User:JPxG/sandbox99#All_arb_reports_since_2015,_sortable_by_7-day_views]]
:::::::There's no way to query pageviews in wikitext (because they have to be dynamically loaded from a different API); it has to be done by an external application. The only thing we have that can do this is the Vega graphing extension; it might theoretically be possible to use a grotesque hack like rendering a Vega embed for pageview data in some way that displayed a wikitext error message that embedded the pageview count in it... but even if that worked, it would require viewers' browsers to perform thousands of queries to the pageview API every time they tried to load a table like the ones above (for data that isn't really going to change ever, like "pageviews between January and February 2017"). '''[[User:JPxG|jp]]'''×'''[[User talk:JPxG|g]]''' 22:47, 11 January 2023 (UTC)
== Fleshing ==
|