Difference between revisions of "Template:Tooltip/doc"

From Freephile Wiki
Jump to navigation Jump to search
(examples still not working)
 
Line 6: Line 6:
 
{{#info: <text> | <icon> }}
 
{{#info: <text> | <icon> }}
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
== Examples ==
 +
* {{#info:this is some info | info }}
 +
* {{#info:note about something | note }}
 +
* {{#info:warning: high voltage | warning }}
  
 
== Help ==
 
== Help ==

Latest revision as of 15:30, 19 January 2016

Usage[edit source]

{{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[edit source]

  • this is some info
  • note about something
  • warning: high voltage

Help[edit source]

smw:Help:Adding_tooltips