Module:Cartel d'art

Útá Wikipedia.

La documentation pour ce module peut être créée à Module:Cartel d'art/doc

local p = {}
local linguistic = require 'Module:Linguistique'
local wikidata = require 'Module:Wikidata'
local material = require'Module:Matériau'
	
function p.artworkbox(item, displayparams)
	displayparams = displayparams or {}
	local creator = wikidata.formatStatements{property = 'P170', entity = item}
	local title = wikidata.formatStatements{property = 'P1476', entity = item, isinlanguage = 'fr'} or wikidata.formatEntity(item) -- récupérer le lien
	if title then
		title = '<i>' .. title .. '</i>'
	end
	local creationdate = wikidata.formatStatements{property = 'P571', entity = item}
	local collection = wikidata.formatStatements{property = 'P195', entity = item}
	local technique = material.formatFromItem(item, {linkback = '-'})
	return linguistic.conj({creator, title, technique, creationdate, collection}, displayparams.separator or 'comma')
end

return p