Template:Topic Card: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<!-- | <!-- Visible Infobox (for display on the wiki page only) --> | ||
{| class="wikitable" style="float:right; margin-left:1em; width:300px;" | |||
|- | |||
| colspan="2" style="text-align:center;" | {{#if:{{{Card Image|}}}|[[File:{{{Card Image}}}|290px]]|}} | |||
- | |||
|- | |- | ||
! Display Title | ! Display Title | ||
| {{{Display Title|}}} | | {{{Display Title|}}} | ||
|- | |- | ||
! Card | ! Card Description | ||
| {{ | | {{{Card Description|}}} | ||
|- | |||
! Appears in Main Category | |||
| {{{Appears in Main Category|}}} | |||
|- | |- | ||
! | ! Platform Section | ||
| {{{ | | {{{Belongs to Platform Section|}}} | ||
|- | |- | ||
! | ! Tags (for query) | ||
| {{{ | | {{{Queries for Tag|}}} | ||
{{#if:{{{Match Mode|}}}| | |||
|- | |- | ||
! | ! Match Mode | ||
| {{{ | | {{{Match Mode}}} | ||
}} | |||
{{#if:{{{Excludes Tag|}}}| | |||
|- | |- | ||
! | ! Excludes Tag | ||
| {{{ | | {{{Excludes Tag}}} | ||
}} | |||
|} | |} | ||
<!-- | <!-- Hidden Semantic Data (this is the critical part for your headless CMS) --> | ||
--> | |||
<div style="display:none;"> | <div style="display:none;"> | ||
[[ | [[Has display title::{{{Display Title|}}}]] | ||
[[Has | [[Has card image::{{{Card Image|}}}]] | ||
[[Has card description::{{{Card Description|}}}]] | |||
[[Appears in main category::{{{Appears in Main Category|}}}]] | |||
[[Belongs to platform section::{{{Belongs to Platform Section|}}}]] | |||
<!-- | <!-- Multi-value property for tags to query. #trim removes accidental spaces. --> | ||
{{# | {{#arraymap:{{{Queries for Tag|}}}|,|x|[[Queries for tag::{{#trim:x}}]]}} | ||
{{# | |||
<!-- | <!-- Optional: multi-value property for tags to exclude. --> | ||
{{#if:{{{Excludes Tag|}}}|{{#arraymap:{{{Excludes Tag|}}}|,|y|[[Excludes tag::{{#trim:y}}]]}}}} | |||
--> | |||
{{#arraymap:{{{ | |||
<!-- Optional: sets the query logic. Defaults to 'ANY' (OR logic). --> | |||
[[Match mode::{{{Match Mode|ANY}}}]] | |||
<!-- Sets the publication status. Defaults to 'Draft'. --> | |||
[[Has status::{{{Status|Draft}}}]] | |||
<!-- Assigns this page to the correct category for management. --> | |||
[[Category:Topic Cards]] | |||
</div> | |||
</includeonly><noinclude> | |||
This template is for creating Topic Cards, which act as curated entry points on the main hub pages. | |||
== Parameters == | |||
; Display Title : (Text) The main title shown on the card. | |||
; Card Image : (File) The image file used on the card (e.g., "Topic_habits.webp"). | |||
; Card Description : (Text) The short teaser text for the card. | |||
; Appears in Main Category : (Page) The Main Category page where this card should appear (e.g., "Master Yourself"). | |||
; Belongs to Platform Section : (Text) Exactly "Knowledge" or "Resources". | |||
; Queries for Tag : (Comma-separated Page Titles) The Tag pages to pull content from (e.g., "Tag:Habits,Tag:Routines"). | |||
; Excludes Tag : (Optional, Comma-separated Page Titles) Tag pages to exclude from the results. | |||
; Match Mode : (Optional, Text) "ANY" or "ALL". Defaults to "ANY". | |||
; Status : (Text) "Draft", "Published", or "Archived". Defaults to "Draft". | |||
</noinclude> | </noinclude> | ||
Revision as of 05:00, 21 September 2025
This template is for creating Topic Cards, which act as curated entry points on the main hub pages.
Parameters
- Display Title
- (Text) The main title shown on the card.
- Card Image
- (File) The image file used on the card (e.g., "Topic_habits.webp").
- Card Description
- (Text) The short teaser text for the card.
- Appears in Main Category
- (Page) The Main Category page where this card should appear (e.g., "Master Yourself").
- Belongs to Platform Section
- (Text) Exactly "Knowledge" or "Resources".
- Queries for Tag
- (Comma-separated Page Titles) The Tag pages to pull content from (e.g., "Tag:Habits,Tag:Routines").
- Excludes Tag
- (Optional, Comma-separated Page Titles) Tag pages to exclude from the results.
- Match Mode
- (Optional, Text) "ANY" or "ALL". Defaults to "ANY".
- Status
- (Text) "Draft", "Published", or "Archived". Defaults to "Draft".