Difference between revisions of "Template:Tooltip"

From Freephile Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{#tooltip: {{{1}}}|{{{2}}}}}</includeonly><noinclude>Usage: <nowiki>{{tooltip | base text | tooltip text}}</nowiki> ({{tooltip | base text | tooltip text}})</noi...")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#tooltip: {{{1}}}|{{{2}}}}}</includeonly><noinclude>Usage: <nowiki>{{tooltip | base text | tooltip text}}</nowiki> ({{tooltip | base text | tooltip text}})</noinclude>
+
<includeonly>{{#info: {{{1}}}|{{{2}}}}}</includeonly>
 
+
<noinclude>{{documentation}}</noinclude>
[[Category:Wiki]]
 

Latest revision as of 15:12, 19 January 2016

Documentation icon Template documentation[view] [edit] [history] [purge]

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