Admin Forum:Function that displays blog posts by age?
Talk0this wiki
This Forum has been archived
To contact staff directly or to report bugs, please use Special:Contact.
Is there a function for blog posts that can display posts by age similar to Special:AncientPages for main space content? I don't see one but I'm wondering if there is a way to do this. BrokenSphere (Talk) 19:40, June 6, 2012 (UTC)
I don't think so. You could go to "Recent Blog Posts" and they will be displayed from new to old. Bomb 20:12, June 6, 2012 (UTC)
This seems to be capped at 500 and having the filter to show blog posts only and playing with the numbers in the URL to try and display more than doesn't seem to work. BrokenSphere (Talk) 16:19, June 7, 2012 (UTC)
You could just use a DPL statement in which you set namespace=500 and ordermethod=firstedit.
For instance, the following will give you the first ten uses of the blog namespace on this wiki:
<dpl> namespace=500 ordermethod=firstedit count=10 titlematch=%/% allowcachedresults=true </dpl>
- User blog:KyleH/Announcing: Blog articles
- User blog:JWSchmidt/Wiki fiction
- User blog:Frode Fenis/Rich Text Editor - where can I check it out
- User blog:Bola/Anuncio: Artículos de blog
- User blog:DryGuy/Monobook is better then Monaco!
- User blog:Zapwire/Wikia's new "features" are bugs
- User blog:Ttibot/Templates display in visual editor
- User blog:Jamessungjin.kim/Happy to see blog in Wikia
- User blog:Bzero/"I have been blogging!"
- User blog:SirShade113/Where is good Light Armor? such as Mithril, elven, and glass
The titlematch parameter does something nice 'n' fun. It looks for only those page titles which have a slash in them. This means it only looks for subpages, which conforms to the syntax for blog articles. If you didn't have this line, then it would throw up everything in the user blog namespace, including the base page. It's probably not that useful to have base page aterations, since this happens just by creating one's first blog post.
Additionally, if you wanted to hide the namespace — e.g., User blog: — you would just add the line shownamespace=false.
Incidentally, allowcachedresults=true is not specific to this problem, but just sort of a "best practices" thing with DPL. It reduces server load by just looking at the cached results. Since you're talking about ancient blog posts anyway, it's unlikely they'll be any different in the cache than they are "live", so you might as well reduce server load where possible.
czechout ☎ ✍ from tardis <span style="">23:25: Wed 13 Jun 2012