Modul:Wikidata: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
+ modul
 
fix
Baris 7:
["unknown-datavalue-type"] = "Unknown datavalue type.",
["unknown-entity-type"] = "Unknown entity type.",
["unknown-value-modulemodul"] = "You must set both value-modulemodul and value-function parameters.",
["value-modulemodul-not-found"] = "The modulemodul pointed by value-modulemodul not found.",
["value-function-not-found"] = "The function pointed by value-function not found."
},
Baris 85:
function formatDatavalue( datavalue, options )
--Use the customize handler if provided
if options['value-modulemodul'] or options['value-function'] then
if not options['value-modulemodul'] or not options['value-function'] then
return formatError( 'unknown-value-modulemodul' )
end
local formatter = require ('ModuleModul:' .. options['value-modulemodul'])
if formatter == nil then
return formatError( 'value-modulemodul-not-found' )
end
local fun = formatter[options['value-function']]