Content deleted Content added
add getValueAndQuals() function |
debug |
||
Line 346:
------------------------------------
elseif snak.snaktype == "novalue" then -- value is none
out[#out + 1] = "No value" --
------------------------------------
elseif datatype == "wikibase-item" then -- data type is a wikibase item:
Line 500:
end -- of datatype/unknown value/sourced check
-- See if qualifiers are to be returned test snak.snaktype=="value" later:
if v.qualifiers and qualID then
local qargs = {
Line 509:
["lprefix"] = "",
["lpostfix"] = "",
["wdl"] =
["uabbr"] = parseParam(args.unitabbr, false),
["maxvals"] = 0,
Line 518:
local qlist = {}
for k1, v1 in v.qualifiers do
if qualID == "ALL" or qualID ==
qlist = propertyvalueandquals(v1, qargs, qf)
if #qlist > 0 then
-- *** implement assembleoutput later ***
-- out[#out] = out[#out] .. " (" .. table.concat(qlist, ", ") .. ")"
end
out[#out] = out[#out] .. " (" .. qualID .. ")" -- debug
end
end
|