Module:Convert/wikidata/sandbox: Difference between revisions

Content deleted Content added
remove specified output unit if it is the same as the Wikidata unit so the convert will use the default output instead of a duplicate of the input; remove unused test "#" range separator
use mw.wikibase.getLabel(X) not deprecated label
 
(One intermediate revision by the same user not shown)
Line 215:
-- very likely that any decision a module makes about how to handle data
-- will be wrong for some cases at some time. This meets current requirements.
-- For each qualifier (or if no qualitiferqualifier), if there are any preferred
-- statements, use them and ignore any normal statements.
-- For each qualifier, for the preferred statements if any, or for
Line 483:
end
if k == 'label' then
local wdl = mw.wikibase.labelgetLabel(key)
if wdl ~= value then
note:add('label changed to ' .. tostring(wdl))