Extension:SimpleTooltip/pl

Category:MIT licensed extensions/pl
Podręcznik rozszerzeń MediaWiki
SimpleTooltip
Status wydania: stabilneCategory:Stable extensions/pl
Realizacja Funkcja parsera Category:Parser function extensions/pl
Opis Provides basic tooltips, supporting inline text and info icons
Autor(zy) Simon Heimler
Opiekun(owie) gesinn.it
Ostatnia wersja 2.0.0 (2024-06-12)
MediaWiki 1.39+Category:Extensions with manual MediaWiki version
PHP 7.4+
Zmiany w bazie danych Nie
Licencja Licencja MIT
Pobieranie Category:Extensions in GitHub version control/pl
  • $wgSimpleTooltipSubmitText
Category:All extensions/pl

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.

Instalacja

  • Pobierz i umieść plik(i) w katalogu o nazwie SimpleTooltip w folderze extensions/.
  • Dodaj poniższy kod na dole twojego pliku LocalSettings.php :
    wfLoadExtension( 'SimpleTooltip' );
    
  • Yes Zrobione – Przejdź do Special:Version na twojej wiki, aby sprawdzić czy rozszerzenie zostało pomyślnie zainstalowane.

Konfiguracja

Currently there are no options supported. This may change due to demand or not.

Użycie

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

Zobacz też

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