Difference between revisions of "Module:List"

Jump to navigation Jump to search
m
no edit summary
en>Raylton P. Sousa
m (Undo revision 618730 by Raylton P. Sousa (talk))
en>Raylton P. Sousa
m
Line 1: Line 1:
local p = {}
-- Based on parseCollectionLine from https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/Collection.git;a=blob;f=Collection.body.php;hb=f2bd4ee2be12ab3df5f2dcb3bd56ff17247fff66#l793)
-- Based on parseCollectionLine from https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/Collection.git;a=blob;f=Collection.body.php;hb=f2bd4ee2be12ab3df5f2dcb3bd56ff17247fff66#l793)
-- Get "Book/Title" from a line in any of these formats:
-- Get "Book/Title" from a line in any of these formats:
Line 34: Line 32:
end
end


function p.getListOfChapters( frame )
function getListOfChapters( frame )
     local colPageText = frame:preprocess( '{{:User:Raylton P. Sousa/Livro/Xadrez}}' )
     local colPageText = frame:preprocess( '{{:User:Raylton P. Sousa/Livro/Xadrez}}' )
     return getListOfChaptersFromText( colPageText )
     return getListOfChaptersFromText( colPageText )
end
end
return p
Anonymous user

Navigation menu