Jump to content

Template:Topic Card: Difference between revisions

From WYOS Wiki
No edit summary
No edit summary
Line 18: Line 18:
|-
|-
! Tags (for query)
! Tags (for query)
| {{#arraymap:{{{Queries for Tag|}}}|,|t|[[{{#trim:t}}|{{#replace:{{#trim:t}}|Tag:|}}]]|, }}
| {{#arraymap:{{{Queries for Tag}}}|,|t|[[{{#trim:t}}|{{#replace:{{#trim:t}}|Tag:|}}]]|, }}
{{#if:{{{Match Mode|}}}|
{{#if:{{{Match Mode|}}}|
|-
|-

Revision as of 08:43, 23 September 2025

This template creates a Topic Card (curated entry point for hub pages).

Template for Topic Cards used on hub pages.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Display TitleDisplay Title

Main title shown on the card.

Linerequired
Card ImageCard Image

Image file for the card (e.g., "Topic_habits.webp").

Fileoptional
Card DescriptionCard Description

Short teaser text for the card.

Stringrequired
Appears in Main CategoryAppears in Main Category

Main Category page where this card appears (e.g., "Master Yourself").

Page namerequired
Platform SectionBelongs to Platform Section

Exactly "Knowledge" or "Resources".

Suggested values
Knowledge Resources
Linerequired
Tags (for query)Queries for Tag

Comma-separated Tag pages. Accepts either "Tag:Habits, Tag:Routines" or "Habits, Routines".

Linerequired
Excludes TagExcludes Tag

Optional comma-separated Tag pages to exclude.

Lineoptional
Match ModeMatch Mode

"ANY" (OR) or "ALL" (AND). Defaults to ANY.

Suggested values
ANY ALL
Lineoptional
StatusStatus

"Draft", "Published", or "Archived". Defaults to "Draft".

Suggested values
Draft Published Archived
Default
Draft
Lineoptional