Portal:Current events/How to archive the portal

From Wikipedia, the free encyclopedia

Due to the move of the primary current events page from Current events to Portal:Current events and the advent of a new system that began on July 12, 2006, the archival process for the page has changed significantly. Please don't be alarmed by the length of this page; much of the page is just code to make the instructions clearer. The archivals for July 2006 into August 2006 are used as case studies throughout this page:

Contents

[edit] Daily

Each day (during July 2006, for this example) when a new event is added, three pages must be updated: Portal:Current events, Portal:Current events/July 2006, and Portal:Current events/Calendar:

  • Each day, sub-pages of the portal are (automatically) transcluded into the main portal page so that only the last seven days (including the current UTC day) are showing. As a result, during July 31, 2006, part of the code for the primary portal page (Portal:Current events) should have looked like the following:
<!-- unimportant code removed -->
{{Portal:Current events/Inclusion|2006|07|31}}

{{Portal:Current events/More events}}
<!-- unimportant code removed -->
|-
|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 (at Portal:Current events/Sidebar) are normally updated quite frequently, but the events in the sidebar for the monthly pages (e.g. Portal:Current events/July 2006/Sidebar) should also be updated once in a while. This can be done daily, weekly, biweekly, monthly; whenever someone wants to get around to doing it. This essentially requires copying all of the (in this example, July) deaths from Portal:Current events/Sidebar to the appropriate monthly sidebar: (Portal:Current events/July 2006/Sidebar), and likewise doing the same with all of the events, holidays and observances, trials, ongoing armed conflicts, and elections, taking care not to include Recent events that actually took place during a prior month (in this case, June 2006).

[edit] Monthly

Since all the tasks that originally were accomplished at the end of the month under the old archival system are now usually completed at earlier points in the month, the monthly archiving between July 31, 2006 and August 1, 2006 entails less work. Again, please do not be alarmed by the length of this section; much of it is code. 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 around the seventh day of the month.

[edit] On the first day

  • Create a new month page at August 2006 with code similar to that in July 2006 (note that the new month - August - should appear in the code four times):
{| style="background-color:transparent" cellspacing=0 cellpadding=0
|valign="top"|
{{Portal:Current events/Month Inclusion|2006 August}}
|valign="top" style="width:250px"|
{{Portal:Current events/August 2006/Calendar}}
{{Portal:Current events/August 2006/Sidebar}}
|}
{{Portal:Current events/Events by month}}

[[Category:2006|August 2006]]
{| class="infobox" width="250" style="text-align: center; margin-top:7px; border:2px solid #cedff2;"
|- style="background-color: #cedff2"
| style="padding-top: 5px; padding-bottom: 5px; font-size:90%" | '''Time''': {{CURRENTTIME}} [[Coordinated Universal Time|UTC]]  |  '''Date''': [[{{CURRENTMONTHNAME}} {{CURRENTDAY}}]]
|}

{| 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|<<]]
| colspan=5 style="padding: 5px 0px" |'''[[Portal:Current events/August 2006|August 2006]]'''
| style="padding-top: 5px; padding-bottom: 5px" | [[September 2006|>>]]
|-
|S
|M
|T
|W
|T
|F
|S
|-
|
|
|'''[[#2006 August 1|1]]'''
|'''[[#2006 August 2|2]]'''
|'''[[#2006 August 3|3]]'''
|'''[[#2006 August 4|4]]'''
|'''[[#2006 August 5|5]]'''
|-
|'''[[#2006 August 6|6]]'''
|'''[[#2006 August 7|7]]'''
|'''[[#2006 August 8|8]]'''
|'''[[#2006 August 9|9]]'''
|'''[[#2006 August 10|10]]'''
|'''[[#2006 August 11|11]]'''
|'''[[#2006 August 12|12]]'''
|-
.
.
.
|-
|'''[[#2006 August 27|27]]'''
|'''[[#2006 August 28|28]]'''
|'''[[#2006 August 29|29]]'''
|'''[[#2006 August 30|30]]'''
|'''[[#2006 August 31|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/August 2006/Calendar|action=edit}} edit box]</small>
|}
  • The main portal calendar (Portal:Current events/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; margin-top:7px; border:2px solid #cedff2;"
|- style="background-color: #cedff2"
| style="padding: 5px 0px; font-size:90%" | '''Time''': {{CURRENTTIME}} [[Coordinated Universal Time|UTC]]  |  '''Date''': [[{{CURRENTMONTHNAME}} {{CURRENTDAY}}]]
|}

{| 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|<<]]
| colspan=5 style="padding: 5px 0px" | '''[[August 2006]]'''
| style="padding-top: 5px; padding-bottom: 5px" | [[September 2006|>>]]
|-
|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
|
|
|-
| 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/Calendar|action=edit}} edit box]</small>
|}
  • Copy the previous month's sidebar page to the new month's sidebar page (e.g. Portal:Current events/July 2006/Sidebar to Portal:Current events/August 2006/Sidebar) and remove the contents that don't apply to the new month. For example, holidays, elections, and trials that occurred during the previous month, but not the current month should be removed, but the ongoing conflicts, events, and trials that continue into the current month should remain.
  • Make sure to remove every reference to the previous month's sidebar (i.e. in the edit sidebar links). Doing a find and replace in a word processing program may help.
  • If you're not sure which events, trials, etc. remain relevant in the new month, it may be a good idea to copy the events under ongoing in the main sidebar at Portal:Current events/Sidebar.
  • The actions noted under the periodically section are completed — events are transferred from the primary current events sidebar to the July 2006 sidebar — if they are not already done.

The link in Portal:Current events/More events does not really need to be updated until the seventh of the month since all of the current month's events will be on the main portal page until then. Additionally, the events at the bottom fo the main portal page will be from the last several days of the previous month until the last one is removed from the page on the seventh. For example, between August 1 and August 6, July 31 (and others) will be on the main portal page, but beginning August 7, only August events would be there.

[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/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 then be removed from Portal:Current events/Calendar since there are no longer any links in it (all the active links are in a single row, from Sunday through Saturday).

[edit] On the seventh day

Once the seventh day of the new month has arrived, the following should take place:

[edit] See also

Wikipedia:How to archive Current Events - the old method of archiving the current events page