On 19/05/05, Nomad <nomad(a)nic-nac-project.de> wrote:
Well then....
AFAIK articles under the System namespace are not displayed. May I "hide" my
own articles under the System in any way?
By the "System" namespace, I presume you mean the "Project" one
("Wikipedia:" on Wikipedia; it generally has the name of the project).
In fact, looking at includes/SpecialRandompage.php I am reminded that
it only includes pages in the "main"/"article" namespace (the one
with
no prefix) - that's what the "cur_namespace=0" in the SQL query does.
So, yes, any page that's not in that namespace will be excluded by
default.
It looks like 1.5 (currently in early Alpha testing) will allow you to
select a namespace - so you could have a random "Project" page, or a
random "Discussion" (Talk:) one, or whatever. Note that that's nice
and easy because the (numeric) namespace is stored seperately from the
(textual) title - so it's still a long way from the flexibility
implied in your original question.
There does seem to be a "$wgExtraRandompageSQL" option, though -
possibly to facilitate the much-demanded exception on en.wikipedia for
the thousands of US town stubs added by "Rambot" - so I guess you
could play with that if you can think of a suitable criterion
(categories would be harder, because it would require looking in the
seperate 'categorylinks' table).
As a last resort, I think it may be possible to hack things by setting
the "cur_random" field in the database to '0' - the query uses a
">"
comparison, so a value of '0' would never be retrieved.
So, maybe I was hasty in saying (or implying) it was impossible or
unfeasible; happy hacking...
--
Rowan Collins BSc
[IMSoP]