Difference between revisions of "Module:List"
Jump to navigation
Jump to search
m
no edit summary
>Raylton P. Sousa m (Undo revision 618730 by Raylton P. Sousa (talk)) |
>Raylton P. Sousa m |
||
Line 1: | Line 1: | ||
-- 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 | 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 | ||