Module:Infobox/Fonctions/Jeu de données

Une page de Wikipédia, l'encyclopédie libre.

 Documentation[voir] [modifier] [historique] [purger]

Cette page définit un module d'infobox.


local p = {} 
local localdata = require 'Module:Infobox/Localdata'
local item = localdata.item 
local wd = require 'Module:Wikidata'


-- Identifiants 
function p.ids() 
return {type = 'table', title = 'Identifiants', rows = { 

{type = 'row', label = '[[doi|doi]]', value = 'doi', wikidata = {property = {'P356'}, urlpattern = wd.formatStatements{entity = "P356", property = "P1630", numval = 1}}},


{type = 'row', label = '[[data.gouv.fr|identifiant data.gouv.fr]]', value = 'datagouv', wikidata = {property = {'P6526'}, urlpattern = wd.formatStatements{entity = "P6526", property = "P1630", numval = 1}}},
}
 }
 end
 return p