# Twitter card

> Twitter card 是本地插件，为课程页面输出 Twitter 摘要卡片标记，使课程链接在社交平台分享时带上标题与摘要等信息。标记写在课程页面中，卡片内容取自课程本身；插件只负责输出标记，标记在课程页面渲染时生成，分享平台按标记读取标题与摘要。覆盖 3.4 至 3.11 以及 4.0、4.1 版本。

- 类型：本地插件
- 支持分支：Moodle 3.10、3.11、3.4、3.5、3.6、3.7、3.8、3.9、4.0、4.1
- 在用站点：6
- 累计下载：24
- 最近更新：2022-12-31
- 维护者：Matteo Scaramuccia
- 类目：Local plugins
- 条目页：https://mudelms.com/plugins/local_twittercard/
- 下载页：https://mudelms.com/download/local_twittercard/
- Markdown：https://mudelms.com/plugins/local_twittercard.md

## 适合

- 课程链接需在社交平台展示摘要
- 课程页需输出卡片标记

## 注意

- 仅覆盖 3.4 至 4.1 分支
- 卡片信息取自课程本身

## 原版简介

This Moodle local plugin implements the Twitter Summary Card in the course homepage: this type of card will give kind of preview of the content of your Moodle course by using the information provided by mean of:
 
 
- the course title 
- the course description 
- an optional image, being the first added in Section #0. Beware that this image should be publicly available regardless the user being enrolled into that course 
 
If you want to deepen what a Twitter Summary Card is, more details are available at:
 
 
- [https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/summary](https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/summary) 
- [https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/markup](https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/markup)

## 数据来源

慕得（MudeLMS）的数据来自 Moodle 官方插件目录与开源项目仓库；核对日期：2026-11-11。慕得®是面向中文用户的、高质量、可信赖的、专业的 Moodle 产品及商业服务站点，提供免费与付费的插件与主题，以及部署、托管、维护和教育系统定制开发。
