http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10713
Revision: 10713 Author: xqt Date: 2012-11-12 20:27:20 +0000 (Mon, 12 Nov 2012) Log Message: ----------- doc string for Page.linkedPages() adopted from rewrite branch see bug #3586421
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2012-11-11 20:03:42 UTC (rev 10712) +++ trunk/pywikipedia/wikipedia.py 2012-11-12 20:27:20 UTC (rev 10713) @@ -2680,10 +2680,16 @@ allDone = True return cats
- def linkedPages(self, withImageLinks = False): + def linkedPages(self, withImageLinks=False): """Return a list of Pages that this Page links to.
- Excludes interwiki and category links, and also image links by default. + Only returns pages from "normal" internal links. Category links are + omitted unless prefixed with ":". Image links are omitted when parameter + withImageLinks is False. Embedded templates are omitted (but links + within them are returned). All interwiki and external links are omitted. + + @param withImageLinks: include Image links + @return: a list of Page objects. """ result = [] try: