Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:RandomTableRow: Revision history

From Test wiki

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

5 July 2024

4 July 2024

  • curprev 11:5911:59, 4 July 2024 Luke talk contribs 1,918 bytes +1,918 Created page with "local p = {} --[[local data = mw.loadJsonData( 'Module:RandomTip/data.json' ) local function getTipsCount() local tips_count = 0 for key,value in pairs(data.tips) do tips_count = tips_count + 1 end return tips_count end function p.getRandomDailyTip() local seed = os.date("%Y%m%d") math.randomseed(tonumber(seed)) local tips_count = getTipsCount() local index = math.random(1, tips_count) return data.tips[index] end function p.createTable(..."