模板:Card/doc

< Template:Card這是此頁面最近一次修訂;沒有已批准修訂。

Use this template to create card-like elements.

Examples

Basic

{{Card
| icon = OOjs UI icon article-ltr.png
| title = Medical skills
| content =
* [[:Category:Medical skills|Browse medical skills]]
* [[:Category:Skills|Browse all skills]]
}}

Grid

To make a grid of cards, use the grid parameter in the first and last cards.

{{Card
| grid = start
| title = Energies
| content =
* [[Solar]]
* [[Wind]]
}}

{{Card
| title = Technologies
| content =
* [[Solar cooker]]
* [[Wind turbines]]
}}

{{Card
| grid = end
| title = Organizations
| content =
* [[Appropedia Foundation]]
* [[Intuitive Foundation]]
}}
Energies

See also

Template data

Use this template to create card-like elements.

模板參數

此模板以參數區塊格式為優先。

參數描述類型狀態
Titletitle

Title of the card

範例
Articles
字串建議
Contentcontent

Content of the card

範例
To create a new article, see [[Help:Creating a page]].
內容必填
Iconicon

Image icon of the card

範例
OOjs UI icon advanced.svg
檔案建議
Classclass

Extra CSS class of the card

範例
fashion-revolution
字串選填
Stylestyle

Extra CSS for the card

範例
background: #faa;
字串選填
IDid

ID of the card

字串選填
Gridgrid

Mark this card as the start or end of a card grid

範例
start
字串選填
Tooltiptooltip

沒有描述

字串選填