Content Cards

approved

by leo

Insert content cards in Markdown, such as timeline, highlightblock, target card, book information card, music information card, movie information card, photoes ablum, business card, content subfield, countdown, etc.

43 stars5,035 downloadsUpdated 5mo agoMIT
View on GitHub

Content Cards

Downloads Version

English | 中文

Insert content cards in Markdown, such as timeline, highlightblock, target card, book information card, music information card, movie information card, photoes ablum, business card, content subfield, countdown, SWOT, BCG.

Features

  • Obsidian Mobile supported.
  • Support English and Chinese.
  • Support Local Images.
  • Supports custom codeblock language.
  • Add new card: SWOT and BCG.

Installation

Search Content cards in the Community plugins and install it.

Usage

Each card is marked with '@card', and different parameters are added for different cards.

Some cards can be colored by adding '[color-red]' after '@card'.

Supported custom colors:

  • color-red
  • color-orange
  • color-yellow
  • color-green
  • color-cyan
  • color-blue
  • color-purple
  • color-pink

Timeline

There are two modes of the timeline, one is the vertical timeline and the other is the horizontal timeline.

Vertical timeline

Markdown Syntax

Insert a codeblock with the cards-timeline-v syntax.

```cards-timeline-v
@card
time: 2024-12-12
title: Example Titles
content:
描述描述 Sample Content 描述描述 Sample Content 描述描述 Sample Content
描述描述 Sample Content 描述描述 Sample Content 描述描述 Sample Content

@card [color-red]
time: 2024-12-12
title: Example Titles
content:
描述描述 Sample Content 描述描述 Sample Content 描述描述 Sample Content
描述描述 Sample Content 描述描述 Sample Content 描述描述 Sample Content
```

Parameters

OptionCard TypeRequiredDescription
timetimelineYesdate
titletimelineYestitle, can be multi-line text
contenttimelineYesIntroduction, can be multi-line text, but only the first 3 lines will be displayed on the card

horizontal timeline

Markdown Syntax

Insert a codeblock with the cards-timeline-h syntax.

```cards-timeline-h
@card
time: 2024-12-12
title: Example Titles
content:
描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述

@card [color-red]
time: 2024-12-12
title: Example Titles
content:
描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述
```

Parameters

OptionTypeRequiredDescription
timestringYesdate
titlestringYestitle
contentstringYesIntroduction, can be multi-line text, but only the first 3 lines will be displayed on the card

Highlightblock

Support for custom colors The content supports markdown syntax

Markdown Syntax

Insert a codeblock with the cards-highlightblock syntax.

```cards-highlightblock
@card [color-red]
示例文字示例文字示例文字
示例文字

@card
示例文字
示例文字
```

Target card

Markdown Syntax

Insert a codeblock with the cards-target syntax.

```cards-target
@card [color-red]
title: 指标名称
value: 1000
unit: 元

@card
title: 指标名称
value: 1,200
unit: 元
```

book information card

Markdown Syntax

Insert a codeblock with the cards-book syntax.

Web Image

```cards-book
@card
title: Blindness Chronicles
cover: https://img3.doubanio.com/view/subject/s/public/s34269503.jpg
meta:
分类: 计算机
出版日期: 2022-08-27
作者: 若泽·萨拉马戈
评分: 9.1
introduction:
街上出现了第一个突然失明的人,紧接着是第二个、第三个……  一种会传染的失明症在城市蔓延,无人知晓疫情为何爆发、何时结束。  失明症造成了前所未有的恐慌与灾难
```

Local Image

```cards-book
@card
title: Blindness Chronicles
cover: ![[files/image-1.png]]
meta:
分类: 计算机
出版日期: 2022-08-27
作者: 若泽·萨拉马戈
评分: 9.1
introduction:
街上出现了第一个突然失明的人,紧接着是第二个、第三个……  一种会传染的失明症在城市蔓延,无人知晓疫情为何爆发、何时结束。  失明症造成了前所未有的恐慌与灾难
```

Parameters

OptionTypeRequiredDescription
titlestringYestitle
coverstringYesCover image, web url(https://...) are supported
metaobjectYesmeta
introductionstringYesIntroduction, can be multi-line text, but only the first 3 lines will be displayed on the card

Music information card

Markdown Syntax

Insert a codeblock with the cards-music syntax.

Web Image

```cards-music
@card
title: Love Story
cover: https://p1.music.126.net/GZERNplXUdzTPkKqo2F4tA==/109951169217536854.jpg
meta:
艺术家: Taylor Swift
流派: 流行
```

Local Image

```cards-music
@card
title: Love Story
cover: ![[files/image-1.png]]
meta:
艺术家: Taylor Swift
流派: 流行
```

Parameters

OptionTypeRequiredDescription
titlestringYestitle
coverstringYesCover image, web url(https://...) are supported
metaobjectYesmeta

Movie information card

Markdown Syntax

Insert a codeblock with the cards-movie syntax.

Web Image

```cards-movie
@card
title: 流浪地球2
cover: https://img9.doubanio.com/view/photo/s/public/p2885842436.jpg
meta:
导演: 郭帆
演员: 吴京 / 刘德华 / 李雪健 / 沙溢
分类: 国产
上映日期: 2023-01-22
评分: 8.3
introduction:
在并不遥远的未来,太阳急速衰老与膨胀,再过几百年整个太阳系将被它吞噬毁灭。为了应对这场史无前例的危机,地球各国放下芥蒂,成立联合政府,试图寻找人类存续的出路。通过摸索与考量,最终推着地球逃出太阳系的“移山计划”获得压倒性胜利。人们着手建造上万台巨大的行星发动机,带着地球踏上漫漫征程。满腔赤诚的刘培强(吴京 饰)和韩朵朵(王智 饰)历经层层考验成为航天员大队的一员,并由此相知相恋。但是漫漫征途的前方,仿佛有一股神秘的力量不断破坏者人类的自救计划。看似渺小的刘培强、量子科学家图恒宇(刘德华 饰)、联合政府中国代表周喆直(李雪健 饰)以及无数平凡的地球人,构成了这项伟大计划的重要一环……
```

Local Image

```cards-movie
@card
title: 流浪地球2
cover: ![[files/image-1.png]]
meta:
导演: 郭帆
演员: 吴京 / 刘德华 / 李雪健 / 沙溢
分类: 国产
上映日期: 2023-01-22
评分: 8.3
introduction:
在并不遥远的未来,太阳急速衰老与膨胀,再过几百年整个太阳系将被它吞噬毁灭。为了应对这场史无前例的危机,地球各国放下芥蒂,成立联合政府,试图寻找人类存续的出路。通过摸索与考量,最终推着地球逃出太阳系的“移山计划”获得压倒性胜利。人们着手建造上万台巨大的行星发动机,带着地球踏上漫漫征程。满腔赤诚的刘培强(吴京 饰)和韩朵朵(王智 饰)历经层层考验成为航天员大队的一员,并由此相知相恋。但是漫漫征途的前方,仿佛有一股神秘的力量不断破坏者人类的自救计划。看似渺小的刘培强、量子科学家图恒宇(刘德华 饰)、联合政府中国代表周喆直(李雪健 饰)以及无数平凡的地球人,构成了这项伟大计划的重要一环……
```

Parameters

OptionTypeRequiredDescription
titlestringYestitle 称
coverstringYesCover image, web url(https://...) are supportedurl
metaobjectYesmeta 据
introductionstringYesIntroduction, can be multi-line text, but only the first 3 lines will be displayed on the card

photoes ablum

Markdown Syntax

  • Insert a codeblock with the cards-ablum syntax.
  • Support waterfall layout mode. Add [waterfall-x] after @card, x is a number between 1-9, representing the number of columns in the waterfall layout.

Web Image

```cards-album
@card [color-blue]
title: 画册名称
images:
https://img9.doubanio.com/view/photo/s/public/p2885842436.jpg
https://img9.doubanio.com/view/photo/s/public/p2885842436.jpg
https://img9.doubanio.com/view/photo/s/public/p2885842436.jpg

https://img9.doubanio.com/view/photo/s/public/p2885842436.jpg
https://img9.doubanio.com/view/photo/s/public/p2885842436.jpg
```

Local Image

```cards-album
@card [color-blue]
title: 画册名称
images:
![](https://img9.doubanio.com/view/photo/s/public/p2885842436.jpg)
![](https://img9.doubanio.com/view/photo/s/public/p2885842436.jpg)
![](https://img9.doubanio.com/view/photo/s/public/p2885842436.jpg)

![[files/image-1.png]]
![[files/image-2.png]]
```

Waterfall Layout

```cards-album
@card [color-blue,waterfall-3]
title: 画册名称
images:
https://img9.doubanio.com/view/photo/s/public/p2885842436.jpg
https://img9.doubanio.com/view/photo/s/public/p2885842436.jpg
https://img9.doubanio.com/view/photo/s/public/p2885842436.jpg
https://img9.doubanio.com/view/photo/s/public/p2885842436.jpg
https://img9.doubanio.com/view/photo/s/public/p2885842436.jpg
```

Parameters

OptionTypeRequiredDescription
titlestringYestitle
imagesstringYesImage links(support web image and local image), 1 link per line, blank lines group images of albums, with a maximum of 9 images per group

Business card

Markdown Syntax

Insert a codeblock with the cards-name syntax.

```cards-name
@card
name: 姓名
tags: 标签,标签
remark: 人物的简单描述 A brief description of the character

@card [color-green]
name: 姓名
tags: 标签,标签
remark: 人物的简单描述 A brief description of the character
```

Parameters

OptionTypeRequiredDescription
namestringYesname
tagsstringYestags
remarkstringYesremark

Content subfield

The content supports markdown syntax

Markdown Syntax

Insert a codeblock with the cards-subfield syntax.

```cards-subfield
@card
示例文字
示例文字

@card
示例文字
示例文字
```

Countdown

Markdown Syntax

Insert a codeblock with the cards-countdown syntax.

```cards-countdown
@card [color-red]
title: 2026 new year
type: day
time: 2026-01-01
```

Parameters

OptionTypeRequiredDescription
titlestringYestitle
typestringYestype,currently supports day,sec
timestringYestype=day, date, eg: 2024-02-12
type=sec, timestamp, eg: 12:03:30

SWOT

Markdown Syntax

Insert a codeblock with the cards-swot syntax.

```cards-swot
@card
s-content:
## 限内容第三象限内容第三象限内容第三象限内容容第三象限内
1. 第三象限内容第三象限内容
w-content:
2. 威胁
3. 内容
## 限内容第三象限内**容第三象限内容第三**象限内容
- 第三象限内容第三象限内容
三象限内容第三象限内容三象限内容第三象限内容三象限内容第三象限内容三象限内容第三象限内容
o-content:
**机会内容**
t-content:
限内容第三象限内**容第三象限内容第三**象限内容
1. 第三象限内容第三象限内容
```

参数

OptionTypeRequiredDescription
s-contentstringYess-content / Strengths Content
w-contentstringYesw-content / Weaknesses Content
o-contentstringYeso-content / Opportunities Content
t-contentstringYest-content / Threats Content

BCG

Markdown Syntax

Insert a codeblock with the cards-bcg syntax.

```cards-bcg
@card
x: 重要程度
y: 紧急程度
a1-title: 第一象限
a1-content: 第一象限内容
a2-title: 第二象限
a2-content: 第二象限内容
a3-title:
第三象限第三象限内容第三象限内容
第三象限内容第三象限内容第三象限内容第三象限内容第三象限内容第三象限内容第三象限内容
a3-content:
# 第三象限内容第三象限内容第三象
## 限内容第三象限内**容第三象限内容第三**象限内容
1. 第三象限内容第三象限内容
2. 第三象限内容第三象限内容第三象限内容第三象限内容第三象限内容第三象限内容第三象限内容第三象限内容第三象限内容
a4-title: 第四象限
a4-content:
2. 第四象限内容
3. neiddddd
```

参数

OptionTypeRequiredDescription
xstringYesx / x 轴名称
ystringYesy / y 轴名称
a1-titlestringYesa1-title / First quadrant title
a1-contentstringYesa1-content / First quadrant content
a2-titlestringYesa2-title / Second quadrant title
a2-contentstringYesa2-content / Second quadrant content
a3-titlestringYesa3-title / Third quadrant title
a3-contentstringYesa3-content / Third quadrant content
a4-titlestringYesa4-title / Fourth quadrant title
a4-contentstringYesa4-content / Fourth quadrant content

Limitations and known bugs

You are greatly welcome to ask questions, post any suggestions, or report any bugs! The project is mainly maintained on GitHub:

Known issues:

  • The countdown cannot be updated in real time

Changelog

VersionDateNotes
1.0.02024-12-24Initial release
1.0.102025-03-12Support English and Chinese
1.0.112024-03-15Photoes Ablum Support Local Images.
1.1.02024-03-19Supports custom codeblock language.
1.1.42024-04-02Bookcard Musiccard Moviecard Support Local Images.
1.2.02024-04-11Add SWOT Analysis and BCG Analysis.
1.2.22024-10-11Album Support waterfall layout mode.

Pricing

The plugin is free, athough if you wanna say thanks, feel free to buy me a coffee.

wechart|150

License

This project is released under the MIT License.

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.