Module talk:InfoboxImage: Difference between revisions
→"title=" parameter: relevance?: response |
|||
| Line 34: | Line 34: | ||
: An example of using both fields (with "thumb" instead of "frameless") can be found at [[WP:FILE#Using files]]. -- [[User:Zyxw|Zyxw]] ([[User talk:Zyxw|talk]]) 04:03, 14 July 2016 (UTC) | : An example of using both fields (with "thumb" instead of "frameless") can be found at [[WP:FILE#Using files]]. -- [[User:Zyxw|Zyxw]] ([[User talk:Zyxw|talk]]) 04:03, 14 July 2016 (UTC) | ||
::{{U|Zyxw}} thanks, my question solved. So in my case, parameter title is redundant to parameter caption. (btw, mistake in my OP: 'title' in InfoboxImage is not the same as css-title in a tag like <code><span title="css-title example"></code>. Glad it did not distract you). -[[User:DePiep|DePiep]] ([[User talk:DePiep|talk]]) 05:32, 14 July 2016 (UTC) | ::{{U|Zyxw}} thanks, my question solved. So in my case, parameter title is redundant to parameter caption. (btw, mistake in my OP: 'title' in InfoboxImage is not the same as css-title in a tag like <code><span title="css-title example"></code>. Glad it did not distract you). -[[User:DePiep|DePiep]] ([[User talk:DePiep|talk]]) 05:32, 14 July 2016 (UTC) | ||
::: Glad that helped. I assume that "Caption" was used in [[WP:EIS]] because it is displayed as a caption when using "thumb". However, "title" more accurately describes it when using "frameless", because if you look at the generated HTML it is used as a title attribute in the anchor tag that surrounds the image tag: <code><a href="/wiki/File:Example.png" class="image" title="Title text"><img alt="Alt text" src= ...</code> -- [[User:Zyxw|Zyxw]] ([[User talk:Zyxw|talk]]) 06:28, 14 July 2016 (UTC) | |||
Revision as of 06:30, 14 July 2016
User:MiszaBot/config Template:Archives
List of placeholder images
Template:Ping. I'm not convinced by this edit. This list is intended to be a complete alphabetical list of placeholder images, so that templates can ask the module to suppress display of placeholders. -- John of Reading (talk) 07:12, 31 October 2015 (UTC)
- Image is needed male.svg was already in the list further up anyway, so I've undone that change. -- WOSlinker (talk) 07:43, 31 October 2015 (UTC)
Imagemap support
This module needs to be updated to support "imagemap", per the example at The Doctor (Doctor Who) to remove any extraneous markup. There is only one image used (File:Versions of the Doctor.jpg), but multiple different links over the one image. A template or module should reflect all possible usages of it; even though this is only one such case, there may be other cases of this on Wikipedia. I'd do it myself in the sandbox, but I'm not entirely familiar with this module. Alex|The|Whovian? 23:59, 13 March 2016 (UTC)
- This still needs fixing. Alex|The|Whovian? 13:22, 4 April 2016 (UTC)
"title=" parameter: relevance?
How relevant is it to support the |title= parameter, especially next to the |alt= parameter? (i.e., the css-tiles a.k.a. mousehover-text; |alt=-value is used when missing).
I get the 'css-title' angle, but not in WP:EIS and not in WP:FILE we have an option for that. So when adding a plain file to an article (outside of infobox), the option 'css-title' is not available. My question starts from {{Chembox}}, which has 400+ parameters. I'd like to simplify this list, eg by removing this title parameter (pushing the alt parameter). -DePiep (talk) 19:58, 25 May 2016 (UTC)
- There is an archived posting at Module talk:InfoboxImage/Archive 1#Alt text versus title text which discusses the differences. Also, the text assigned to the
|title=parameter is placed into the normal image syntax (referred to as Caption at WP:EIS), so: {{#invoke:InfoboxImage|InfoboxImage|image=Example.png|alt=Alt text|title=Title text}}- will output the following (which could be placed into an article, inside or outside an infobox):
[[File:Example.png|frameless|alt=Alt text|Title text]].- An example of using both fields (with "thumb" instead of "frameless") can be found at WP:FILE#Using files. -- Zyxw (talk) 04:03, 14 July 2016 (UTC)
- Template:U thanks, my question solved. So in my case, parameter title is redundant to parameter caption. (btw, mistake in my OP: 'title' in InfoboxImage is not the same as css-title in a tag like
<span title="css-title example">. Glad it did not distract you). -DePiep (talk) 05:32, 14 July 2016 (UTC)
- Template:U thanks, my question solved. So in my case, parameter title is redundant to parameter caption. (btw, mistake in my OP: 'title' in InfoboxImage is not the same as css-title in a tag like
- Glad that helped. I assume that "Caption" was used in WP:EIS because it is displayed as a caption when using "thumb". However, "title" more accurately describes it when using "frameless", because if you look at the generated HTML it is used as a title attribute in the anchor tag that surrounds the image tag:
<a href="/wiki/File:Example.png" class="image" title="Title text"><img alt="Alt text" src= ...-- Zyxw (talk) 06:28, 14 July 2016 (UTC)
- Glad that helped. I assume that "Caption" was used in WP:EIS because it is displayed as a caption when using "thumb". However, "title" more accurately describes it when using "frameless", because if you look at the generated HTML it is used as a title attribute in the anchor tag that surrounds the image tag: