Module:Sourdant : Diferince etur modêyes

Contenu supprimé Contenu ajouté
Aucun résumé des modifications
Aucun résumé des modifications
Roye 140:
end
 
-- return the list of authors (with or not link to Sourdant:)
-- @link bool make a link to Sourdant:author if page exists
function p.get_authors_list(authors, link)
link = link or false
Ligne 149 ⟶ 150 :
if link then
for i, author in ipairs(authors) do
authors[i]local page = "[[Sourdant:"mw.title.new(author.., "|"..author.."]]Sourdant")
if page.exists then
authors[i] = "[[Sourdant:"..author.."|"..author.."]]"
else
authors[i] = author
end
end
end