On 04/07/05, Ing. Branislav Gerzo <2ge(a)2ge.us> wrote:
how to put recent deaths for past 3 days on main page
?
I'm guessing that what you want is something a bit like the English
Wikipedia's front page [1], which uses template inclusions to
automatically change content every day. For instance, if you click the
"view source" tab there, you can find this:
{{Wikipedia:Today's featured article/{{CURRENTMONTHNAME}}
{{CURRENTDAY}}, {{CURRENTYEAR}}}}
This includes the contents of a page whose title contains todays
month, day and year. The variables available are described at [2]
while the template/inclusion mechanism is described at [3]
To put today's version of a recent deaths page, you could use something like:
{{Project:Recent deaths/{{CURRENTDAY}}-{{CURRENTMONTH}}-{{CURRENTYEAR}}}}
Which right now would include text from [[Project:Recent
deaths/4-07-2005]]. You can then have a page that displays all the
deaths pages by including them specifically by name ("{{Project:Recent
deaths/4-07-2005}}", etc)
Including the past *3* days is a little trickier, since there are no
magic variables for automatically using *yesterday's* date (or the day
before's). The best I can think of is manually creating pages like
[[Project:Recent deaths/3 days to 4-07-2005]] for every day, to
contain the following:
{{Project:Recent deaths/2-07-2005}}
{{Project:Recent deaths/3-07-2005}}
{{Project:Recent deaths/4-07-2005}}
This would still have the advantage of letting you set these up ahead
of time rather than remembering to swap them around every morning, but
it's a lot of work unless you write a bot to do it for you.
[=Refs=]
[1]
http://en.wikipedia.org/wiki/Main_Page
[2]
http://meta.wikimedia.org/wiki/Help:Variable
[3]
http://meta.wikimedia.org/wiki/Help:Template
--
Rowan Collins BSc
[IMSoP]