Content deleted Content added
suppress parentheses when no qualifiers found |
restore latest date qualifier handling |
||
Line 1:
-- Module to implement use of a blacklist and whitelist for infobox fields
-- Can take a named parameter |qid which is the Wikidata ID for the article
Line 346 ⟶ 344:
------------------------------------
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 389 ⟶ 387:
out[#out + 1] = label
end -- test for link required
--
if v.qualifiers then
local quals = v.qualifiers["P1326"] -- latest date qualifier
Line 397 ⟶ 395:
end
end
------------------------------------
elseif datatype == "time" then -- data type is time:
|