« Module:Site officiel/Bac à sable » : différence entre les versions

Contenu supprimé Contenu ajouté
Eru (discuter | contributions)
français en priorité
Eru (discuter | contributions)
m vérification du snaktype
Ligne 57 :
local Weblink = require 'Module:Weblink'
local statementformat = function(statement, args)
local value =if statement.mainsnak.datavalue.snaktype == 'value' then
local value = statement.mainsnak.datavalue.value
local title = Wikidata.getFormattedQualifiers(statement, {'P1476'}, {isinlang = 'fr'})
if not title then
title = Wikidata.getFormattedQualifiers(statement, {'P1476'})
end
if not title then
title = args.text
end
return Weblink.makelink(value, title)
else
return Wikidata.formatSnak( statement.mainsnak, args )
end
if not title then
title = args.text
end
return Weblink.makelink(value, title)
end
if links and (#links > 1) then