Différences entre versions de « Module:Oeuvre »
		
		
		
		
		
		Sauter à la navigation
		Sauter à la recherche
		
				
		
		
	
| Ligne 7 : | Ligne 7 : | ||
|     local rdfs = 'http://www.w3.org/2000/01/rdf-schema#' |     local rdfs = 'http://www.w3.org/2000/01/rdf-schema#' | ||
| − |     local daapProp = 'http://gregorius.fr/wiki/Property:' | + |     local daapProp = 'http://gregorius.dsi.universite-paris-saclay.fr/wiki/Property:' | 
|     local geo = 'http://www.w3.org/2003/01/geo/wgs84_pos#' |     local geo = 'http://www.w3.org/2003/01/geo/wgs84_pos#' | ||
|     local vcard = 'http://www.w3.org/2006/vcard/ns#' |     local vcard = 'http://www.w3.org/2006/vcard/ns#' | ||
Version du 5 mai 2021 à 09:56
La documentation pour ce module peut être créée à Module:Oeuvre/doc
local p = {}
 
function p.infobox(f)
    local capiunto = require 'capiunto'
    local linkedwiki = require 'linkedwiki'
 
 
   local rdfs = 'http://www.w3.org/2000/01/rdf-schema#'
   local daapProp = 'http://gregorius.dsi.universite-paris-saclay.fr/wiki/Property:'
   local geo = 'http://www.w3.org/2003/01/geo/wgs84_pos#'
   local vcard = 'http://www.w3.org/2006/vcard/ns#'
   
local subject = linkedwiki.getCurrentIRI(); -- read the iri of the current page
local object =  linkedwiki.new(subject)
	return capiunto.create( {
	    -- bodyStyle = 'border: 15px solid red',
	    bodyClass = 'gregoriusOeuvre',
		title =  'Oeuvre',
        top = object:checkString(daapProp..'titre',f.args.Titre) ,
		topStyle = 'background:#0066CC;height:50px;font-size: 20px;color:white;vertical-align:middle',		
		bottom = object:checkExternLink('Website',rdfs..'seeAlso',f.args.Website)
	} )
	:addRow('Titre', object:checkString(daapProp..'titre',f.args.Titre))
	:addRow('Date', object:checkString(daapProp..'date',f.args.Date))
	:addRow('Siècle', object:checkString(daapProp..'siecle',f.args.Siecle))
	:addRow('Auteur', object:checkString(daapProp..'auteur',f.args.Auteur))
	:addWikitext( object:getMaintenanceCategory() ..  "[[Category:Interdisciplinary Unit]]"
				.."[[Category:Oeuvre]]" )
end
 
return p