NeuroWiki hereby wishes Evil Neuro happy 2nd birthday on March 25, 2025!

Template:Tooltip: Difference between revisions

From NeuroWiki
Jump to navigation Jump to search
m Text replacement - "Category:([A-Za-z]+)\s*(.*)" to "Category:$1 {{lc:$2}}"
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
  |[[{{{1}}}|<span class="rt-commentedText tooltip {{#ifeq:{{yesno-yes|{{{dotted}}}}}|no||tooltip-dotted}} {{{class|}}}" {{#if:{{{id|}}}|id="{{{id}}}"}} {{#if:{{{style|}}}|style="{{{style}}}"}} title="{{#tag:nowiki|{{#invoke:String|replace|{{{2|}}}|"|&quot;}}}}">{{{1|}}}</span>]]
  |[[{{{1}}}|<span class="rt-commentedText tooltip {{#ifeq:{{yesno-yes|{{{dotted}}}}}|no||tooltip-dotted}} {{{class|}}}" {{#if:{{{id|}}}|id="{{{id}}}"}} {{#if:{{{style|}}}|style="{{{style}}}"}} title="{{#tag:nowiki|{{#invoke:String|replace|{{{2|}}}|"|&quot;}}}}">{{{1|}}}</span>]]
  |<span class="rt-commentedText tooltip {{#ifeq:{{yesno-yes|{{{dotted}}}}}|no||tooltip-dotted}} {{{class|}}}" {{#if:{{{id|}}}|id="{{{id}}}"}} {{#if:{{{style|}}}|style="{{{style}}}"}} title="{{#tag:nowiki|{{#invoke:String|replace|{{{2|}}}|"|&quot;}}}}">{{{1|}}}</span>
  |<span class="rt-commentedText tooltip {{#ifeq:{{yesno-yes|{{{dotted}}}}}|no||tooltip-dotted}} {{{class|}}}" {{#if:{{{id|}}}|id="{{{id}}}"}} {{#if:{{{style|}}}|style="{{{style}}}"}} title="{{#tag:nowiki|{{#invoke:String|replace|{{{2|}}}|"|&quot;}}}}">{{{1|}}}</span>
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:P {{lc:}}ages using tooltip with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Tooltip]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | class | dotted | id | link | style }}<noinclude>
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:P{{lc: ages using tooltip with unknown parameters|_VALUE_{{PAGENAME}}}}]]}}|preview=Page using [[Template:Tooltip]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | class | dotted | id | link | style }}<noinclude>
{{Documentation}}
{{Doc}}
</noinclude>
</noinclude>

Latest revision as of 21:54, 12 April 2025

[ View | Edit | History | Purge ]Documentation page

{{Tooltip}} is a template that generates a tooltip popup for text that is not an abbreviation. If what you're representing is not an abbreviation, you must use this template.

Template Parameters

{{Tooltip}} has two unnamed parameters:

  1. Abbreviation text: This text will be displayed on the page with an underlined dotted style.
  2. Full text: When a user hovers their mouse cursor over the abbreviation text in most web browsers, the tooltip will pop up and display the full text. Avoid using any special syntax in the full text; only plain text should be used.

{{Tooltip}} also has a dotted parameter. When set to `no`, the dotted underline will be removed. Note that doing so may make it harder for readers to identify where tooltips are available.

Usage Example

{{tooltip |Hover over me |You did it right}}Hover over me

[ View | Edit | History | Purge ]The above documentation is transcluded from Template:Tooltip/doc.