Module talk:Signpost: Difference between revisions

Content deleted Content added
Line 34:
== New fields ==
 
{{ping|Mr. Stradivarius}} Today I succeeded in writing something that I have wanted for quite some time, viz. a way to look at ''Signpost'' viewership statistics that isn't bad and useless. I'llSource becode postingis theat sourcehttps://github.com/jp-x-g/wegweiser code soon, but basically,--what it does somethingis very simple:. itIt finds and records view counts for Signpost articles after publication (for a standardized interval afterwards, for purposes of comparison). Anyway, the reason this involves this module is as such:
 
Storing this data necessitates the creation of some large index of all ''Signpost'' articles, and rather than reinvent the wheel, I reckon it would be useful to do so in this module's indices, and I've found a way to make my script parse and update the Lua tables properly. I tested it briefly on [[Module:Signpost/index/2022]] (diff [https://en.wikipedia.org/w/index.php?title=Module:Signpost/index/2022&direction=next&oldid=1131685261 here] of what it looks like with the extra fields). I'm not very hot with Lua, so I don't know what this does on the backend utilities that use this module, but SPT works fine with these extra fields, as does [[Wikipedia talk:Wikipedia Signpost/Single/2022-01-30]] (which uses [[Wikipedia:Wikipedia Signpost/Templates/Single talk]], which uses [[Wikipedia:Wikipedia Signpost/Templates/Article list maker]], which uses Module:Signpost).