Template:PortalPastSel

From Wikipedia, the free encyclopedia

This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages.
Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here.

[edit] Description

This template is designed to create the "Recently selected" links at the bottom of the Selected article and Selected picture abstracts on portals.

[edit] Usage

{{PortalPastSel|portalname=|type=|week=|year=}}

The three parameters are:

  • portalname - The name of the portal
  • type - Either "article" or "picture"
  • week - The week number
  • year - The year

This template expects that links to the previous selections are stored in pages named like [[Portal:portalname/Selected type/Week week, year/link]]. The entire contents of the /link pages should be the exact link that will appear in the Recently selected list.

For example...

{{PortalPastSel|portalname=Trains|type=article|week=52|year=2006}}

produces:

Recently selected: SkyTrain (Vancouver) - Beeching Axe - Scott Special