50,050
edits
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
local cargo = mw.ext.cargo | local cargo = mw.ext.cargo | ||
function p. | function p.main( frame ) | ||
local | local belleName = frame.args.belle | ||
local tables = "MISC_BelleMoreInfo" | |||
local tables = | local fields = "TXT_Summary" | ||
local fields = | |||
local | local cargoArgs = { | ||
where = | where = "MISC_BelleMoreInfo.FK_Belle = '" .. belleName .. "'", | ||
default ='Description not defined', | default ='Description not defined', | ||
limit = 1 | limit = 1 | ||
} | } | ||
local results = cargo.query( tables, fields, | local results = cargo.query( tables, fields, cargoArgs ) | ||
for r = 1, #results do | for r = 1, #results do | ||
local result = results[r] | local result = results[r] | ||
| Line 22: | Line 21: | ||
end | end | ||
end | end | ||
end | end | ||
return p | return p | ||