[Mediawiki-l] how to get all page titles from within a script

Frank Middleton f.middleton at apogeect.com
Thu Sep 13 12:53:08 UTC 2007


Christensen, Courtney wrote:
> (Hope this doesn't post twice I sent it to the bounce address the first
> time.)
> 
> 
> Hi again,
> 
> I'm using mediawiki 1.9.2 and I am writing an extension.  This extension
> is supposed to take a list from several wiki pages and put information
> from the list into an infobox on a calling page.  I tried looking at the
> all pages special page, but I was rather intimidated by the way it was
> requesting the list of pages.  I tried looking at the list of Hooks on
> the mediawiki site.  It is entirely possible that I am just dense, but I
> don't seem to be able to find a way to get an array of titles to
> process.  
> 
> I feel like there should be an easy function getAllTitlesInNamespace().
> But I haven't found it.  Does anyone have a suggestion for getting all
> the page titles in the Main namespace?

Have you looked at Dynamic Page List? It can easily do what you ask
http://www.mediawiki.org/wiki/Extension:DynamicPageList

Cheers -- Frank
 
> Thanks very much!
> Courtney Christensen
> 
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> 



More information about the MediaWiki-l mailing list