Difference between revisions of "User:Wookipan/Tooltip"

From Team Fortress Wiki
Jump to: navigation, search
m (Placement adjustment to make it feel a little more like the native "title" attribute)
m
 
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: 100%;">{{{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: 50%;">{{{2|Example text}}}</span>{{{1|Example}}}</span><noinclude>
 
{{doc begin}}
 
{{doc begin}}
 
=== Usage ===
 
=== Usage ===

Latest revision as of 19:45, 3 October 2023

Example textExample

Documentation for Wookipan/Tooltip

Usage

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

Tooltip