Module:GEMW/Most expensive: Revision history

Jump to navigation Jump to search
Diff selection: mark the radio boxes of the versions to compare or click on a revision date to view it. (cur) = difference from current version, (prev) = difference from preceding version,  m = minor edit, → = section edit

17 October 2024

  • curprev 00:1200:12, 17 October 2024Alex talk contribs 1,788 bytes +1,788 Created page with "--<nowiki> local arr = require("Module:Array") local Coins = require("Module:Coins")._amount local ExchangeData = require("Module:ExchangeData") local p = {} function p.items(num) local prices = mw.loadJsonData("Module:GEPrices/data.json") local prices_a = {} for k, v in pairs(prices) do if string.sub(k, 1, 1) ~= '%' then table.insert(prices_a, {item=k, price=v or -1}) end end table.sort(prices_a, function(a, b) return a.price > b.price end) return arr.slic..."