Template:Topic Card: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 19: | Line 19: | ||
! Tags (for query) | ! Tags (for query) | ||
| {{#arraymap:{{{Queries for Tag|}}}|,|t| | | {{#arraymap:{{{Queries for Tag|}}}|,|t| | ||
{{# | {{#ifeq:{{lc:{{#titleparts:{{#replace:{{#replace:{{#trim:t}}|[|}}|]|}}|1|1}}}}|tag | ||
| [[{{#replace:{{#replace:{{#trim:t}}|[|}}|]|}}|{{#replace:{{#replace:{{#replace:{{#trim:t}}|[|}}|]|}}|Tag:|}}]] | |||
| [[Tag:{{#replace:{{#replace:{{#trim:t}}|[|}}|]|}}|{{#replace:{{#replace:{{#trim:t}}|[|}}|]|}}]] | |||
}} | }} | ||
|, }} | |, }} | ||
{{#if:{{{Match Mode|}}}| | {{#if:{{{Match Mode|}}}| | ||
|- | |||
! Match Mode | ! Match Mode | ||
| {{{Match Mode}}} | |||
}} | }} | ||
{{#if:{{{Excludes Tag|}}}| | {{#if:{{{Excludes Tag|}}}| | ||
|- | |||
! Excludes Tag | ! Excludes Tag | ||
| {{#arraymap:{{{Excludes Tag|}}}|,|e| | |||
{{#ifeq:{{lc:{{#titleparts:{{#replace:{{#replace:{{#trim:e}}|[|}}|]|}}|1|1}}}}|tag | |||
| [[{{#replace:{{#replace:{{#trim:e}}|[|}}|]|}}|{{#replace:{{#replace:{{#replace:{{#trim:e}}|[|}}|]|}}|Tag:|}}]] | |||
| [[Tag:{{#replace:{{#replace:{{#trim:e}}|[|}}|]|}}|{{#replace:{{#replace:{{#trim:e}}|[|}}|]|}}]] | |||
{{# | }} | ||
|, }} | |||
{{# | |||
}} | }} | ||
|} | |} | ||
Revision as of 04:12, 22 September 2025
This template creates a Topic Card (curated entry point for hub pages).
Template for Topic Cards used on hub pages.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Display Title | Display Title | Main title shown on the card. | Line | required |
| Card Image | Card Image | Image file for the card (e.g., "Topic_habits.webp"). | File | optional |
| Card Description | Card Description | Short teaser text for the card. | String | required |
| Appears in Main Category | Appears in Main Category | Main Category page where this card appears (e.g., "Master Yourself"). | Page name | required |
| Platform Section | Belongs to Platform Section | Exactly "Knowledge" or "Resources".
| Line | required |
| Tags (for query) | Queries for Tag | Comma-separated Tag pages. Accepts either "Tag:Habits, Tag:Routines" or "Habits, Routines". | Line | required |
| Excludes Tag | Excludes Tag | Optional comma-separated Tag pages to exclude. | Line | optional |
| Match Mode | Match Mode | "ANY" (OR) or "ALL" (AND). Defaults to ANY.
| Line | optional |
| Status | Status | "Draft", "Published", or "Archived". Defaults to "Draft".
| Line | optional |