Template:Tweet
此模板可以在条目中轻松展示相关的推文,并使用{{cite tweet}}
自动生成引文。
使用此模板比加入推文的屏幕截图更好,因为该模板对屏幕阅读器具有亲和力。
它是标准的引文模板的替代品,因为它以反映Twitter设计语言的方式,显示了有关推文的所有相关信息(发布日期,用户名,昵称等)。
全空白语法
{{Tweet
| text = <!-- 推文内容 -->
| name = <!-- 显示在推文顶部的用户昵称 -->
| verified = <!-- 可选:如果账号已被认证,则可在此参数填入任意值,此时用户名右侧会出现认证图标 -->
| username = <!-- 用户名(不包括“@”符号)-->
| date = <!-- 基于格式手册修正的推文日期 -->
| ID = <!-- 推文网址末尾的数字 -->
| replyto = <!-- 可选:用户名推文正在回复 -->
| image = <!-- 可选:与Twitter帐户关联的图像或标志 -->
| left = <!-- 可选:任何值使推文对齐左侧 -->
| block = <!-- 可选:任何值都将推文显示为block(上下的文本均不会浮动),覆盖left参数。-->
| width = <!-- 可选:自定义推文宽度 -->
| reference = <!-- 可选: {{tweet}}会自动创建一个引用,但可以提供一个引用来代替。见第二个例子。-->
| lang = <!-- 可选:非中文的推文的语言代码 -->
| translation = <!-- 可选: 若原始推文非中文時,該推文的中文翻譯 -->
}}
用法示例
{{Tweet
| text =@WilliamShatner Good day, Captain. #ISS is in standard orbit and Commander Swanson has the conn. Hope you’re having a great weekend!
| name = NASA
| verified = yes
| username = NASA
| date = 2014-08-02
| ID = 495719809695621121
|replyto=WilliamShatner
|image=NASA logo.svg
}}
NASA | ||
---|---|---|
@NASA |
回复 @WilliamShatner
@WilliamShatner Good day, Captain. #ISS is in standard orbit and Commander Swanson has the conn. Hope you’re having a great weekend!
2014年8月2日[1]
{{tweet
|text=Despite the constant negative press covfefe
|name=Donald J. Trump
|verified = yes
|username=realDonaldTrump
|date=2017年5月30日
|ID=869766994899468288
|left=yes
|reference={{dummy reference}}
}}
{{tweet
|name=Donald J. Trump
|verified = yes
|username=realDonaldTrump
|date=2018年1月5日
|text=I authorized Zero access to White House (actually turned him down many times) for author of phony book! I never spoke to him for book. Full of lies, misrepresentations and sources that don't exist. Look at this guy's past and watch what happens to him and Sloppy Steve [Bannon]!
|reference=<ref name="zero">{{cite web |url=http://www.foxnews.com/politics/2018/01/05/trump-tweets-explosive-white-house-tell-all-full-lies.html |first=Ryan |last=Gaydos |title=Trump tweets explosive White House tell-all 'full of lies'|date=2018-01-05 |website=Fox News |accessdate=2018-01-05 |deadurl=no|archiveurl=https://web.archive.org/web/20180105122005/http://www.foxnews.com/politics/2018/01/05/trump-tweets-explosive-white-house-tell-all-full-lies.html |archivedate=2018-01-05 }}</ref>
|block=yes
}}
Donald J. Trump | |
---|---|
@realDonaldTrump |
I authorized Zero access to White House (actually turned him down many times) for author of phony book! I never spoke to him for book. Full of lies, misrepresentations and sources that don't exist. Look at this guy's past and watch what happens to him and Sloppy Steve [Bannon]!
2018年1月5日[2]
{{tweet
|text=Dubito, ergo cogito, ergo sum
|lang=la
|translation=我疑故我思 我思故我在
|username=descartes
|name=René Descartes
|ref=example
|date=1637
}}
X 贴文
任何在平台更名为 X (2023-07-23) 后发布的帖子,其左上角的徽标/链接将自动更改为 X 的徽标/链接。
{{Tweet | name = EPA Land | username = EPAland | text = We're excited to have the U.S. Agency for International Development teaming up with us for global action against food waste as we renew our formal interagency commitment between @EPA, @USDA, @US_FDA, and now @USAID! 🌎 💚 {{hash}}NoWastedFood | date = 2024-05-30 | ID = 1796245706434367707 | image = Seal of the United States Environmental Protection Agency.svg | left = yes }}
EPA Land | ||
---|---|---|
@EPAland |
We're excited to have the U.S. Agency for International Development teaming up with us for global action against food waste as we renew our formal interagency commitment between @EPA, @USDA, @US_FDA, and now @USAID! 🌎 💚
#NoWastedFood
2024-05-30[4]
模版数据
此模板可以在条目中轻松展示相关的推文,并使用"cite tweet"模板自动生成引文。 使用此模板比加入推文的屏幕截图更好,因为该模板对屏幕阅读器具有亲和力。 它是标准的引文模板的替代品,因为它以反映Twitter设计语言的方式,显示了有关推文的所有相关信息(发布日期,用户名,昵称等)。
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
block | block | 任何值都将推文显示为block(上下的文本均不会浮动),覆盖left参数。 | 字符串 | 可选 |
宽度 | width | 自定义推文宽度
| 字符串 | 可选 |
left | left | 填入任何值都会使推文向左对齐 | 字符串 | 可选 |
昵称 | name | 显示在推文顶部的用户昵称 | 字符串 | 必需 |
用户名 | username | 用户的Twitter用户名。不要包含@符号。 | 未知 | 必需 |
日期 | date | 推文的日期 | 日期 | 必需 |
文字 | text | 推文内容 | 字符串 | 必需 |
ID | ID id | 推文的网址末尾的数字 | 数字 | 推荐 |
参考文献 | reference ref | 可以提供自定义来源来引用,而不是自动生成的来源
| 字符串 | 可选 |
图像 | image | 与该推特帐户关联的图像或标志 | 文件 | 可选 |
回复 | replyto | 该推文回复的用户名 | 字符串 | 可选 |
语言 | lang language | 原始推文的语言代码
| 字符串 | 可选 |
翻译 | translation | 推文的中文翻译 | 未知 | 可选 |
认证 | verified verify | 如果账号已被认证,则可在此参数填入任意值,此时用户名右侧会出现认证图标
| 字符串 | 可选 |
注释
- ^ NASA [@NASA]. @WilliamShatner Good day, Captain. #ISS is in standard orbit and Commander Swanson has the conn. Hope you’re having a great weekend! (推文). 2014年8月2日 –通过Twitter.
- ^ Gaydos, Ryan. Trump tweets explosive White House tell-all 'full of lies'. Fox News. 2018-01-05 [2018-01-05]. (原始内容存档于2018-01-05).
- ^ example
- ^ EPA Land [@EPAland]. We're excited to have the U.S. Agency for International Development teaming up with us for global action against food waste as we renew our formal interagency commitment between @EPA, @USDA, @US_FDA, and now @USAID! 🌎 💚 #NoWastedFood (推文). 2024-05-30 –通过Twitter.