Template:Category/Workshop

From Miniscope
Jump to: navigation, search

Render template for Category:Workshop pages.

Called by the SemanticSchemas dispatcher when a page belongs to Category:Workshop. The workshop record is a public-facing event landing page that announces a workshop, surfaces application-window state with the appropriate Apply CTA (when applications are open), and links through to the participant-only namespace via a small "Participant hub →" affordance once applications close.

The admin-side counterpart lives at Template:Category/Workshop admin hub (organizer dashboard in Workshop admin: namespace); the participant-side hub uses Template:Category/Workshop internal hub. All three templates share the Template:Category/Workshop/header sub-template for the banner-with-overlay + state-tinted status block at the top, then add their own audience-specific sections below.

Renders, top to bottom:

 workshop=Template:Category/Workshop — the workshop IS the page
 being rendered, so the header's #show lookups hit this page's own
 data. The header overlays the workshop name + dates + location on
 the banner image, then renders the state-tinted status block with
 the appropriate CTA: Apply now (apps_open) or Participant
 hub → (apps_closed / happening / past, logged-in users only).
  • Description — Has description as an italic intro paragraph.
  • Workshop details list — Type, Dates, Location, Timezone,
 Status. Application open/close dates deliberately stay in the
 status block, not duplicated here.
  • Flyer — Has flyer as a centered thumbnail. Clicks open the
 full-size image file directly via  rather
 than the File: description page (which is the wiki's default link
 target and was the wrong destination for "view the flyer").

flyer link target

File:X resolves to the file's canonical URL (e.g. https://miniscope.org/images/e/e0/2026_Paris_Workshop_Flyer.png), which is what we want for "open the full-size image". Passing link={{{has_flyer}}} instead would route to a wiki page literally named after the filename (a redlink for files outside the File: namespace, or the File: page when the prefix matches) — neither is the intended target.

Properties (snake_case from dispatcher)

  • has_event_topic — marketing-friendly title (used by the
 header's banner overlay as the title; falls back to PAGENAME)
  • has_event_type — typically "Workshop"; not displayed
  • has_event_status — Scheduled / Cancelled / Postponed /
 Completed (read by the header for state overrides)
  • has_workshop_type — e.g. "International, In Person"
  • has_start_date / has_end_date — event range
  • has_application_open_date /
 has_application_close_date — apply window
  • has_description — paragraph blurb
  • has_location — text or Page-typed location string
  • has_timezone_offset — integer UTC offset
  • has_registration_url — external apply form URL
  • has_flyer — File-namespace page (portrait promo)
  • has_banner — File-namespace page (3:1 hero strip)
  • has_card_image — File-namespace page (4:3 listing image)
  • has_workshop_hub — participant-only namespace landing
 page (used by the header's Participant hub button)
  • has_admin_hub — organizer-only namespace landing page
 (not surfaced publicly)