Template:Category/Review record

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:Review record subobjects.

Called by the SemanticSchemas dispatcher when a category's Review record field declaration designates this template as its renderer (via has_subobject_display_template=Category/Review record on Category:Review record).

Gated on Has review interval being set on the host page. If the page has no interval, this template renders nothing — the document isn't enrolled in review tracking, so we don't show a status sidebox or emit derived annotations even if Review record subobjects happen to exist on the page (legacy data, mistakenly added records, etc.).

When the interval IS set, delegates to Template:Category/Review record/State which both emits the page-level annotations (Has last reviewed date, Has next review due) and renders the right-floating Review status sidebox — including a collapsed Review history section at the bottom of the sidebox.

The import-annotation=true parameter on the inner #ask is essential — without it the inner #set calls in the State subtemplate don't attach to the host page.

Empty-state fallback via default= in the inner #ask is a defensive measure; in practice this dispatcher only fires when at least one Review record subobject exists.

Parameters:

  • category — "Review record" (informational)
  • page — the parent page. Falls back to
 Template:Category/Review record if the dispatcher doesn't pass it.