Content deleted Content added
adjust error returns to hide problems for input=P666 |
tweak |
||
Line 100:
local function input_from_property(tdata, parms, qid, pid)
-- Given that pid is a Wikidata property identifier like 'P123',
-- return
-- or return nothing.
for _, statement in ipairs(get_statements(qid, pid)) do
Line 114:
local unit = value.unit
if type(unit) == 'string' then
unit = unit:match('Q%d+$') -- unit qid is at end of URL
local ucode = make_unit(tdata.wikidata_units, parms, unit)
if ucode then
Line 316:
local results = collection()
if note_count > 0 then
local text = note_count .. (note_count
results:add("'''Search for * to see " .. text .. "'''\n")
end
|