Created page with "== Usage == <nowiki>{{Tooltip | text | icon}}</nowiki> where 'icon' is an optional style parameter; one of info|note|warning Category:Wiki" |
examples still not working |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
== Usage == | == Usage == | ||
<nowiki>{{Tooltip | text | icon}}</nowiki> where 'icon' is an optional style parameter; one of info|note|warning | <nowiki>{{Tooltip | text | icon}}</nowiki> where 'icon' is an optional style parameter; one of info|note|warning | ||
The template ends up calling the parser hook '#info' which comes from the Semantic MediaWiki extension. | |||
<syntaxhighlight lang="html4strict"> | |||
{{#info: <text> | <icon> }} | |||
</syntaxhighlight> | |||
== Examples == | |||
* {{#info:this is some info | info }} | |||
* {{#info:note about something | note }} | |||
* {{#info:warning: high voltage | warning }} | |||
== Help == | |||
[[smw:Help:Adding_tooltips]] | |||
[[Category:Wiki]] | [[Category:Wiki]] |
Latest revision as of 15:30, 19 January 2016
Usage
{{Tooltip | text | icon}} where 'icon' is an optional style parameter; one of info|note|warning
The template ends up calling the parser hook '#info' which comes from the Semantic MediaWiki extension.
{{#info: <text> | <icon> }}
Examples
- this is some info
- note about something
- warning: high voltage