Template:Category/Document

From Miniscope
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.