Misplaced Pages

Template talk:Infobox writer: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 18:50, 4 March 2024 editJonesey95 (talk | contribs)Autopatrolled, Extended confirmed users, Page movers, Mass message senders, Template editors377,197 edits Default image alt text duplicates caption: more← Previous edit Revision as of 00:04, 5 March 2024 edit undoOpencooper (talk | contribs)Autopatrolled, Extended confirmed users61,391 edits Default image alt text duplicates caption: reNext edit →
Line 59: Line 59:
This code for this infobox when embedding an image contains <code><nowiki>|title={{{caption|&rbrace;&rbrace;&rbrace;</nowiki></code>. When the <code>alt=</code> parameter is empty or missing, this results in the image's ALT text getting set to the text of the caption. (]) This is an improper ALT text: {{tquote|The alt text is intended to be read out by screen readers just before the caption, so avoid having the same details in both.}} (]) This behavior is also unhelpful for sighted readers in that it repeats the caption right below the image. ] (]) 16:19, 4 March 2024 (UTC) This code for this infobox when embedding an image contains <code><nowiki>|title={{{caption|&rbrace;&rbrace;&rbrace;</nowiki></code>. When the <code>alt=</code> parameter is empty or missing, this results in the image's ALT text getting set to the text of the caption. (]) This is an improper ALT text: {{tquote|The alt text is intended to be read out by screen readers just before the caption, so avoid having the same details in both.}} (]) This behavior is also unhelpful for sighted readers in that it repeats the caption right below the image. ] (]) 16:19, 4 March 2024 (UTC)
:Please provide a simple example showing what you mean. ]'s documentation says that {{para|title}} is used for the mouseover text, and it also says {{tq|When "alt" is used without "title", the alt text is also used as the title}}, but I don't see anything about {{para|title}} being used for alt text. Also, ] says that when thumb/frame/frameless is not specified, {{tq|If no alt text is specifically requested, use the requested caption as alt text.}} Also see on that page, the section that begins {{tq|The actual alt text for the displayed image will be one of the following, in order of preference:}}. The system may be working as designed. – ] (]) 18:46, 4 March 2024 (UTC) :Please provide a simple example showing what you mean. ]'s documentation says that {{para|title}} is used for the mouseover text, and it also says {{tq|When "alt" is used without "title", the alt text is also used as the title}}, but I don't see anything about {{para|title}} being used for alt text. Also, ] says that when thumb/frame/frameless is not specified, {{tq|If no alt text is specifically requested, use the requested caption as alt text.}} Also see on that page, the section that begins {{tq|The actual alt text for the displayed image will be one of the following, in order of preference:}}. The system may be working as designed. – ] (]) 18:46, 4 March 2024 (UTC)
::Yes, that module does not say anything about the alt text being defaulted to the caption, so it seems to be a side effect somewhere. I looked at other infoboxes and most don't exhibit this behavior of using the caption for the alt. It's only the ones like this one where the HTML title is set. You can tell when this is set by simply hovering over the image, which will popup a tooltip repeating the caption, though the issue itself is in the generated HTML's img alt attribute. I'm not sure the image syntax page applies here—that is discussing the <code>&lsqb;&lsqb;File:Foo.jpg|thumb|Caption here…]]</code> syntax, whereas these templates embed images directly, no? ] (]) 00:04, 5 March 2024 (UTC)

Revision as of 00:04, 5 March 2024

This is the talk page for discussing improvements to the Infobox writer template.
Archives: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10Auto-archiving period: 6 months 
Template:Infobox writer is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.

Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases.


WikiProject iconInfoboxes
WikiProject iconThis template is within the scope of WikiProject Infoboxes, a collaborative effort to improve the coverage of Infoboxes on Misplaced Pages. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.InfoboxesWikipedia:WikiProject InfoboxesTemplate:WikiProject InfoboxesInfoboxes
This template was considered for merging with Template:Infobox person on 17 December 2011. The result of the discussion was "no consensus to merge at this time; some support for refactoring {{Infobox writer}} so that it internally calls {{Infobox person}}".

Native names

Is there any reason why native names are displayed differently between the writer ibox and the person ibox (and all its wrapper derivatives)? For example, Hani al-Rahib versus Ayman al-Zawahiri. Thrakkx (talk) 15:25, 4 August 2022 (UTC)

The reason is that this 2019 discussion was implemented only in some infoboxes. – Jonesey95 (talk) 19:08, 19 August 2022 (UTC)

Website alignment

I've noticed the website parameter is centered for Template:Infobox_writer instead of being left aligned like the other parameters and like the website in Template:Infobox_person. Is there any way we could fix this for consistency please? :) I thought it was a bug in an article I recently edited and then I realised it's just the template. AlanTheScientist (talk) 17:39, 2 September 2022 (UTC)

I mentioned this above in the Signature section. This may be better because URLs are often long and would more often fit on one line when able to use the entire infobox width. I assume that is why it was done this way in this template. I suggested it may be better to change other infoboxes to work like this one. MB 19:03, 2 September 2022 (UTC)

Add employer field - ask again

Employer exists in infobox person, but not here. It's probably not relevant for authors of books, but I think it is significant enough for the infobox of writers for newspapers, magazines, websites, etc. MB 7:47 am, 24 September 2021, Friday (11 months, 26 days ago) (UTC−7)

There has been no opposition. I found someone else trying to use it today in Vladimir Nabokov, so that should count as further support. With no opposition, can you add this Jonesey95? MB 17:58, 19 September 2022 (UTC)
Where should it go in the infobox? Would you like to take a stab at making this change in the sandbox? – Jonesey95 (talk) 18:37, 19 September 2022 (UTC)
@Jonesey95 I tried, but couldn't get it to work. I was trying to put it after the existing #18 Literary Movement. MB 19:42, 19 September 2022 (UTC)
 Done. – Jonesey95 (talk) 01:55, 20 September 2022 (UTC)

Edit request 14 November 2022

This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request.

Description of suggested change: Addition of cause of death label @ line 44. This will require numerical updates for subsequent labels.

Diff: @ Line 44

+|label4 = Cause of death |data4 = {{{death cause|{{{death_cause|}}}}}}

Will also require update @ line 127 for unknown parameter check.

Thanks! Please advise with any mistakes or for clarificaiton. Bgv. (talk) 01:15, 14 November 2022 (UTC)

 Not done Please get consensus for this change before submitting an edit request. Nikkimaria (talk) 01:17, 14 November 2022 (UTC)

Request to introduce the signature_type parameter

This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request.

I added the |signature_type= parameter to this template, it could be able to add alternative text in place of Signature (for example: Seal). This parameter is borrowed from {{Infobox royalty}}. -- Great Brightstar (talk) 16:01, 4 April 2023 (UTC)

 Completed. P.I. Ellsworth , ed.  12:58, 5 April 2023 (UTC)

Default image alt text duplicates caption

This code for this infobox when embedding an image contains |title={{{caption|}}}. When the alt= parameter is empty or missing, this results in the image's ALT text getting set to the text of the caption. (example) This is an improper ALT text: The alt text is intended to be read out by screen readers just before the caption, so avoid having the same details in both. (MOS:ALT) This behavior is also unhelpful for sighted readers in that it repeats the caption right below the image. Opencooper (talk) 16:19, 4 March 2024 (UTC)

Please provide a simple example showing what you mean. Module:InfoboxImage's documentation says that |title= is used for the mouseover text, and it also says When "alt" is used without "title", the alt text is also used as the title, but I don't see anything about |title= being used for alt text. Also, Misplaced Pages:Extended_image_syntax says that when thumb/frame/frameless is not specified, If no alt text is specifically requested, use the requested caption as alt text. Also see on that page, the section that begins The actual alt text for the displayed image will be one of the following, in order of preference:. The system may be working as designed. – Jonesey95 (talk) 18:46, 4 March 2024 (UTC)
Yes, that module does not say anything about the alt text being defaulted to the caption, so it seems to be a side effect somewhere. I looked at other infoboxes and most don't exhibit this behavior of using the caption for the alt. It's only the ones like this one where the HTML title is set. You can tell when this is set by simply hovering over the image, which will popup a tooltip repeating the caption, though the issue itself is in the generated HTML's img alt attribute. I'm not sure the image syntax page applies here—that is discussing the ] syntax, whereas these templates embed images directly, no? Opencooper (talk) 00:04, 5 March 2024 (UTC)
Template talk:Infobox writer: Difference between revisions Add topic