Wynncraft Wiki
Edit Page

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 28: Line 28:
 
end
 
end
 
 
local success, result = pcall(mw.ext.cargo.query, query.tables, query.fields, query)
+
local result = mw.ext.cargo.query(query.tables, query.fields, query)
 
if not success then
 
return tostring(
 
mw.html.create('strong')
 
:addClass('error')
 
:wikitext(result)
 
:done()
 
) .. '[[Category:Pages with cargo query errors]]'
 
end
 
 
 
if #result == 0 then
 
if #result == 0 then
 
return frame:preprocess(args.default or '')
 
return frame:preprocess(args.default or '')
Line 54: Line 44:
 
local outro = frame:preprocess(args.outro or '')
 
local outro = frame:preprocess(args.outro or '')
 
if #result >= tonumber(args.limit or '100') then
 
if #result >= tonumber(args.limit or '100') then
outro = outro .. frame:preprocess('{{#queryformlink:form=' .. (args.tables or args.table) .. '|link text=More results...}}')
+
outro = outro .. frame:preprocess('Results were shortened...')
 
end
 
end
 
return intro .. table.concat(tbl,args.delimiter or '') .. outro
 
return intro .. table.concat(tbl,args.delimiter or '') .. outro

Please note that all contributions to the Wynncraft Wiki are considered to be released under the CC BY-NC-SA 3.0

Cancel Editing help (opens in new window)

Template used on this page: