Tooltips: Difference between revisions

From Freephile Wiki
No edit summary
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Feature
|image=Reference Tooltips reworked.png
|imgdesc=tooltips
|title=
}}
{{#set:feature description = create icons with onmouseover tooltips }}
{{#set:feature notes = works on this page, but not on the doc page?? as of 2016-01-19 }}
{{#set:feature tests =  }}
{{#set:feature examples = [[Template:Tooltip/doc]] }}
== 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 [[smw:Help:Adding_tooltips|included in Semantic MediaWiki]].
This is a Semantic MediaWiki example: {{#info:This is a tooltip.}}


{{#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 ==
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}}


== Template ==
<nowiki>{{Tooltip | text | icon}}</nowiki> which uses the [[Template:Tooltip|Tooltip]] template, which in turn relies on the <code>#info</code> parser function by SMW works like this:
{{Tooltip | This is some info | info }}


{{References}}
{{References}}


[[Category:Wiki]]
[[Category:Wiki]]

Latest revision as of 19:36, 14 May 2020


Tooltips
tooltips
tooltips
Image shows: tooltips
Summary
Description: create icons with onmouseover tooltips
More
Notes: works on this page, but not on the doc page?? as of 2016-01-19
Example: Template:Tooltip/doc



Semantic MediaWiki[edit]

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]

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

Template[edit]

{{Tooltip | text | icon}} which uses the Tooltip template, which in turn relies on the #info parser function by SMW works like this: This is some info


References[edit]