Module talk:Signpost: Difference between revisions

Content deleted Content added
Line 43:
::{{yeac}} I thought restructuring the views would be hard, but it wasn't really. Anyway, yeah -- the pageviews thing is a little strange. Basically, it is necessary because {{tl|Graph:PageViews}} is bizarrely broken (it can ''only'' return graphs, and is ''completely incapable'' of returning straightforward numbers -- tried to figure this out for quite some time to no avail). That is to say, if we want to just look at "how many pageviews did the traffic report get versus the discussion report", we either have to manually enter each page title into the pageviews website, or wild-ass-guess [[Integral|the area under the curve]] on a graph...
::At any rate, if it's possible, I would be glad to help rewrite whatever part of the JS poses issues for passthrough of extra parameters (since this might prove useful for other stuff as well). '''[[User:JPxG|jp]]'''×'''[[User talk:JPxG|g]]''' 03:16, 8 January 2023 (UTC)
:::{{ping|JPxG}} If you just want the page view numbers, you can query the API directly, without going through {{tl|Graph:PageViews}}. Is the page view data intended to just be used by Signpost editors, not by all readers? Because in that case, you can get the desired result by using a user script, without having to duplicate the page view data in the index modules. (And with a default gadget, you could even do the same for all readers if the community agrees.) <p>I will have a look at [[WP:SPT]] to see how difficult it would be to pass through arbitrary Lua data tables. — '''''[[User:Mr. Stradivarius|<span style="color: #194D00; font-family: Palatino, Times, serif">Mr.&nbsp;Stradivarius</span>]]''''' <sup>[[User talk:Mr. Stradivarius|♪&nbsp;talk&nbsp;♪]]</sup> 12:19, 8 January 2023 (UTC)</p>
 
== Fleshing ==