8,756
edits
No edit summary |
mNo edit summary |
||
Line 6: | Line 6: | ||
local name | local name | ||
local fields = fieldsin or 'JoinKey=Page, DisplayName, Image, DisplayChar, PlainName' | local fields = fieldsin or 'JoinKey=Page, DisplayName, Image, DisplayChar, PlainName' | ||
local namespaces = '(_pageNamespace="0" OR _pageNamespace="10002")' | |||
searchtype = searchtype or 'PlainName' | searchtype = searchtype or 'PlainName' | ||
Line 21: | Line 21: | ||
end | end | ||
local result = cargo.query('GeneralData', fields, {where= | local result = cargo.query('GeneralData', fields, {where=namespaces .. wherestr, default=name, limit='1'} ) | ||
local resulttrue = 0 | local resulttrue = 0 | ||
Line 32: | Line 32: | ||
end | end | ||
result = cargo.query('GeneralData', fields, {where= | result = cargo.query('GeneralData', fields, {where=namespaces .. wherestr, default=name, limit='1'} ) | ||
if next(result) then | if next(result) then | ||
resulttrue = 1 | resulttrue = 1 |