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 max
m hrm
Line 9: Line 9:
     local maxCount = mw.smw.ask( q )
     local maxCount = mw.smw.ask( q )


     return maxCount
     return maxCount[1]
      
      



Revision as of 13:39, 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]
    

    --local numIntervals = math.ceil(  )

end

return p