Différences entre versions de « Module:Definition »
		
		
		
		
		
		Sauter à la navigation
		Sauter à la recherche
		
				
		
		
	
| Ligne 19 : | Ligne 19 : | ||
| 	    bodyClass = 'gregoriusDefinition', | 	    bodyClass = 'gregoriusDefinition', | ||
| 		title =  'Définition', | 		title =  'Définition', | ||
| − |          top = linkedwiki. | + |          top = linkedwiki.checkString(daapProp..'mot',f.args.Mot)  , | 
| 		topStyle = 'background:#FF9696;font-size:larger',		 | 		topStyle = 'background:#FF9696;font-size:larger',		 | ||
| 		bottom = linkedwiki.checkExternLink('Website',rdfs..'seeAlso',f.args.Website) | 		bottom = linkedwiki.checkExternLink('Website',rdfs..'seeAlso',f.args.Website) | ||
Version du 11 février 2016 à 10:14
La documentation pour ce module peut être créée à Module:Definition/doc
local p = {}
 
function p.infobox(f)
    local capiunto = require 'capiunto'
    local linkedwiki = require 'linkedwiki'
 
	local endpointUpsud = 'http://opendata1.opendata.u-psud.fr/sparql'
 
   local rdfs = 'http://www.w3.org/2000/01/rdf-schema#'
   local daapProp = 'http://gregorius.fr/wiki/Property:'
   local geo = 'http://www.w3.org/2003/01/geo/wgs84_pos#'
   local vcard = 'http://www.w3.org/2006/vcard/ns#'
 
   linkedwiki.setEndpoint(endpointUpsud)
   linkedwiki.setSubject(linkedwiki.getCurrentIRI())
 
	return capiunto.create( {
	    -- bodyStyle = 'border: 15px solid red',
	    bodyClass = 'gregoriusDefinition',
		title =  'Définition',
        top = linkedwiki.checkString(daapProp..'mot',f.args.Mot)  ,
		topStyle = 'background:#FF9696;font-size:larger',		
		bottom = linkedwiki.checkExternLink('Website',rdfs..'seeAlso',f.args.Website)
	} )
	:addRow('Mot', linkedwiki.checkString(daapProp..'mot',f.args.Mot))
	:addRow('Étymologie', linkedwiki.checkString(daapProp..'etymologie',f.args.Etymologie))
	:addWikitext( linkedwiki.getMaintenanceCategory() ..  "[[Category:Interdisciplinary Unit]]"
				.."[[Category:Définition]]" )
end
 
return p