DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:autotooltip

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:autotooltip [2023-12-29 19:05] ziothplugin:autotooltip [2024-02-11 03:39] (current) zioth
Line 6: Line 6:
 email      : elifenton@this_is_not_a_real_email.fake email      : elifenton@this_is_not_a_real_email.fake
 type       : syntax, helper, action, renderer type       : syntax, helper, action, renderer
-lastupdate : 2020-11-22 +lastupdate : 2024-02-10 
-compatible : Greebo, Hogfather, Igor, Jack Jackrum+compatible : Greebo, Hogfather, Igor, Jack Jackrum, Kaos
 depends    :  depends    : 
 conflicts  conflicts 
Line 28: Line 28:
 Install the plugin using the [[plugin:plugin|Plugin Manager]] and the download URL above, which points to latest version of the plugin. Refer to [[:Plugins]] on how to install plugins manually. Install the plugin using the [[plugin:plugin|Plugin Manager]] and the download URL above, which points to latest version of the plugin. Refer to [[:Plugins]] on how to install plugins manually.
  
-==== Adding tooltips to every link ==== 
  
-This plugin allows you to manually insert tooltips one-by-one, or to generate them automatically for every wikilink on your site (or a subset thereof, limited by namespace).+==== Automatically turning plain text into links with tooltips ====
  
-There are three ways to enable this feature+Install both this plugin and [[plugin:autolink4|Autolink 4]]. The configuration options for Autolink 4 allow you to specify text or regular expressions, and automatically turn those into links with tooltips. 
-  If you're already using [[plugin:actionrenderer|ActionRenderer]] as your renderer, you don't have to do anything. + 
-  - Go to //Admin// -> //Configuration// -> //Advanced// -> //renderer_xhtml//, and select "Auto-Tooltip." + 
-  - If neither of those options suits your needsconsider [[plugin:autolink4|Auto-link 4]], which can add tooltips to links that it generates, when installed alongside AutoTooltip.+==== Adding tooltips to every link on your site, or specific namespaces ==== 
 + 
 +If you're already using [[plugin:actionrenderer|ActionRenderer]] as your renderer, this will happen automaticallyOtherwise, Go to //Admin// -> //Configuration// -> //Advanced// -> //renderer_xhtml//, and select "Auto-Tooltip." Note that you can only have one custom rendererso this is not compatible with other renderer plugins. 
 + 
 +You can limit this to specific namespaces or pages using the configuration options.
  
 You won't see tooltips on self-referential links. In other words, a link to //wiki:whatever// on //wiki:whatever// will not have a tooltip. You won't see tooltips on self-referential links. In other words, a link to //wiki:whatever// on //wiki:whatever// will not have a tooltip.
Line 43: Line 46:
  
 [[http://zioth.com/dev/dokuwiki/autotooltip|See these examples live]]. [[http://zioth.com/dev/dokuwiki/autotooltip|See these examples live]].
 +
 +=== Generating tooltip content automatically ===
 +
 +  <autott>wiki:syntax</autott>
 +
 +This will generate a link to wiki:syntax, using the page's title as the link text. The tooltip will include the page's title and abstract.
 +
 +  <autott>wiki:syntax|Custom Title</autott>
 +
 +Same as above, but the link text will be "Custom Title."
  
 === Manual tooltips === === Manual tooltips ===
Line 53: Line 66:
 This creates a simple tooltip for text on the page. This creates a simple tooltip for text on the page.
  
-=== Customizing a tooltip ===+=== Customizing appearance ===
   <autott style1 style2>...</autott>   <autott style1 style2>...</autott>
  
Line 72: Line 85:
  
   <autott picture>...</autott>   <autott picture>...</autott>
- 
- 
- 
-=== Generating a tooltip === 
- 
-  <autott>wiki:syntax</autott> 
- 
-This will generate a link to wiki:syntax, using the page's title as the link text. The tooltip will include the page's title and abstract. 
- 
-  <autott>wiki:syntax|Custom Title</autott> 
- 
-Same as above, but the link text will be "Custom Title." 
  
  
plugin/autotooltip.1703873153.txt.gz · Last modified: 2023-12-29 19:05 by zioth

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki