Jump to content

Template talk:Clarify span

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Problem with "explain=" parameter

[edit]

The "explain=" parameter in this template doesn't seem to be working. I added a "clarify span" template with an "explain=" parameter, but the text of the explanation was ignored and the default value ("clarify") was used instead. — Richwales (no relation to Jimbo) 19:21, 31 October 2022 (UTC)[reply]

On which page? You should always give examples. --Redrose64 🌹 (talk) 00:03, 1 November 2022 (UTC)[reply]
See here. — Richwales (no relation to Jimbo) 02:03, 1 November 2022 (UTC)[reply]
 Works for me The generated HTML (for the whole tag as used in that article) is
<sup class="noprint Inline-Template Template-Clarify" style="margin-left:0.1em; white-space:nowrap;">[<i><a href="/wiki/Wikipedia:Please_clarify" title="Wikipedia:Please clarify"><span title="translation?">clarify</span></a></i>]</sup>
and that title="translation?" attribute causes my browser (Firefox) to display it as a tooltip when I hover the mouse pointer over the link. Not all browsers will do this: it is a misuse of the title= attribute. --Redrose64 🌹 (talk) 08:18, 1 November 2022 (UTC)[reply]
OK, if I hover over the link, I see "translation?" in a tooltop. (I'm using Google Chrome, FWIW.) But I had hoped / expected to see the "explain=" parameter text in the link itself, independent of any tooltop. Was I misinformed? Is there a reason why the "explain=" parameter text is shown only in a tooltip? — Richwales (no relation to Jimbo) 23:18, 1 November 2022 (UTC)[reply]
I can't find anything in the template documentation that suggests that the link text will be altered - indeed, it states This text is shown as a tooltip.. See also WP:EGG - if the link were to be translation?, people might expect that it would lead them to a page about translation. --Redrose64 🌹 (talk) 00:06, 2 November 2022 (UTC)[reply]