Tooltips: Difference between revisions
No edit summary |
clarifies |
||
| Line 1: | Line 1: | ||
{{Feature | |||
|explains = Tooltips | |||
|description =create icons with onmouseover tooltips | |||
|notes =not working as of 2016-01-19 | |||
|tests = | |||
|examples =[[Template:Tooltip/doc]] | |||
}} | |||
== Semantic MediaWiki == | == Semantic MediaWiki == | ||
To create tooltips in your wiki, you can simply use the '''info''' function that is [ | 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.}} | This is a Semantic MediaWiki example: {{#info:This is a tooltip.}} | ||
== Extension == | == Extension == | ||
The Tooltip extension has it's latest code on the 'Talk' page, and is superseded by extensions like [[mw:Extension:Lingo|Extension:Lingo]]. | The Tooltip extension has it's latest code on the 'Talk' page, and is superseded by extensions like [[mw:Extension:Lingo|Extension:Lingo]]. | ||
== Template | == 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 }} | |||