Template:Tweet

ナビゲーションに移動 検索に移動
テンプレートの解説[表示] [編集] [履歴] [キャッシュを破棄]
Example Twitterより
@example

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

12 Jul 2017[1]

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

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

通常の引用テンプレートの代替的な使用を意図しており、ツイートに関連する重要な情報(投稿日、ユーザー名、ユーザー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]
}}

使用例:[編集]

{{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 logo.svg
NASA Twitterより
@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]

{{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 Twitterより
@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 Twitterより
@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]

{{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 Twitterより
@descartes

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


I doubt, therefore I think, therefore I am

Jan 1 1637[2]

TemplateData[編集]

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

不明省略可能

Refs[編集]

  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!" (ツイート). Twitterより2021年4月2日閲覧
  2. ^ example