Template:Card/doc

    来自真佛百科
    < Template:Card
    蓮花祖泉讨论 | 贡献2024年3月1日 (五) 23:22的版本 (导入1个版本:​Appropedia Template Card)
    (差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

    Template:Notice

    Use this template to create card-like elements.

    Examples

    Basic

    {{Card
    | icon = OOjs UI icon article-ltr.svg
    | 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

    无描述

    字符串可选