Template:Category/FAQ

From Miniscope
Jump to: navigation, search

Render template for Category:FAQ pages.

Called by the SemanticSchemas dispatcher when a page belongs to Category:FAQ. Renders an FAQ-style masthead in place of the default property table — Q as a heading, A as a body paragraph, and a chip strip carrying the facets (guide topic, workflow stage, audience level, project) plus an optional "See also" line for the website and in-depth guide links.

The dispatcher passes every Category:FAQ field through as a named arg, but we use against the page rather than reading those args directly so the multi-valued page-typed facets (Has guide topic, Has workflow stage, Has project, Has guide) render as SMW links with the right namespace prefixing — same pattern Template:Category/Document uses. Author and the "Has question" field both fall back to FULLPAGENAME when missing (an FAQ page name is conventionally the question itself).

Back-links section: Category:FAQ declares show_backlinks_for=Has FAQ, so SemanticSchemas's generated footer appends a "Pages linking here" section listing every page that carries <this page> — forum posts in particular. No plumbing needed in this template; just leave the footer untouched.

Properties read:

  • Has question, Has answer,
 Has guide topic, Has workflow stage,
 Has audience level, Has project,
 Has author, Has website,
 Has guide

Parameters:

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

Visual treatment lives in Template:Category/FAQ/styles.css — change there to restyle every FAQ, or override the underlying --labki-* tokens in a wiki's MediaWiki:Common.css to retheme just one wiki.