Extension:MetaMaster/ja

From mediawiki.org
This page is a translated version of the page Extension:MetaMaster and the translation is 50% complete.
This extension is professionally maintained by the WikiTeq team.
WikiTeq provides official support for MediaWiki LTS releases only. It may work with other MediaWiki releases.
MediaWiki 拡張機能マニュアル
MetaMaster
リリースの状態: 安定
実装 パーサー関数
説明 A parser function that allows adding HTML ‎<meta> tags to the page header
作者 Ike Hecht (tosfosトーク)
メンテナー WikiTeq team
最新バージョン 1.0.1 (2021年7月)
互換性の方針 長期間サポート リリースであるすべての MediaWiki リリースについて、拡張機能に対応するブランチが存在します。
MediaWiki 1.35, 1.39
データベースの変更 いいえ
Composer metamaster/meta-master-extension
ライセンス GNU 一般公衆利用許諾書 2.0
ダウンロード
README
  • $wgMetaMasterEnableFoo
Quarterly downloads 5 (Ranked 144th)
translatewiki.net で翻訳を利用できる場合は、MetaMaster 拡張機能の翻訳にご協力ください
問題点 未解決のタスク · バグを報告

The MetaMaster extension is a simple extension that allows adding HTML ‎<meta> tags using a parser function. It supports any text as the name and description.

This extension was created for WikiWorks.

インストール

  • ダウンロードして、ファイルをextensions/フォルダー内のMetaMasterという名前のディレクトリ内に配置します。
    開発者とコード寄稿者は、上記の代わりに以下を使用してGitからインストールします:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/MetaMaster
  • 以下のコードを LocalSettings.php ファイルの末尾に追加します:
    wfLoadExtension( 'MetaMaster' );
    
  • Yes 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。

使用法

{{#metamaster:name|content}}

Where name represents the name attribute of the ‎<meta> tag and content represents the content attribute. There can be multiple tags per page.

Example

{{#metamaster:date|2002-04-04}}

This results in the following tag being added to the HTML head section:

<meta name="date" content="2002-04-04" />

The extension can also be used to add the ever-desired meta description tag, such as in this example:

{{#metamaster:description|This is some text description.}}

Which results in:

<meta name="description" content="This is some text description." />

関連項目