Editing Module:BucketShow
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 2: | Line 2: | ||
local p = {} | local p = {} | ||
function p.show(frame) | function p.show(frame) | ||
local args = | local args = frame:getParent().args | ||
local bucket_name = mw.text.trim(args[1] or '') | local bucket_name = mw.text.trim(args[1] or '') | ||
local select_field = mw.text.trim(args[2] or '') | local select_field = mw.text.trim(args[2] or '') | ||
local b = | local b = bucket(bucket_name) | ||
.select(select_field) | |||
.limit(1) | |||
for k, v in pairs(args) do | for k, v in pairs(args) do | ||