Template:Tooltip: Difference between revisions

From SGUTranscripts
Jump to navigation Jump to search
(what's up with the "invoke string" stuff?)
m (updated note info)
(29 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifeq:{{yesno-no|{{{link}}}}}|yes
<span title="{{{2}}}" class="rt-commentedText explain">{{{1|}}}</span><noinclude>
|[[{{{1}}}|<span title="{{{2}}}" class="rt-commentedText {{#ifeq:{{yesno-yes|{{{dotted}}}}}|no||explain}} {{{class|}}}" {{#if:{{{id|}}}|id="{{{id}}}"}} {{#if:{{{style|}}}|style="{{{style}}}"}} title="{{#tag:nowiki|{{{2|}}}|"|&quot;}}}}">{{{1|}}}</span>]]
This template allows for transcribers to attach a hovering note to some text, such as a name dear to the Rogues, like {{tooltip|Julia|one of Steve's daughters}}.
|<span title="{{{2}}}" class="rt-commentedText {{#ifeq:{{yesno-yes|{{{dotted}}}}}|no||explain}} {{{class|}}}" {{#if:{{{id|}}}|id="{{{id}}}"}} {{#if:{{{style|}}}|style="{{{style}}}"}} title="{{#tag:nowiki|{{{2|}}}|"|&quot;}}}}">{{{1|}}}</span>
 
}}
The format is: <pre>{{tooltip|name or text|hovering note about the name or text}}</pre>
 
The above example renders as {{tooltip|name or text|hovering note about the name or text}}, with a dotted line under "name or text" and a floating '?' above it to draw attention to the hovering note.
</noinclude>

Revision as of 05:14, 17 August 2021

This template allows for transcribers to attach a hovering note to some text, such as a name dear to the Rogues, like Julia.

The format is:

{{tooltip|name or text|hovering note about the name or text}}

The above example renders as name or text, with a dotted line under "name or text" and a floating '?' above it to draw attention to the hovering note.