The VNDev Wiki underwent maintenance on March 14th, 2025, which is now complete. Semantic MediaWiki and associated extensions have been updated, and Scribunto and Semantic Scribunto have been installed. If you encounter any bugs or unexpected behavior, especially with VN jam statistics pages, please let the wiki admins know via the DevTalk Discord server.
Module:Jam series detailed stats: Difference between revisions
From VNDev Wiki
m oookkaaayy |
m how about this |
||
Line 5: | Line 5: | ||
local statType = frame.args['statType'] | local statType = frame.args['statType'] | ||
local width = frame.args['width'] | local width = frame.args['width'] | ||
local q = { '[[Jam occurrence:+]]', '?Has ' .. statType } | local q = { '[[Jam occurrence:+]]', '?Has ' .. statType, '?=-' } | ||
q.format = 'max' | q.format = 'max' | ||
local maxCount = mw.smw.ask( q ) | local maxCount = mw.smw.ask( q ) |
Revision as of 13:40, 16 March 2025
Documentation for this module may be created at Module:Jam series detailed stats/doc
local p = {}
function p.prepHistData( frame )
local statType = frame.args['statType']
local width = frame.args['width']
local q = { '[[Jam occurrence:+]]', '?Has ' .. statType, '?=-' }
q.format = 'max'
local maxCount = mw.smw.ask( q )
return maxCount[1][1]
--local numIntervals = math.ceil( )
end
return p