文件圖示 模板文件[檢視] [編輯] [歷史] [清除快取]
Example Twitter的logo,一個風格化的小藍鳥
@example

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc dignissim, dolor vitae ullamcorper aliquet, velit mi sagittis metus.

2017-07-12[1]

此模板可以在條目中輕鬆展示相關的推文,並使用{{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年8月2日
| ID = 495719809695621121
|replyto=WilliamShatner
|image=NASA logo.svg
}}
NASA Twitter的logo,一個風格化的小藍鳥
@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}}
}}
Donald J. Trump Twitter的logo,一個風格化的小藍鳥
@realDonaldTrump

Despite the constant negative press covfefe

2017年5月30日[1]

{{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 Twitter的logo,一個風格化的小藍鳥
@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
}}
René Descartes Twitter的logo,一個風格化的小藍鳥
@descartes

拉丁語Dubito, ergo cogito, ergo sum


我疑故我思 我思故我在

1637[3]

模版數據

編輯

此模板可以在條目中輕鬆展示相關的推文,並使用"cite tweet"模板自動生成引文。 使用此模板比加入推文的屏幕截圖更好,因為該模板對屏幕閱讀器具有親和力。 它是標準的引文模板的替代品,因為它以反映Twitter設計語言的方式,顯示了有關推文的所有相關信息(發佈日期,用戶名,暱稱等)。

模板參數[編輯模板資料]

參數描述類型狀態
blockblock

任何值都將推文顯示為block(上下的文本均不會浮動),覆蓋left參數。

字串非必填
寬度width

自定義推文寬度

範例
300px
字串非必填
leftleft

填入任何值都會使推文向左對齊

字串非必填
暱稱name

顯示在推文頂部的用戶暱稱

字串必填
用戶名username

用戶的Twitter用戶名。不要包含@符號。

不明必填
日期date

推文的日期

日期必填
文字text

推文內容

字串必填
IDID id

推文的網址末尾的數字

數值建議
參考文獻reference ref

可以提供自定義來源來引用,而不是自動生成的來源

範例
<ref>自定義來源</ref>
字串非必填
圖像image

與該推特帳戶關聯的圖像或標誌

檔案非必填
回復replyto

該推文回復的用戶名

字串非必填
語言lang language

原始推文的語言代碼

範例
ja
字串非必填
翻譯translation

推文的中文翻譯

不明非必填
認證verified verify

如果賬號已被認證,則可在此參數填入任意值,此時用戶名右側會出現認證圖標

範例
yes
字串非必填

註釋

編輯
  1. ^ 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. 
  2. ^ Gaydos, Ryan. Trump tweets explosive White House tell-all 'full of lies'. Fox News. 2018-01-05 [2018-01-05]. (原始內容存檔於2018-01-05). 
  3. ^ example