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...")
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Feature
+
To create tooltips in your wiki, you can simply use the '''info''' function that is included in Semantic MediaWiki.
|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 ==
 
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.}}
 
  
== Extension ==
+
{{#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}}
The Tooltip extension has it's latest code on the 'Talk' page, and is superseded by extensions like [[mw:Extension:Lingo|Extension:Lingo]].
 
 
 
== 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}}
 
  
 
[[Category:Wiki]]
 
[[Category:Wiki]]

Revision as of 12:41, 2 December 2014

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

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