Template:Tooltip

From Cosmoteer Wiki
Jump to navigation Jump to search

{{{1}}}


A simple template used to add tooltips to specified text. Yes.

Usage

{{Tooltip|Normal Text|Tooltip Text}}

Regular usage:

Normal Text Stored within your mods folder.

Variable ProhibitArea is a... ← example of a long tooltip text


With custom width: currently not supported

Text with a tooltip that has a forced with set to 30em.


With a linebreak inside: Text with a tooltip inside.


Using a callout template inside with a complex formatting, tooltip align set to left: align currently not supported

Text with a tooltip that has a callout template inside.


Wrapping in tight spaces:

A sentence with a lot of words and a tooltip in a middle of it, which does wrap in a middle of itself onto the next line.
Tooltip still appears above the text.


In a table header:

This a tooltip in the middle of a header

Table data goes here


A template used to add hoverable tooltips to words and sentences.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Tooltip Text1

The text that needs to be hovered over

Example
Hover Me
Contentrequired
Tooltip Contents2

The contents of the tooltip to be displayed when hovering

Example
I'm a tooltip!
Contentrequired
Text aligntext align 3

[NOT SUPPORTED] Align of the text inside.

Suggested values
left center right
Default
center
Lineoptional
Width overridewidth

[NOT SUPPORTED] Overrides the automatic width. Recommended units: em (relative text size).

Example
20em
Lineoptional