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

Contenu supprimé Contenu ajouté
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 15 :
if string.sub(v, 1, 1) == "*" then
-- Extrait les titres des pages
local pagechapter = mw.text.trim(mw.ustring.gsub(v, "[ \*\[]*([^\|]*).*", "%1"))
[[title = mw.title.new(page)
text = title.getContent(title)]]
if (text ~= frame:expandTemplate{titlenil and text ~= ':') .. page}then]]
--if (text ~= nilframe:expandTemplate{ andtitle text ~= ':') then.. chapter } .. '\n\n'
table.insert(lignes, text .. '\n')
--end
end