Template:Category/Document

From Miniscope
Revision as of 13:07, 2 May 2026 by DAharoni (talk | contribs) (SchemaSync: sync from repo @ cef7b4698b6a7bf05768b7fe97b5c01c55c4b039)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Render template for Category:Document pages.

Called by the SemanticSchemas dispatcher when a page belongs to Category:Document (or any subcategory that inherits — SOP, Policy, Guide, Publication, etc., assuming they don't define their own Template:Category/X overrides).

Renders a document-style masthead in place of the default property table — type and date in a small kicker line, author byline, description as a styled lead paragraph, and DOI on a subtle line at the bottom. Visual treatment lives in .document-masthead and friends in MediaWiki:Common.css.

Review-cadence info is rendered separately by Template:Category/Review record via the SemanticSchemas subobject-renderer mechanism — it emits a right-floating sidebox that sits alongside this masthead and the body when at least one Review record exists.

Properties read:

  • Has document type, Has date,
 Has author, Has version,
 Has description, Has DOI

Parameters:

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