Template:Category/Newsletter/masthead

From Miniscope
Jump to: navigation, search

Draws the masthead of a newsletter issue. Called only by Template:Category/Newsletter, which resolves the values. Don't call it from an issue page.

Parameters (all optional; anything empty is left out):

  • type: document type, normally "Newsletter"
  • issue: bare issue number, padded to two digits here
  • date: publication date, ISO (YYYY-MM-DD)
  • start, end: coverage window, ISO. The line is
 suppressed unless both are present. When they share a year, the year
 is printed once.
  • intro: the introduction paragraph
  • status: "Draft" adds a banner above the masthead saying the
 issue isn't listed yet. Anything else adds nothing.

Also sets __NOTOC__. An issue has four to six short sections read top to bottom, and an inline table of contents would sit between the introduction and the featured story.

Dates go through Template:UI/datetime with its date-only formats, which skip timezone conversion so a boundary date never rolls back a day.