« Module:Version imprimable » : différence entre les versions

Contenu supprimé Contenu ajouté
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 17 :
chapter = mw.text.trim(mw.ustring.gsub(v, "[ \*\#\[<small>]*([^\|]*).*", "%1"))
--chapter = title.getContent(title)
if (chapter ~= nil and chapter ~= '' and mw.ustring.find(chapter, "{") == nil) then
table.insert(lignes, '\n=' .. mw.ustring.gsub(chapter, "[^/]*/*(.*)", "%1") .. '=\n')
if (mw.title.new(chapter).exists) then