模板: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.