Difference between revisions of "Tooltips"

From Freephile Wiki
Jump to navigation Jump to search
(Created page with "To create tooltips in your wiki, you can simply use the '''info''' function that is included in Semantic MediaWiki. {{#info:This is a tooltip. The title of the tooltip is "N...")
 
Line 1: Line 1:
 +
== Semantic MediaWiki ==
 
To create tooltips in your wiki, you can simply use the '''info''' function that is included in Semantic MediaWiki.
 
To create tooltips in your wiki, you can simply use the '''info''' function that is included in Semantic MediaWiki.
  
{{#info:This is a tooltip. The title of the tooltip is "Note" because we have added the second optional argument to specify the type. Type also changes the icon displayed}}
+
{{#info:This is a tooltip.}}
 +
 
 +
== Tooltip Extension ==
 +
There is an extension <ref>http://www.mediawiki.org/wiki/Extension:Tooltip</ref> that allows you to add tooltips via tag or parser function.
 +
 
 +
Using the tag like this <pre><tooltip text="body text" x=xoffset y=yoffset>tooltip text</tooltip></pre> produces UNIQab115884f90c6e0b-tooltip-00000005-QINU errors
 +
 
 +
Trying the template and parser function approach produces fatal errors because methods in the Parser class have changed.
 +
 
 +
{{tooltip | base text | tooltip text}}
 +
 
 +
 
 +
{{References}}
  
 
[[Category:Wiki]]
 
[[Category:Wiki]]

Revision as of 15:43, 2 December 2014

Semantic MediaWiki[edit | edit source]

To create tooltips in your wiki, you can simply use the info function that is included in Semantic MediaWiki.

This is a tooltip.

Tooltip Extension[edit | edit source]

There is an extension [1] that allows you to add tooltips via tag or parser function.

Using the tag like this

<tooltip text="body text" x=xoffset y=yoffset>tooltip text</tooltip>

produces ?UNIQab115884f90c6e0b-tooltip-00000005-QINU? errors

Trying the template and parser function approach produces fatal errors because methods in the Parser class have changed.

base text


References[edit source]