Difference between revisions of "Tooltips"

From Freephile Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
== Semantic MediaWiki ==
 
== 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 [https://www.semantic-mediawiki.org/wiki/Help:Adding_tooltips included in Semantic MediaWiki].
 +
This is a Semantic MediaWiki example {{#info:This is a tooltip.}}
  
There would normally be a tooltip here{{#info:This is a tooltip.}}
+
== Extension ==
 +
The Tooltip extension has it's latest code on the 'Talk' page, and is superseded by extensions like [[mw:Extension:Lingo|Extension:Lingo]].
  
== Tooltip Extension ==
+
== Template and Parser function ==
There is an extension <ref>http://www.mediawiki.org/wiki/Extension:Tooltip</ref> that allows you to add tooltips via tag or parser function.
+
Trying the template and parser function approach works like this
 
 
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}}
 
{{tooltip | base text | tooltip text}}

Revision as of 17:43, 11 January 2016

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 Semantic MediaWiki example This is a tooltip.

Extension[edit | edit source]

The Tooltip extension has it's latest code on the 'Talk' page, and is superseded by extensions like Extension:Lingo.

Template and Parser function[edit | edit source]

Trying the template and parser function approach works like this

base text


References[edit source]