Extension:SimpleTooltip
現在、この拡張機能は積極的な保守が行われていません! それでも機能する可能性はありますが、バグ報告や機能の要望は無視される可能性が高くなります。 |
![]() リリースの状態: 保守されていない |
|
---|---|
実装 | パーサー関数 |
説明 | Provides basic tooltips, supporting inline text and info icons |
作者 | Simon Heimler (Fannonトーク) |
最新バージョン | 1.1.0 (2017-11-20) |
MediaWiki | 1.19+ |
PHP | 5.2+ |
データベースの変更 | いいえ |
ライセンス | MIT ライセンス |
ダウンロード | README |
The SimpleTooltip extension adds support for basic tooltips. It uses the Tooltipster Library to do so.
It has no dependencies on other extensions. The extension has explicit support for Page Forms, where tooltips within multiple instance forms will get created dynamically. This will not work with the "info" parser function provided by Semantic MediaWiki.
インストール
- ダウンロードして、ファイルを
extensions/
フォルダー内のSimpleTooltip
という名前のディレクトリ内に配置します。 - 以下のコードを LocalSettings.php ファイルの末尾に追加します:
require_once "$IP/extensions/SimpleTooltip/SimpleTooltip.php";
- 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。
Instead of downloading the zip archive you may also check this extension out via Git:
git clone https://github.com/Fannon/SimpleTooltip.git
設定
Currently there are no options supported. This may change due to demand or not.
使用法
There is a short alias and a more descriptive parser function name for each tooltip type.
Inline-text tooltip
{{#tip-text: text | tooltip-text}}
{{#simple-tooltip: text | tooltip-text}}
Info-icon tooltip:
{{#tip-info: tooltip-text }}
{{#simple-tooltip-info: tooltip-text }}
Inline-Image tooltip:
{{#tip-img: /path/to/your/image.png | image tooltip-text }}
{{#simple-tooltip-img: /path/to/your/image.png | image tooltip-text }}
The "tip-img" and the "simple-tooltip-img" parser function respectively do not resize the image set to be shown, i.e. the image must be uploaded in an appropriate size like e.g. 16px x 16px.
Example result (Screenshot)
See also
この拡張機能は以下のウィキ ファーム/ウィキ ホスト/パッケージに含まれています: これは正式な一覧ではありません。 一部のウィキ ファーム/ウィキ ホスト/パッケージは、ここに記載されていなくてもこの拡張機能を含んでいる場合があります。 必ずご利用のウィキ ファーム、ウィキ ホスト、バンドルで確認してください。 |