Template:Tooltip

From SGUTranscripts
Revision as of 05:00, 16 May 2024 by Xanderox (talk | contribs) (whoops)
Jump to navigation Jump to search

<templatestyles src="Template:Tooltip/styles.css" />{{#invoke:Check for unknown parameters|check|unknown=Template:Main other|preview=Page using Template:Tooltip with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | class | dotted | id | link | style }}

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 <templatestyles src="Template:Tooltip/styles.css" />Julia{{#invoke:Check for unknown parameters|check|unknown=Template:Main other|preview=Page using Template:Tooltip with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | class | dotted | id | link | style }} .

The basic format is:

{{tooltip|_name_or_text_|_hovering_note_about_the_name_or_text_}}

The above example renders as <templatestyles src="Template:Tooltip/styles.css" />_name_or_text_{{#invoke:Check for unknown parameters|check|unknown=Template:Main other|preview=Page using Template:Tooltip with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | class | dotted | id | link | style }} , 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 [[SGU Episode 829#correction|<templatestyles src="Template:Tooltip/styles.css" />Wii Shop Channel Theme{{#invoke:Check for unknown parameters|check|unknown=Template:Main other|preview=Page using Template:Tooltip with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | class | dotted | id | link | style }} ]].

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, as in the References list from Episode 946. Example:

[https://pubmed.ncbi.nlm.nih.gov/12187564/ Harefuah (a medical journal by the {{tooltip|IMA|Israel Medical Association}}): [Titin: some aspects of the largest protein in the body]]

which renders as [https://pubmed.ncbi.nlm.nih.gov/12187564/ Harefuah (a medical journal by the <templatestyles src="Template:Tooltip/styles.css" />IMA{{#invoke:Check for unknown parameters|check|unknown=Template:Main other|preview=Page using Template:Tooltip with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | class | dotted | id | link | style }} ): [Titin: some aspects of the largest protein in the body]]

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 [[wikipedia:TRIUMF|<templatestyles src="Template:Tooltip/styles.css" />TRIUMF{{#invoke:Check for unknown parameters|check|unknown=Template:Main other|preview=Page using Template:Tooltip with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | class | dotted | id | link | style }}]] inside the episode infobox in SGU Episode 952.

Usage

Formatting certain examples:

Hover text inside an internal SGU Transcripts link

[[_SGU_transcript_pagename_#with_anchor_if_anchor_|{{tooltip|_name_or_text_|_hovering_note_about_the_name_or_text_}}]]

renders: [[Template:Tooltip#Usage|<templatestyles src="Template:Tooltip/styles.css" />_name_or_text_{{#invoke:Check for unknown parameters|check|unknown=Template:Main other|preview=Page using Template:Tooltip with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | class | dotted | id | link | style }} ]]

Hover text inside a hyperlink

[_website_URL_ {{tooltip|_name_of_webpage_or_other_info_|_hovering_note_}}]

renders: [http://www.sgutranscripts.org <templatestyles src="Template:Tooltip/styles.css" />_name_of_webpage_or_other_info_{{#invoke:Check for unknown parameters|check|unknown=Template:Main other|preview=Page using Template:Tooltip with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | class | dotted | id | link | style }}

]

Hover text inside Wikipedia template call

{{w|_Wikipedia_article_title|{{tooltip|_Wikipedia_article_title_or_longer_text| _hovering_note_}}}}

renders: [[wikipedia:The Skeptics Guide to the Universe |<templatestyles src="Template:Tooltip/styles.css" /> _Wikipedia_article_title_or_longer_text {{#invoke:Check for unknown parameters|check|unknown=Template:Main other|preview=Page using Template:Tooltip with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | class | dotted | id | link | style }}]]