Template:Tooltip/doc

From War Commander Wiki
Jump to navigation Jump to search

This is a template used to retrieve information stored on other pages and display them in the form of a tooltip.

Syntax

{{Tooltip|source page|caption (optional)}}

will retrieve data wrapped in <div class="tooltip-content"></div> tags, stored on source page. The above syntax can be used on any page and will work, provided the there is any content on source page wrapped in the beforementioned tags.

Basic use

{{Tooltip|"Barking Dog" Shotgun}}

gives...

"Barking Dog" Shotgun{{{2}}} <- (hover over the title to see the tooltip)

Optional title

alternatively an optional link title can be added:

{{Tooltip|"Barking Dog" Shotgun|"Barking Dog" Shotgun (weapon)}}

gives...

"Barking Dog" Shotgun"Barking Dog" Shotgun (weapon)

Optional color

the link color can be also changed:

{{Tooltip|"Barking Dog" Shotgun|color=green}}

gives...

"Barking Dog" Shotgun{{{2}}}

alternately, a color class can be used:

{{Tooltip|Stealthy|class=buff}}

gives...

Stealthy{{{2}}}


Optional icon

an icon can also be added:

{{Tooltip|Stealthy|icon=024 Blue}}

gives...

Stealthy{{{2}}}

alternately, the icon template can be used:

{{Tooltip|Catch-22|iconT=Catch-22}}

gives...

Catch-22{{{2}}}