Aller au contenu

Samarobriua

Cha vient éd Wikipedia

Samarobriua ch'est un mot gauloés qu'est à rapprocher du gauloés samo- (« calme ») pi briua (« pont ») .

Ch'mot-lo il o donné ch'nom à eune vile : Samarobriua (« pont su l'samara ») in gauloés pis Samarobriva à l'époque gallo-romaine pis Ambianorum pindant ch' bos impire romain (vers ech IVe sièke).
Achteure, ch'nom il est canjé in Anmien.

  • 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, Dictionnaire français-gaulois, La Différence, 2004 (ISBN 978-2729115296), p. 83