Home
Random
Log in
Settings
About Mango's Lewd Diplomacy: Official Wiki
Disclaimers
Mango's Lewd Diplomacy: Official Wiki
Search
Editing
Template:Tooltip/doc
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
The edit appears to have already been undone.
Anti-spam check. Do
not
fill this in!
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude> <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> {{see also|:Template:Hover box}} This template creates the effect of displaying an advanced tooltip when hovering over a text or icon/image -- it is achieved by applying the ''tooltip'' and ''tooltiptext'' classes to container classes such as <code><nowiki><span>XYZ</span></nowiki></code> or <code><nowiki><div>XYZ</div></nowiki></code>. The user can customize the tooltip's appearance by defining its layout, used images, and text styles. This can be defined in-page, called via another template, or called after being enveloped within transclusion tags. == Parameters == {| class="wikitable" |- ! Parameter !! Description !! Default !! Status |- | 1 || Dotted underlined text || β || '''required''' |- | 2 || The tooltip appearing after a hovering action || β || '''required''' |- | class || Specifies the class of the tooltip container. || plainlist || optional |- | style || Specifies the style properties of the tooltip container. || β || optional |- | padding || Specifies the additional space added at the edges of the tooltip container. || 6 || optional |- | width || Width of the tooltip. <br> Applies nowrap to tooltip contents if unspecified. || nowrap || optional |- | index || Allows tooltip-in-a-tooltip functionality, only set to 2 or 3 || β || optional |} == Example == {{see also|Template:Tooltip/Example}} {{Template:Tooltip/Example}} For a usage example, see the table on the right. It has been defined as a template and also enveloped within transclusion tags. This allows the table to be called in one of the below ways: * <code><nowiki><span>Hover {{Tooltip|here|{{Template:Tooltip/Example}}}} to see the tooltip</span></nowiki></code> * <code><nowiki><span>Hover {{Tooltip|here|{{#lst:Template:Tooltip/Example|example table}}}} to see the tooltip</span></nowiki></code> Both of which will result in: <span>Hover {{Tooltip|here|{{#lst:Template:Tooltip/Example|example table}}}} to see the tooltip</span> == Notes == # For a simpler tooltip on hover effect please refer to the existing [[:Template:Hover box|hover box]] template. # The "wikitable" class has by default 1em margin added to the top and the bottom of the table causing tables of this class to appear a tad below its template. For best effect it is advised to set the margin style to 0px. # To allow for objects like tables to appear inline, the whole sentence/paragraph should be enveloped within an external <code><nowiki><span>XYZ</span></nowiki></code> or <code><nowiki><div>XYZ</div></nowiki></code>.
Summary:
Please note that all contributions to Mango's Lewd Diplomacy: Official Wiki are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) (see
Mango's Lewd Diplomacy Official Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Hatnote
(
edit
)
Template:See also
(
edit
)
Template:Template doc page viewed directly
(
edit
)
Template:Tooltip
(
edit
)
Template:Tooltip/Example
(
edit
)