Bureaucrats, editor, Interface administrators, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Editors (Semantic MediaWiki), Administrators
47,327
edits
(Created page with "local p = {} local geprice = require('Module:Exchange')._price local commas = require('Module:Addcommas') local skillpic = require('Module:SCP')._main local yesno = require('Module:Yesno') local lang = mw.getContentLanguage() local trim = mw.text.trim -- Sorting function for two item objects, first by name, then by sub-text function sortItemsByNameSubtext(item1, item2) if (item1.output.name < item2.output.name) then return true elseif (item1.output.name > item2.out...") |
No edit summary |
||
Line 24:
function p._main(args)
local
local
if (args == nil) then
table.insert(
else
local i = 1
Line 35:
local arg = trim(args[i])
table.insert(
i = i + 1
Line 44:
-- Fetch data
local query = {
'[[Uses skill::'..table.concat(
'[[Production JSON::+]]',
'?=#-',
Line 110:
-- Render rows
for _, item in ipairs(data) do
local
▲ _found = true
break
end
end
if
local name_str
Line 184 ⟶ 183:
local qty = mat_info.quantity:gsub('%-', '–')
local mat_name = mat_info.name
▲ for _, mat in ipairs(materials_lowered) do
if mat_sort_val == nil then
Line 223 ⟶ 212:
if rows == 0 then
return 'Failed to find products with those
end
|