Difference between revisions of "Issue:Randomseed"
From FollowTheScore
m (→Problem) |
|||
Line 29: | Line 29: | ||
It doesn't work. I get this message: | It doesn't work. I get this message: | ||
− | + | <pre><nowiki> | |
%DPL-1.6.9-Warning: Wrong 'randomseed' parameter: '{{#time:Ymd}}'! Using default: . Help: randomseed= | /^\d*$/. | %DPL-1.6.9-Warning: Wrong 'randomseed' parameter: '{{#time:Ymd}}'! Using default: . Help: randomseed= | /^\d*$/. | ||
− | + | </pre></nowiki> | |
How can I get a daily random article? | How can I get a daily random article? | ||
--[[User:Mr.X|Mr.X]] 17:23, 19 August 2008 (CEST) | --[[User:Mr.X|Mr.X]] 17:23, 19 August 2008 (CEST) |
Revision as of 16:24, 19 August 2008
Description: | Add randomseed=number |
Extension / Version: | DPL / 1.5.3 |
Type / Status: | Change Request / resolved |
Problem
When using the DPL-extension to build semirandom sets of articles, like a main page with changing articles, the set of randomly choosen articles should be kept static for a spesific time period. An easy fix for this is to add a random seed that changes i a predictable way, like once a week or once a day.
Using randomseed will be something like
{{#dpl: category=Foo| randomseed={{#time:Ymd}}| randomcount=5 }}
See also 11891 Add randomseed for a patch. Jeblad 03:41, 14 November 2007 (CET)
Reply
Completely agree. Is now part of 1.5.3
- Gero 22:35, 15 November 2007 (CET)
Problem
It doesn't work. I get this message:
<nowiki> %DPL-1.6.9-Warning: Wrong 'randomseed' parameter: '{{#time:Ymd}}'! Using default: . Help: randomseed= | /^\d*$/.</nowiki>
How can I get a daily random article? --Mr.X 17:23, 19 August 2008 (CEST)