Extension:SimpleTooltip/ja

Category:MIT licensed extensions/ja
MediaWiki 拡張機能マニュアル
SimpleTooltip
リリースの状態: 安定Category:Stable extensions/ja
実装 パーサー関数 Category:Parser function extensions/ja
説明 Provides basic tooltips, supporting inline text and info icons
作者 Simon Heimler
メンテナー gesinn.it
最新バージョン 2.0.0 (2024-06-12)
MediaWiki 1.39+Category:Extensions with manual MediaWiki version
PHP 7.4+
データベースの変更 いいえ
ライセンス MIT ライセンス
ダウンロード Category:Extensions in GitHub version control/ja
  • $wgSimpleTooltipSubmitText
Category:All extensions/ja

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 ファイルの末尾に追加します:
    wfLoadExtension( 'SimpleTooltip' );
    
  • Yes 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。

設定

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)

SimpleTooltip example

関連項目

Category:Popup extensions/ja
Category:All extensions/ja Category:BeforePageDisplay extensions/ja Category:Extensions in GitHub version control/ja Category:Extensions included in semantic::core/ja Category:Extensions with manual MediaWiki version Category:LocalisationCacheRecache extensions/ja Category:MIT licensed extensions/ja Category:ParserFirstCallInit extensions/ja Category:Parser function extensions/ja Category:Popup extensions/ja Category:Stable extensions/ja