List Info

Thread: Template to list 10 most recent created pages




Template to list 10 most recent created pages
user name
2007-01-02 01:14:52
> From: "Rob Church" <robchurgmail.com>
> Date: January 1, 2007 4:59:22 AM EST
> To: "MediaWiki announcements and site admin
list" <mediawiki- 
> lwikimedia.org>
> Subject: Re: [Mediawiki-l] Template to list 10 most
recent created  
> pages
> Reply-To: MediaWiki announcements and site admin list
<mediawiki- 
> lWikimedia.org>
>
> On 01/01/07, Chris Smeder <smeder.cgmail.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
> (h
ttp://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.
_______________________________________________
MediaWiki-l mailing list
MediaWiki-lWikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l

Template to list 10 most recent created pages
user name
2007-01-02 11:33:39
On 02/01/07, Vernon Thommeret <synoticgmail.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 mailing list
MediaWiki-lWikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )