From: "Rob Church" robchur@gmail.com Date: January 1, 2007 4:59:22 AM EST To: "MediaWiki announcements and site admin list" <mediawiki- l@wikimedia.org> Subject: Re: [Mediawiki-l] Template to list 10 most recent created pages Reply-To: MediaWiki announcements and site admin list <mediawiki- l@Wikimedia.org>
On 01/01/07, Chris Smeder smeder.c@gmail.com wrote:
I have searched google and mediawiki and had no success in finding information on creating a template that would list the 10 most recent created pages. Any one know of a tutorial or info on how to do this?
Install the NewestPages extension (http://www.mediawiki.org/wiki/Extension:NewestPages) and then create a template that contains {{Special:Newestpages/-/10}}.
Rob Church
The extension works well enough for me, but I just have a minor quip: addHTML() seems to be ignoring any newlines I put in. Is there a way to get around this? I also can't figure out how to remove the "<p><br /></p>" on either side of the listing when it's included within a page. Is there a way to get around either of these things?
Thanks.
On 02/01/07, Vernon Thommeret synotic@gmail.com wrote:
The extension works well enough for me, but I just have a minor quip: addHTML() seems to be ignoring any newlines I put in. Is there a way to get around this? I also can't figure out how to remove the
I'm not quite sure what you mean. Where are you adding newlines? A newline character is totally meaningless within HTML, remember - we have paragraph markup, and line breaks for that.
"<p><br /></p>" on either side of the listing when it's included within a page. Is there a way to get around either of these things?
I did attempt to when I first wrote the extension, and I have to admit, I haven't looked much upstream, but it seems that MediaWiki is failing to remove extraneous markup when it takes the result of an includable special page and inserts it in a parse run.
Probably, we need to have a little tidy-up of that mechanism.
Rob Church
mediawiki-l@lists.wikimedia.org