Wikipedia talk:Extended image syntax: Difference between revisions
Content deleted Content added
m Archiving 1 discussion(s) to Wikipedia talk:Extended image syntax/Archive 3) (bot |
Kwamikagami (talk | contribs) →Copiable text vs mouse-over text: new section |
||
Line 32:
:::::::::::Then we do have a difference of opinion. I agree that it is good for readers to discover the file description, for the reasons you give, and like you I don’t see much value in adding coordinates to captions. But I don’t think we should legislate that data should not appear in one place because it would be better for the user to have to go to another place to see it. How the data should be presented is a design decision that I feel we should leave to the editor working on each instance. [[User:Mike Christie|Mike Christie]] ([[User_talk:Mike Christie|talk]] - [[Special:Contributions/Mike_Christie|contribs]] - [[User:Mike Christie/Reference library|library]]) 21:37, 15 July 2021 (UTC)
::::::::::::It's already legislated - [[MOS:CAPTION]] says {{tq|Captions should be succinct; more information can be included on its description page, or in the main text.}} So we put coords on the file description page, not in the caption. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 22:08, 15 July 2021 (UTC)
== Copiable text vs mouse-over text ==
Sometimes we need to substitute Unicode characters with images due to lack of widespread font support. Because a user manually copying the WP text should still get the correct character, the Unicode character is often added to the file syntax after a pipe. But that causes it to display as the mouse-over as well, which isn't useful (the mouse-over is either equivalent to the image, or displays as an empty box or question mark). I was thinking of adding the following text to our instructions to resolve the issue. But would this cause different problems with screen readers? Will a screen-reader recognize what a Unicode character is even if the user doesn't have the fonts to display it?
Suggested text:
{{blockquote|The alt text is what gets copied when a reader manually copies a section of Wikipedia text that includes images. This may be useful when an image is used to substitute for a Unicode character that may not yet have widespread font support. The mouse-over, however, should be something more descriptive, as it would be unhelpful for it to look just like the image or, worse, display as a blank box. The alt parameter will provide a distinct mouse-over text:
:<nowiki>[[file:....svg|16px|(mouseover text)|alt=(copiable text)]]</nowiki>
For example,
:<nowiki>The Earth: [[file:Earth symbol.svg|16px|alt=&#x1F728;|The Earth symbol (four corners of the World)]].</nowiki>
will display as:
:The Earth: [[file:Earth symbol.svg|16px|alt=🜨|The Earth symbol (four corners of the World)]].
Note that the mouse-over display is the description of the symbol, while if you copy the text and paste it in another document, you'll get the Unicode character '🛈' instead. (You may need to install a supporting font for it to display.)}}
Please ping me if you respond — [[User:Kwamikagami|kwami]] ([[User talk:Kwamikagami|talk]]) 00:08, 1 January 2022 (UTC)
|