Template:Category/Workshop itinerary

From Miniscope
Jump to: navigation, search

Render template for Category:Workshop itinerary pages.

Called by the SemanticSchemas dispatcher when a page belongs to Category:Workshop itinerary. Reads Has workshop off the page and renders a participant-facing, print-friendly handout: title band → date range + timezone note → per-day blocks. Each day block queries the day's sessions inline via SMW date-range filter and renders each session through Template:Category/Workshop itinerary/session-row.

Day grouping is computed from the workshop's Has start date + Has end date rather than stored on each session: the template invokes Template:Category/Workshop itinerary/day seven times with offsets 0..6, and each invocation suppresses itself when the computed day exceeds the workshop's end date. Covers 1–7 day workshops; extend by adding more invocations if anyone runs longer.

Styling is loaded via TemplateStyles (Template:Category/Workshop itinerary/styles.css) so it travels with the template. Override --labki-* tokens in a wiki's MediaWiki:Common.css to retheme just one wiki. Print rules in the stylesheet add page-break-before to each day header so a printed handout splits cleanly across pages.

Lockdown filters the SMW result set per page-read-permission, so non-participants either see only metadata or see nothing at all.

Properties read on this page:

  • Has workshop (required)
  • Has workshop hub (optional — used for the "Back to hub"
 button)

Properties read transitively from the linked Workshop record:

  • Has start date, Has end date — drive the
 day-block iteration
  • Has location — venue line in the header

Per-day timezone display is handled inside Template:Category/Workshop itinerary/day: each day pulls the timezone from its own first session via ?Has start date#-F[T] and shows it in the day header. This avoids a workshop-level Has timezone field that could lie when admins enter sessions in a different TZ than declared, and naturally surfaces DST transitions if a workshop spans one.

Parameters:

  • category — "Workshop itinerary" (informational)
  • page — the page being rendered. Falls back to
 Template:Category/Workshop itinerary.