Help:Adding tooltips

Jump to: navigation, search
Adding tooltips
Has description::Adding an icon with a tooltip
Further Information
Provided by: Has component::Semantic MediaWiki
Minimum version: Has minimum version::1.4.0
Maximum version: Has maximum version::still supported
Function: has parser function::yes
Tag: has tag extension::no
Name: Has name::#info
Table of Contents

The parser function #info allows to add tooltips containing additional information or warnings.


{{#info: <text> | <icon> }}



The first parameter displays the text in the #info bubble and should only contain inline HTML elements. There is limited support for wikitext formatting such as bold, italics and internal links. No paragraphs, tables, lists or any other block elements are allowed. One should also avoid using empty lines (because empty line will terminate one paragraph and start another one) and equal signs (see the tips section). Refraining from those guidelines could lead to incorrect HTML code and rendering (e. g. part of text after empty line could be rendered in the page, not in the bubble).


In case a second parameter is passed onto to #info, it will influences the display of the icon. If an incorrect parameter is used then the parameter will be silently ignored, and the default info icon will be displayed instead.

Allowed values are:

Icon Description Example
info A blue icon with question mark; default {{#info: test }}
note A orange icon with exclamation mark. note }}
warning A yellow icon with exclamation mark. warning}}


Code Result Comment
Some inline text {{#info:Text to be shown in a bubble.}} Some inline text {{#info:Text to be shown in a bubble.}} Click on the icon to see the bubble.
Telephone number{{#info:Please enter it in the format e.g. +49-30-55874265|note}} note}} Available since Semantic MediaWiki 1.9.0
2011-02-29 {{#info:Incorrect date.|warning}} warning}} Available since Semantic MediaWiki 1.7.0

Related tips

See also

  • Help:Tooltip ← General information about tooltips and their usage in conjunction with Semantic MediaWiki.

{{#set: |docinfo status=effective }}{{#set: |worn by =Template:Docinfo |warning =Master page updated }}{{#set:

|worn by =Template:Docinfo
|warning =No description

|revision id=44543 |namespace=Help |docinfo progress =100 |docinfo priority =3 }}{{#set:docinfo master page=Help:Adding tooltips }}{{#set:docinfo master rev =44543 }}{{#set:docinfo category=-}}{{#set:docinfo author=User:Van de Bugger}}{{#set:docinfo editor=User:Michael Chidester}}{{#set:docinfo support=-}}{{#set:docinfo language=en}}

This documentation page applies to all SMW versions from 1.9.0 to the most current version.
Other versions: {{#ask: Docinfo master page::Help:Adding tooltips Docinfo language::en from version::!1.9.0|
   ?from version = |
   ?to version = |
   sort = from version|
   order = desc|
   sep=, |
   limit = 3|
   searchlabel = […]
  }}       Other languages: {{#ask: Docinfo master page::Help:Adding tooltips from version::1.9.0 Docinfo language::!en|
  ?Docinfo language =|
  sep=, |
  sort = Docinfo language|
  order = asc|
  limit = 10|
  searchlabel = […]

Docinfo master page::Help:Adding tooltips Docinfo language::en from version::1.9.0

{{#set:Release status=current}}

{{#set:Is master page=true}}