Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Tales from Chyria
Search
Editing
Module talk:InfoboxImage
(section)
From Tales from Chyria
Namespaces
Module
Discussion
More
More
Page actions
Read
Edit source
New topic
History
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Why is "alt" the fallback for "title"? == In this condition <syntaxhighlight lang="lua" line start="269"> if title ~= "" and title ~= nil then result = result .. "|" .. title; elseif alt ~= "" and alt ~= nil then result = result .. "|" .. alt; end </syntaxhighlight> {{para|alt}} is used as the fallback for an image title when {{para|title}} is not present. This appears arbitrary to me and it diverges from the usual behavior of {{para|alt}} in [[File:]] constructs. As a result, articles that use InfoboxImage and alt (but not title) for each image suddenly have a title on the infobox image, but none on all others. Is there a reason that this is the case? Can this behavior be corrected (by removing lines 271 and 272)? [[User:IceWelder|<span style="font-variant: small-caps;">IceWelder</span>]] [[[User talk:IceWelder|<span style="color: #424242;">✉</span>]]] 07:38, 26 October 2021 (UTC) : Not sure whether anyone is even watching this talk page. {{Ping|WOSlinker}} You're the most active editor on the module. Would you mind sharing your insight? [[User:IceWelder|<span style="font-variant: small-caps;">IceWelder</span>]] [[[User talk:IceWelder|<span style="color: #424242;">✉</span>]]] 17:22, 27 October 2021 (UTC) :: It was just done that way so that the hover over tooltip showed some information. If there are no objections in the next week then I'll remove it. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 18:29, 27 October 2021 (UTC) ::: I've updated it. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 18:26, 5 November 2021 (UTC) :::: I made this corresponding doc update https://en.wikipedia.org/w/index.php?title=Module:InfoboxImage/doc&type=revision&diff=1065533441&oldid=1048551125&diffmode=source Note that lines 259-262 now seem redundant <syntaxhighlight lang="lua"> -- if alt value is a keyword then do not use as a description if alt == "thumbnail" or alt == "thumb" or alt == "frameless" or alt == "left" or alt == "center" or alt == "right" or alt == "upright" or alt == "border" or mw.ustring.match(alt or "", '^[0-9]*px$', 1) ~= nil then alt = nil; end </syntaxhighlight> [[User:Arlolra|Arlolra]] ([[User talk:Arlolra|talk]]) 01:58, 14 January 2022 (UTC)
Summary:
Please note that all contributions to Tales from Chyria may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Chyria Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Wiki tools
Wiki tools
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs