Template:DateDPL/doc

From iCulturalDiplomacy
< Template:DateDPL
Revision as of 15:19, 1 August 2012 by Pi zero (talk) (revise)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Template loop detected: Template:Mbox

Help

This template generates a DPL for a specific date, and, when used on a project page, puts the project page in the appropriate date category or month category. It is used primarily on project pages whose names have either form Wikinews:year/month/day or Wikinews:year/month, where month is the name of the month, and day is an integer with no leading zero. For example, Wikinews:2012/January/1.

The DPL shows stable pages only, so be wary if using this template for a date from before the adoption of flaggedrevs review.

Usage

The day month and year are all optional, unnamed parameters; we recommend providing all three, but if any of them are omitted, the template tries to extract the omitted information from the name of the transcluding page. Categorization occurs only if the transcluding page is in project space (Wikinews:), and depends on the name of the transcluding page regardless of any parameters.

  • The first unnamed parameter specifies the day of the month, so should be an integer with no leading zero.
  • The second unnamed parameter specifies the name of the month.
  • The third unnamed parameter specifies the year.

So {{dateDPL|1|January|2012}} on any page would produce the same DPL as {{dateDPL}} on page Wikinews:2012/January/1.