Last modified: 2010-05-15 15:54:53 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T16692, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 14692 - Transclusion of Special pages not working with filter/limits
Transclusion of Special pages not working with filter/limits
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
1.12.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-07-01 02:15 UTC by Cameron Moody
Modified: 2010-05-15 15:54 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Cameron Moody 2008-07-01 02:15:37 UTC
When performing transclusion of Special: pages it works fine, however if limits are added a wanted page link appears. IE {{Special:Recentchanges}} works, however for example, if I put {{Special:Recentchanges&days=5}} I get a link to an empty page called Special:Recentchanges&days=5. I have tried for Special:Recentchanges as well as Special:Newpages with various criteria (such as days and also result limits).
Comment 1 Danny B. 2008-07-12 00:15:47 UTC
Limit of number of items can be done via {{Special:NewPages/50}}, {{Special:RecentChanges/100}}.
Comment 2 Niklas Laxström 2008-07-12 07:44:36 UTC
Indeed, the inclusion syntax is different, no bug here.
Comment 3 Cameron Moody 2008-07-24 03:09:08 UTC
Thanks for the info - I couldn't find anything documented that explained the syntax being different.

If you don't mind, is there a way of not having filter on ARTICLE Numbers, but on DAYS? Using the NewPages/50 appears to show 50 last new articles, the need I have is last 7 days (unlimited articles).
Comment 4 Casey Brown 2008-07-24 03:15:05 UTC
[No one seems to know the answer to her question, so marking reopened until we get an answer. :-)]
Comment 5 OverlordQ 2008-12-20 05:32:20 UTC
You can specify days with RecentChanges:

{{Special:RecentChanges/days=7}} But that will likely limit to whatever the default is set to, so you'll need to specify a higher limit. Although I'd really suggest against it, it's probably not too server friendly.

{{Special:RecentChanges/days=7,limit=1000}}

NewPages doesn't seem to have such an option to limit by days and has a hard limit of 5k.

This is all OT to the original bug report though.
Comment 6 John Mark Vandenberg 2008-12-20 07:12:18 UTC
While this doesnt answer the question, I have started documented the syntax at:

http://www.mediawiki.org/wiki/Help:New_pages

It is possible to use "offset" to indicate which day to begin the list on, so the following would give you up to 500 unpatrolled pages from the last 7 days.

{{Special:Newpages/limit=100,hidepatrolled,offset={{CURRENTTIMESTAMP}}}}
{{Special:Newpages/limit=100,hidepatrolled,offset={{#expr:{{CURRENTTIMESTAMP}}-1000000}}}}
{{Special:Newpages/limit=100,hidepatrolled,offset={{#expr:{{CURRENTTIMESTAMP}}-2000000}}}}
{{Special:Newpages/limit=100,hidepatrolled,offset={{#expr:{{CURRENTTIMESTAMP}}-3000000}}}}
{{Special:Newpages/limit=100,hidepatrolled,offset={{#expr:{{CURRENTTIMESTAMP}}-4000000}}}}
{{Special:Newpages/limit=100,hidepatrolled,offset={{#expr:{{CURRENTTIMESTAMP}}-5000000}}}}
{{Special:Newpages/limit=100,hidepatrolled,offset={{#expr:{{CURRENTTIMESTAMP}}-6000000}}}}

You can see it working at [[User:Jayvdb/NPP7]].

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links