Module:Sourdant : Diferince etur modêyes

145 octets ajoutés ,  il y a 2 mois
aucun résumé de modification
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
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