Difference between revisions of "User:Wookipan/Tooltip"

From Team Fortress Wiki
Jump to: navigation, search
m
m (Placement adjustment to make it feel a little more like the native "title" attribute)
Line 1: Line 1:
<span class="wiki-tooltip" style="cursor:help; border-bottom:1px dotted; {{#if:{{{plain|}}}|cursor:auto; border:none;}}" title><span class="wiki-tooltip-content" style="left: 0;">{{{2|Example text}}}</span>{{{1|Example}}}</span><noinclude>
+
<span class="wiki-tooltip" style="cursor:help; border-bottom:1px dotted; {{#if:{{{plain|}}}|cursor:auto; border:none;}}" title><span class="wiki-tooltip-content" style="left: 100%;">{{{2|Example text}}}</span>{{{1|Example}}}</span><noinclude>
 
{{doc begin}}
 
{{doc begin}}
 
=== Usage ===
 
=== Usage ===

Revision as of 19:48, 5 September 2023

Example textExample

Documentation for Wookipan/Tooltip

Usage

  • {{Tooltip|foo|bar}} generates foo
  • {{Tooltip|foo|bar|plain=true}} generates foo

Tooltip