Jump to content

Template:Topic Card

From WYOS Wiki
Revision as of 06:09, 20 September 2025 by Admin (talk | contribs)

Template:Topic Card

This template defines a Topic Card, which is a clickable tile that appears on the main Knowledge and Resources hub pages.

How It Works

A Topic Card is a dynamic content aggregator. It uses the Queries for tag property to pull in all Knowledge or Resource entries that match one or more specified Topic Tags.

Parameters

  • Display Title: The title displayed on the card.
  • Image: The image file for the card. Uses the generic Has image property.
  • Description: The short text appearing on the card. Uses the generic Has description property.
  • Appears in category: The Main Category (e.g., ) where this card should be displayed.
  • Belongs to section: The section hub this card appears on (e.g., "Knowledge" or "Resources").
  • Queries for tags: A comma-separated list of links to the topic pages this card should pull content from (e.g., Tag:Habits, Tag:Psychology). This is the most critical field.
  • Status: Publication status (Published, Draft). Defaults to Published.