Template:Tweet/doc

Example Xの短文投稿より
@example

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

12 Jul 2017[1]

このテンプレートは、記事に関連する、XミニブログTwitterと呼ばれていた)上の投稿(ツイートと呼ばれていた)を簡単に引用することができ、また{{Cite tweet}}を用いて自動的に出典を追加するために用いる。

記事中に投稿された文(ツイート)を表示する場合、このテンプレートを使用することで、ツイートに直接アクセスすることができるため、ツイートのスクリーンショットなどに比べて好まれる。

通常の引用テンプレートの代替的な使用を意図しており、ツイートに関連する重要な情報(投稿日、ユーザー名、ユーザーIDなど)をまとめて表示することができ、ツイートIDを指定することで、自動的に出典を作成する。

使い方[編集]

{{Tweet
|text =        [ツイートの内容]
|name =        [ツイート上部に表示されるユーザー名]
|username =    [@のつくユーザーのID(@は除く)]
|date =        [ツイートの日付]
|ID =          [ツイートID(ツイートのURLの最後につく数字)]
|accessdate =  [閲覧日。referenceが提供されている場合は不要]
|replyto =     [optional: username tweet is replying to]
|image =       [optional: image or logo associated with twitter account]
|left =        [optional: any value makes tweet aligned left]
|block =       [optional: any value displays tweet as block(text above and below, doesn't flow around).]
|width =       [optional: custom tweet width]
|reference =   [optional:自動生成される出典の代わりに使用する出典]
|lang =        [optional: language code of the tweet if non-English]
|translation = [optional: English translation of tweet if original tweet non-English]
}}
  • ユーザー名やユーザーアイコン画像は元サイトで変更されても、自動的には反映されません。
  • ユーザーアイコン画像を載せる場合は
に限られます。

使用例[編集]

以下の参考:アメリカ航空宇宙局(NASA、そのロゴマークはウィキペディアで利用可能と判断されています)、ウィリアム・シャトナー(アメリカの俳優)

{{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
|username=NASA
|date=Aug 2, 2014
|ID=495719809695621121
|replyto=WilliamShatner
|image=NASA logo.svg
|accessdate=2021-04-02
}}
NASA Xの短文投稿より
@NASA

返信先:@WilliamShatnerさん

@WilliamShatner Good day, Captain. #ISS is in standard orbit and Commander Swanson has the conn. Hope you’re having a great weekend!

Aug 2, 2014[1]

以下の参考:ドナルド・トランプ[2]en:Covfefe[3][4]

{{Tweet
|text=Despite the constant negative press covfefe
|name=Donald J. Trump
|username=realDonaldTrump
|date=30 May 2017
|ID=869766994899468288
|left=yes
|reference={{Dummy reference}}
}}
Donald J. Trump Xの短文投稿より
@realDonaldTrump

Despite the constant negative press covfefe

30 May 2017[1]

{{Tweet
|name=Donald J. Trump
|username=realDonaldTrump
|date=Jan 5 2018
|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={{Dummy reference}}
|block=yes
|accessdate=2021-04-02
}}
Donald J. Trump Xの短文投稿より
@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]!

Jan 5 2018[1]

以下の参考:ルネ・デカルト哲学者数学者)、我思う、ゆえに我ありCogito, ergo sum、そんな昔にはインターネットはありません

{{Tweet
|text=Dubito, ergo cogito, ergo sum
|lang=la
|translation=I doubt, therefore I think, therefore I am
|username=descartes
|name=René Descartes
|ref=example
|date=1637
}}
René Descartes Xの短文投稿より
@descartes

ラテン語: Dubito, ergo cogito, ergo sum


I doubt, therefore I think, therefore I am

Jan 1 1637[5]

テンプレートデータ[編集]

This template allows relevant tweets to be easily quoted within articles, with a citation automatically generated using the template, "cite tweet". Using this template is better than a screen-shot of a tweet because the text is accessible to screen readers. It is an alternative to standard quotation templates because it displays all relevant information about the tweet(date of posting, user's name, user's handle, etc) in a way that reflects Twitter's design language.

テンプレートパラメーター

パラメーター説明状態
blockblock

Any value displays tweet as block(text above and below, doesn't flow around). Overrides left parameter

文字列省略可能
widthwidth

Custom tweet width

300px
文字列省略可能
leftleft

Any value makes tweet aligned left

文字列省略可能
namename

User's name as it appears at the top of the tweet

文字列必須
usernameusername

User's Twitter handle. Do not include the @ symbol.

不明必須
datedate

Date of the tweet formatted according to MOS:DATE

日時必須
texttext

Content of the tweet

文字列必須
IDID id

The number at the end of the tweet URL

数値推奨
referencereference ref

A custom reference can be provided to use instead of the automatically generated one

<ref>custom reference</ref>
文字列省略可能
imageimage

Image or logo associated with twitter account

ファイル省略可能
replytoreplyto

Username the tweet is replying to

文字列省略可能
langlang language

language code of original tweet

de
文字列省略可能
translationtranslation

english translation of the tweet

不明省略可能

備考[編集]

  1. ^ NASA [@NASA] (2014年8月2日). "@WilliamShatner Good day, Captain. #ISS is in standard orbit and Commander Swanson has the conn. Hope you're having a great weekend!". X(旧Twitter)より2021年4月2日閲覧
  2. ^ https://twitter.com/realDonaldTrump/status/869766994899468288 [リンク切れ]
  3. ^ トランプ米大統領が謎の単語「covfefe」をツイート、憶測広がる(2017.6.1、ロイター
  4. ^ https://twitter.com/realDonaldTrump/status/949126530839572481 、原文に"[Bannon]"(スティーブン・バノン)は含まれていません
  5. ^ example