Articles by alphabetic order
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
 Ā Ī Ñ Ś Ū Ö Ō
1 2 3 4 5 6 7 8 9 0


Help:Assisting Codes

From Tibetan Buddhist Encyclopedia
Revision as of 11:22, 15 November 2015 by Adminos (talk | contribs) (Created page with "=Adding tooltips= == Syntax == <syntaxhighlight lang="html4strict">{{#info: <text> | <icon> }}</syntaxhighlight> == Parameters == ===Text=== The first parameter displays the...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Adding tooltips

Syntax

Parameters

Text

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).

Icon

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 test
note A orange icon with exclamation mark. test
warning A yellow icon with exclamation mark. test

Examples

Code Result Comment
Some inline text {{#info:Text to be shown in a bubble.}} Some inline text 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}} Telephone number Please enter it in the format e.g. +49-30-45084940
2011-02-29 {{#info:Incorrect date.|warning}} 2011-02-29 Incorrect date.

Related tips

See also

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