Page MenuHomePhabricator

Transclusion of Special pages not working with filter/limits
Closed, InvalidPublic

Description

Author: cameronem

Description:
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).


Version: 1.12.x
Severity: normal

Details

Reference
bz14692

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:13 PM
bzimport set Reference to bz14692.
bzimport added a subscriber: Unknown Object (MLST).

Limit of number of items can be done via {{Special:NewPages/50}}, {{Special:RecentChanges/100}}.

Indeed, the inclusion syntax is different, no bug here.

cameronem wrote:

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).

bugs wrote:

[No one seems to know the answer to her question, so marking reopened until we get an answer. :-)]

overlordq wrote:

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.

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]].