انتقل إلى المحتوى

وحدة:Wikidata/Biology

من ويكيبيديا، الموسوعة الحرة
local p = {}

function p.formatQuantityWithDateClaim( context, options, statement )
	local snak = context.formatSnak( options, statement.mainsnak )
	
	--Unit
    if ( options.unit and options.unit ~= '' ) then
        snak = snak .. ' ' .. options.unit
    end

    --Date
    if  statement.qualifiers then
 
    	if statement.qualifiers.P585 then
        snak = snak .. 'البلد: (' .. context.formatSnak( options, statement.qualifiers.P585[1] ) .. ') '
    	end

    end

	--References
	if ( options.references ) then
    	snak = snak .. context.formatRefs( options, statement );
    end

    return snak
end

return p