Extension:TwitterTag

From mediawiki.org
This page is a translated version of the page Extension:TwitterTag and the translation is 100% complete.
MediaWiki 拡張機能マニュアル
TwitterTag
リリースの状態: 安定
実装 タグ
作者 Mikko Miettinen
最初のバージョン:
最新バージョン 1.2.1
互換性の方針 master は後方互換性を維持しています。
MediaWiki 1.27+
PHP 7.1.0+
ライセンス GNU 一般公衆利用許諾書 3.0 以降
ダウンロード
Jedipedia
‎<twitter />
Quarterly downloads 4 (Ranked 137th)
translatewiki.net で翻訳を利用できる場合は、TwitterTag 拡張機能の翻訳にご協力ください

TwitterTagの拡張機能では、Twitterのコンテンツをページに埋め込むことができるように‎<twitter />タグを追加します。 Fandomの拡張機能から移植されたものです。

インストール

特に指定がない限り、すべてのサポートバージョンと互換性のある「マスター」バージョンをダウンロードし、インストールする必要があります。 リリースブランチはサポート対象外であり、古くなっている可能性があります。
  • ダウンロードして、ファイルをextensions/フォルダー内のTwitterTagという名前のディレクトリ内に配置します。
    開発者とコード寄稿者は、上記の代わりに以下を使用してGitからインストールします:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/TwitterTag
  • 以下のコードを LocalSettings.php ファイルの末尾に追加します:
    wfLoadExtension( 'TwitterTag' );
    
  • Yes 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。

使用法

Currently the extension supports individual tweets, profile timeline and list timeline. Likes timelines were deprecated by Twitter on January 13, 2023. Pages containing them are added to a tracking category since version 1.2.1.

ツイートを追加するには、以下のコードを使用します。 ‎<twitter screen-name="screen_name" tweet-id="tweet_id" />

プロフィールタイムラインを追加するには、以下のコードを使用します。 ‎<twitter screen-name="スクリーン名" />

リストタイムラインを追加するには、以下のコードを使用します。 ‎<twitter screen-name="スクリーン名" list-slug="スクリーン名" />

また、パラメータhref=を使用して完全なURLを提供することもできます。

height=width=lang=など、Twitterが提供するほとんどのパラメータがサポートされています。