Module:Biblio

De Lagny-sur-Marne Wiki
Aller à la navigation Aller à la recherche

-- Le module biblio centralise les différentes fonctions utiles pour les bibliographie et références.

local Biblio = { }


local Outils = require( 'Module:Outils' )


Biblio.ouvrage = function ( frame )

   local args = Outils.extractArgs( frame, 'titre' )
   local Ouvrage = require( 'Module:Biblio/Ouvrage' )
   return Ouvrage.ouvrage( args ) 

end


Biblio.chapitre = function ( frame )

   local args = Outils.extractArgs( frame, 'titre', 'titre chapitre', 'titre ouvrage' )
   local Ouvrage = require( 'Module:Biblio/Ouvrage' )
   return Ouvrage.chapitre( args ) 

end


Biblio.article = function ( frame )

   local args = Outils.extractArgs( frame, 'titre', 'périodique', 'année' )
   local Ouvrage = require( 'Module:Biblio/Article' )
   return Ouvrage.article( args ) 

end

Biblio.lienWeb = function( frame )

   local args = Outils.extractArgs( frame, 'url', 'titre', 'title' )
   local Ouvrage = require( 'Module:Biblio/Lien web' )
   return Ouvrage.lienWeb( args ) 

end

Biblio.ISBN = function ( frame )

   local args = Outils.extractArgs( frame, 'isbn', 'ISBN', 'iSbn1', 'ISBN1' )
   local References = require( 'Module:Biblio/Références' )
   return '(' .. References.ISBN( args ) .. ')'

end


Biblio.ISSN = function ( frame )

   local args = Outils.extractArgs( frame, 'issn', 'ISSN', 'issn1', 'ISSN1' )
   local References = require( 'Module:Biblio/Références' )
   return References.ISSN( args ) 

end


Biblio.enLigne = function ( frame )

   local args = Outils.extractArgs( frame, 'lien', 'url' )
   local References = require( 'Module:Biblio/Références' )
   return '[' .. References.enLigne( args )  .. ']'

end


return Biblio