Template:Tooltip: Difference between revisions

From SGUTranscripts
Jump to navigation Jump to search
m (more structure)
m (updating info, examples)
Line 1: Line 1:
<span title="{{{2}}}" class="rt-commentedText explain">{{{1|}}}</span><noinclude>
<span title="{{{2}}}" class="rt-commentedText explain">{{{1|}}}</span><noinclude>
This template allows for transcribers to attach a hovering note to some text, perhaps to alert readers to a connection to a previous episode, like [[SGU Episode 829#tooltipexample|the correction made in Episode 829]], or to note a name dear to the Rogues, like {{tooltip|Julia|one of Steve's daughters}}.
This template allows for transcribers to attach a hovering note to some text, perhaps to alert readers to a connection to a previous episode, like [[SGU Episode 829#correction|the correction made in Episode 829]], or to note a name dear to the Rogues, like {{tooltip|Julia|one of Steve's daughters}}.


The format is: <pre>{{tooltip|_name_or_text_|_hovering_note_about_the_name_or_text_}}</pre>
The basic 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. "_name_or_text_" has been bolded for emphasis in this example.
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.<br>'''Note:''' "_name_or_text_" has been bolded for emphasis in this example.
== Example ==
== Tooltip with Episode/Website/Wiki links ==
=== Link to an SGU Transcripts page ===
To put a tooltip above a link to another Episode, use the tooltip template ''after'' the pipe that follows the link.  
To put a tooltip above a link to another Episode, use the tooltip template ''after'' the pipe that follows the link.  
The tooltip over the bolded, anchored (#) [[SGU Episode 822#tooltipexample|link in Episode 822 to Episode 829]] is formatted: <pre>[[SGU Episode 829#correction|{{tooltip|Wii Shop Channel Theme|correction made in Episode 829}}]]</pre>
The tooltip over the bolded, anchored (#) [[SGU Episode 822#tooltipexample|link in Episode 822 to Episode 829]] is formatted: <pre>[[SGU Episode 829#correction|{{tooltip|Wii Shop Channel Theme|correction made in Episode 829}}]]</pre>
which renders as [[SGU Episode 829#correction|{{tooltip|Wii Shop Channel Theme|correction made in Episode 829}}]].
which renders as [[SGU Episode 829#correction|{{tooltip|Wii Shop Channel Theme|correction made in Episode 829}}]].
=== Link to a website ===
To put a tooltip above a link to a website, use the tooltip template inside the single <code>[</code>brackets<code>]</code>, ''after'' the url. Example:
<pre>[https://www.sgutranscripts.org/w/index.php?title=SGU_Episode_946&action=edit#cite_note-7 {{tooltip|This article reference in SOF 946 uses the tooltip template to indicate what "IMA" stands for|which is the Israel Medical Association}}]</pre>
which renders as [https://www.sgutranscripts.org/w/index.php?title=SGU_Episode_946&action=edit#cite_note-7 {{tooltip|This article reference in SOF 946 uses the tooltip template to indicate what "IMA" stands for|which is the Israel Medical Association}}]
=== Link to a Wikipedia article ===
To Put a tooltip about a link to a wikipedia article that uses the [[Template:W|Wikipedia template]], use the tooltip template ''after'' the pipe that follows the Wikipedia article name. Make sure to close both the W and tooltip templates with double close braces: <code>}} }}</code> Example:
<pre>{{w|TRIUMF|{{tooltip|TRIUMF|Canada's national particle accelerator centre}}}}</pre>
which renders as {{w|TRIUMF|{{tooltip|TRIUMF|Canada's national particle accelerator centre}}}} inside the episode infobox in [[SGU Episode 952]].
== Usage ==
== Usage ==
The format is: <pre>[[_SGU_transcript_pagename_#with_anchor_if_anchor_|{{tooltip|_name_or_text_|_hovering_note_about_the_name_or_text_}}]]</pre>
The format is: <pre>[[_SGU_transcript_pagename_#with_anchor_if_anchor_|{{tooltip|_name_or_text_|_hovering_note_about_the_name_or_text_}}]]</pre>
 
<pre>[_website_URL_ {{tooltip|_name_of_webpage_or_other_info_|_hovering_note_}}]</pre>
<pre>{{w|_Wikipedia_article_title|{{tooltip|_Wikipedia_article_title_or_longer_text| _hovering_note_}}}}</pre>
</noinclude>
</noinclude>

Revision as of 06:39, 13 October 2023

This template allows for transcribers to attach a hovering note to some text, perhaps to alert readers to a connection to a previous episode, like the correction made in Episode 829, or to note a name dear to the Rogues, like Julia.

The basic 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.
Note: "_name_or_text_" has been bolded for emphasis in this example.

Tooltip with Episode/Website/Wiki links

Link to an SGU Transcripts page

To put a tooltip above a link to another Episode, use the tooltip template after the pipe that follows the link.

The tooltip over the bolded, anchored (#) link in Episode 822 to Episode 829 is formatted:

[[SGU Episode 829#correction|{{tooltip|Wii Shop Channel Theme|correction made in Episode 829}}]]

which renders as Wii Shop Channel Theme.

Link to a website

To put a tooltip above a link to a website, use the tooltip template inside the single [brackets], after the url. Example:

[https://www.sgutranscripts.org/w/index.php?title=SGU_Episode_946&action=edit#cite_note-7 {{tooltip|This article reference in SOF 946 uses the tooltip template to indicate what "IMA" stands for|which is the Israel Medical Association}}]

which renders as This article reference in SOF 946 uses the tooltip template to indicate what "IMA" stands for

Link to a Wikipedia article

To Put a tooltip about a link to a wikipedia article that uses the Wikipedia template, use the tooltip template after the pipe that follows the Wikipedia article name. Make sure to close both the W and tooltip templates with double close braces: }} }} Example:

{{w|TRIUMF|{{tooltip|TRIUMF|Canada's national particle accelerator centre}}}}

which renders as TRIUMF inside the episode infobox in SGU Episode 952.

Usage

The format is:

[[_SGU_transcript_pagename_#with_anchor_if_anchor_|{{tooltip|_name_or_text_|_hovering_note_about_the_name_or_text_}}]]
[_website_URL_ {{tooltip|_name_of_webpage_or_other_info_|_hovering_note_}}]
{{w|_Wikipedia_article_title|{{tooltip|_Wikipedia_article_title_or_longer_text| _hovering_note_}}}}