Aller au contenu

Salvador Dali

Cha vient éd Wikipedia
Salvador Dali.

Salvador Domingo Felipe Jacinto Dalí i Domènech, connu conme Salvador Dali, né à Figueras ch' 11 ed mai 1904 pis défuncté dins chele meume vile ch' 23 ed jinvier 1989, est un pinte, éstchulpteu, graveu, scénarisse et pi écrivin éspannol. Il est considéré conme l'un des princhipals arprésintants dech surréalime pis conme l'un des pus chélèbes pinte du XXe sèke.

  • local mwTrim = mw.text.trim

local p = {}

function p.brut( frame )

   return p._main( frame, function ( item )
       return item
   end )

end

function p.lien( frame )

   return p._main( frame, function ( item )
       return '' .. ( ( item:sub( 1, 1 ) == ':' ) and item or ':' .. item ) .. ''
   end )

end

function p.lienAutomatique( frame )

   return p._main( frame, function ( item )
       if item:find( '[', nil, true ) then
           return item
       else
           return '' .. ( ( item:sub( 1, 1 ) == ':' ) and item or ':' .. item ) .. ''
       end
   end )

end

function p.categorie( frame )

   return p._main( frame, function ( item )
       return '' .. item .. ''
   end )

end

function p.utilisateur( frame )

   return p._main( frame, function ( item )
       return '' .. item .. ''
   end )

end

function p._main( frame, formatter )

   local args = frame:getParent().args
   local gras = ( args.gras and args.gras ~=  )
   local items = {}
   for i, v in ipairs( args ) do
       local item = mwTrim( v )
       if item ~=  then
           item = formatter( item )
           if gras then
               item = '' .. item .. ''
           end
           items[ #items + 1 ] = item
       end
   end
   local dernierSeparateur = args.et and ( ' ' .. args.et .. ' ' )
   -- le paramètre "et" peut être défini à vide, exemple : Modèle:Module biblio/responsabilité principale
   if args.et ==  then
       dernierSeparateur = ' '
   end
   return mw.text.listToText( items, ', ', dernierSeparateur )

end

return p, Carré d'art : Jules Barbey d'Aurevilly, Lord Byron, Salvador Dali, Jean-Edern Hallier, Croissy-sur-Seine, Anagramme éd, 2008 (ISBN 9782350351896 et 2350351890)