模板:InfoCard/doc
外观
| 文件:Codex icon book color-base.svg | This is a documentation subpage for 模板:InfoCard. It contains usage information, categories and other content that is not part of the original 模板 page. |
| CSS | This template uses TemplateStyles: |
The example below sets heading and content to demo parameters, otherwise they would normally not show. It also uses style=background-color:var(--background-color-base);.
{{{heading}}}
{{{subheading}}}
{{{content}}}
{{{heading}}}
{{{content}}}
This template creates a styled information card.
| 参数 | 描述 | 类型 | 状态 | |
|---|---|---|---|---|
| Heading | heading | The card's title. | 内容 | 推荐 |
| Content | content 2 | The card's content. | 内容 | 必需 |
| Footer | footer | Optional footer area. | 内容 | 可选 |
| Class(es) | class | Additional CSS class(es) for the whole box. | 单行文本 | 可选 |
| Style | style divstyle | Add CSS style of entire info card. (Style of <div> wrapper of entire card that contains the main parent CSS.
| 字符串 | 可选 |
| Subheading | subheading | The card's subtitle | 内容 | 推荐 |
| Title style | headingstyle | CSS style for the title only. Do not put style=" " | 字符串 | 可选 |
| Subtitle style | subheadingstyle | CSS style for the subtitle only. Do not put style=" ". | 字符串 | 可选 |
| Content style | contentstyle | CSS style for the content only. Do not put style=" " | 字符串 | 可选 |
| Foote style | footerstyle | CSS style for the footer only. Do not put style=" " | 字符串 | 可选 |