Portal:Current events/India/How to archive the portal
From Wikipedia, the free encyclopedia
Wikipedia Help Page for Article Editing and Creating | ![]() |
---|---|
This page is believed to help those who plan to edit or create Wikipedia Articles. For more help, you can visit Help:Contents. |
This page describes how to maintain and archive the Current events/India Portal. Please don't be alarmed by the length of this page; much of the page is just code to make the instructions clearer.
Contents |
[edit] Daily
On each new day some sections of the current events page is updated automatically at server time; whereas, some sections new manual updation and maintanence. When a new event needs to be added (during July 2006, for this example), one page has to be created and two pages (Portal:Current events/India/Quicklinks and Portal:Current events/India/Calendar) must be updated.
[edit] If you see a red link...
- Due to the automated process, you may see a red link on the seven-day news section on the left hand side of the current events portal. Don't be alarmed. Instead, be bold and click the red link. It will open as a new page.
Add the following template
{{subst:Portal:Current events/India/DateHeader|2006|07|01}}
- In the above code, you'll see the date as 01 July 2006. Don't forget to change the date to current date before saving.
- Each day, sub-pages of the portal are transcluded into the main portal page so that only the last seven days are showing.
[edit] Changing the Calendar
- Similarly, the calendar at Portal:Current events/Calendar is updated daily to reflect the fact that only the last seven days are on the main portal page. On July 31, 2006, given that July 2006 ended on a Monday, part of the code in Portal:Current events/Calendar looked like:
|- |23 |24 |'''[[#2006 July 25|25]]''' |'''[[#2006 July 26|26]]''' |'''[[#2006 July 27|27]]''' |'''[[#2006 July 28|28]]''' |'''[[#2006 July 29|29]]''' |- |'''[[#2006 July 30|30]]''' |'''[[#2006 July 31|31]]''' | | | | | |-
[edit] Periodically
The events in the sidebar on the main portal page are updated automatically to reflect the current month.
[edit] How to add Notable Birthdays and Notable Deaths
Notable birthdays and Notable births for a month is common to every year. So if you are adding any new deaths, please add the year of death as well. For example in the month of January, add the info in the following format.
* [[Jan 30|30]] [[Mahatma Gandhi]] (Notability, if any (like prime minister, ex-president)) ([1948])
This info will show up every year in the month of January.
[edit] How to events section works
However, the events section and the Observances section are variable every year (Some observances like Babri Masjid Demolition or World AIDS Day are static, while Indian festivals are dynamic). So month, the events section varies. Similarly, every year, Please copy the bulk of info from the Observances section of the previous year and change the dates for this year (for example, Ramzan varies every year).
So this process is essentially copying all of the deaths from Portal:Current_events/India/Events in October 2006 to Portal:Current events/India/Events in October 2007), and likewise doing the same with all of the events, holidays and observances,
[edit] Monthly
Most of the "monthly" archival work is done on the first of the month, but a bit is also done on the first Saturday and seventh day of the month.
[edit] On the first day
- Create a new month page at Portal:Current events/India/Events in November 2006 with code similar to that in Portal:Current events/India/Events in October 2006
- In Portal:Current events/India/Calendar correct the month before the current month and the month after the current month. Also correct the dates so that the dates are correct for November, not October (note that the first day of the week in October is Sunday, which will not be the case in November):
{| class="infobox" width="250" style="text-align: center; background-color: #f5faff; border:2px solid #cedff2;" |- style="background-color: #cedff2" | style="padding-top: 5px; padding-bottom: 5px" | [[September 2006 in India|<<]] | colspan=5 style="padding: 5px 0px" | '''[[{{CURRENTMONTHNAME}} {{CURRENTYEAR}} in India|{{CURRENTMONTHNAME}} {{CURRENTYEAR}}]] | style="padding-top: 5px; padding-bottom: 5px" | [[November 2006 in India|>>]] |- |S |M |T |W |T |F |S |- |1 |2 |3 |4 |5 |6 |7 |- |8 |9 |10 |11 |12 |13 |14 |- |15 |'''[[#2006 October 16|16]]''' |'''[[#2006 October 17|17]]''' |'''[[#2006 October 18|18]]''' |'''[[#2006 October 19|19]]''' |'''[[#2006 October 20|20]]''' |'''[[#2006 October 21|21]]''' |- |'''[[#2006 October 22|22]]''' |23 |24 |25 |26 |27 |28 |- |29 |30 |31 | | | | |- | colspan="7" style="padding-top: 5px; padding-bottom: 5px; font-size:80%; text-align:right;" | <small class="editlink noprint plainlinksneverexpand">[{{SERVER}}{{localurl:Portal:Current events/India/Calendar|action=edit}} edit box]</small> |}
- Also, in the new month, The calendar (Portal:Current events/India/Calendar) is updated so that the dates from both months are linked. Note that dates from the previous month have |bgcolor="#cee7ff"| added (to add a light blue background) and that no week from the previous month has fewer than seven days in the calendar, even though they may not be linked:
{| class="infobox" width="250" style="text-align: center; background-color: #f5faff; border:2px solid #cedff2;" |- style="background-color: #cedff2" | style="padding-top: 5px; padding-bottom: 5px" | [[July 2006 in India|<<]] | colspan=5 style="padding: 5px 0px" | '''[[{{CURRENTMONTHNAME}} {{CURRENTYEAR}} in India|{{CURRENTMONTHNAME}} {{CURRENTYEAR}}]] | style="padding-top: 5px; padding-bottom: 5px" | [[September 2006 in India|>>]] |- |S |M |T |W |T |F |S |- |bgcolor="#cee7ff"|23 |bgcolor="#cee7ff"|24 |bgcolor="#cee7ff"|25 |bgcolor="#cee7ff"|'''[[#2006 July 26|26]]''' |bgcolor="#cee7ff"|'''[[#2006 July 27|27]]''' |bgcolor="#cee7ff"|'''[[#2006 July 28|28]]''' |bgcolor="#cee7ff"|'''[[#2006 July 29|29]]''' |- |bgcolor="#cee7ff"|'''[[#2006 July 30|30]]''' |bgcolor="#cee7ff"|'''[[#2006 July 31|31]]''' |'''[[#2006 August 1|1]]''' |2 |3 |4 |5 |- . . . |- |27 |28 |29 |30 |31 | | |-
- Copy the previous month's ongoing event contents, so that the ongoing conflicts, events, and trials that continue into the current month should remain in the new month.
[edit] On the first Saturday
On the first Saturday of the new month, the empty full week from the previous month can be removed from Portal:Current events/India/Calendar. For example, the first Saturday of August 2006 is August 5. Therefore, on that day, the week containing July 23 through July 29 can be removed from Portal:Current events/India/Calendar since there are no links in it.
[edit] On the seventh day
After seven days into the new month, the following should occur:
- All of the dates from the previous month should be removed from Portal:Current events/India/Calendar, leaving an incomplete week containing only the first days of the new month. For example, on August 7, 2006, the table cells for July 30 and July 31 should be removed from Portal:Current events/India/Calendar, leaving just the cells for August 1 through August 5 in the first row.