Template:Texttip: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Created page with ";Description :Adds a simple text tooltip to text. ;Syntax :<code>{{t|Texttip|text|tiptext}}</code> ;Paramaters * '''1/text''' = Text to show. Can include links, but be careful …")
 
(Created page with "Adds a simple text tooltip to text. ;Syntax ;Example Category:Templates ---- ;Template <onlyinclude><!-- --><span style="{{#ifeq:{{{noline|-}}}|||border-bottom:1px dot...")
 
Line 1: Line 1:
;Description
Adds a simple text tooltip to text.
:Adds a simple text tooltip to text.


;Syntax
;Syntax
:<code>{{t|Texttip|text|tiptext|style=optional_span_CSS}}</code>
;Paramaters
* '''1/text''' = Text to show. Can include links, but be careful if you don't supply tip text.
* '''2/tiptext''' = Text for tooltip. Don't use double quotes, links or HTML tags.
* '''noline=''' - Don't show a dotted underline (no value needed).


;Example
;Example
<pre>
{{texttip|Some text|A tooltip for the text.}}
{{texttip|No dotted underline|A tooltip for the text.|noline=}}
{{texttip|Some text|A tooltip for the text.|style=color:red;}}
</pre>
:...yields:
{{texttip|Some text|A tooltip for the text.}}
{{texttip|No dotted underline|A tooltip for the text.|noline=}}
{{texttip|Some text|A tooltip for the text.|style=color:red;}}
;See also
* {{t|Quicktooltip}} which may have less restrictions, but requires Javascript to work.


[[Category:General wiki templates]]
----
----
;Template
;Template
<onlyinclude><span style="{{#ifeq:{{{noline|-}}}|||border-bottom:1px dotted gray; }}cursor:help;{{#if:{{{style|}}}| {{{style}}}}}" title="{{{tiptext|{{{2|{{{1|Missing tip.}}}}}}}}}">{{{text|{{{1|''Missing text.''}}}}}}</span></onlyinclude>
<onlyinclude><!--
 
--><span style="{{#ifeq:{{{noline|-}}}|||border-bottom:1px dotted gray; }}cursor:help;{{#if:{{{style|}}}| {{{style}}}}}" title="{{{tiptext|{{{2|{{{1|Missing tip.}}}}}}}}}">{{{text|{{{1|''Missing text.''}}}}}}</span><!--


[[Category:General wiki templates|{{PAGENAME}}]]
--></onlyinclude>

Latest revision as of 05:22, 4 April 2014

Adds a simple text tooltip to text.

Syntax
Example

Template

Missing text.