Template talk:Notelist

Latest comment: 6 months ago by LlywelynII in topic Columns?

Error when on same line as semicolon header

edit

I was having a strange issue where my notelist wasn't listing as lower case even though my prose refs were. I like to have my notelist on the same line as the semicolon heading to save space, but it looks like that was what was causing this issue. I was able to fix it → see the diff. I'll be fine if it I leave it like this, but if you go back one revision, you'll see what I'm talking about. Someone maintaining this template want to fix it? czar  17:14, 10 May 2014 (UTC)Reply

It's a problem (bug?) with HTML Tidy, and there's not much we can do about it except to say "the {{notelist}} template must be at the start of a line". Technically speaking, the <div class="reflist" style="list-style-type: lower-alpha;">...</div> that is supposed to enclose the <ol class="references">...</ol> is being removed from its proper position, and instead placed inside a <dd>...</dd> which is part of the preceding <dl>...</dl> leaving the <ol class="references">...</ol> unenclosed. It is that <div>...</div> which alters the figures to letters. --Redrose64 (talk) 18:31, 10 May 2014 (UTC)Reply

Bullets rendering numerically on mobile

edit

There applies an inline style `list-style-type: lower-alpha;` on the div with class reflist. To work in mobile this inline style should be on the list element itself or you should add a class the to the element and a css rule to MediaWiki:Mobile.css. Jdlrobson (talk) 18:29, 18 September 2015 (UTC)Reply

This also happens with upper-alpha, and probably with all the other list-style-types.
@Jdlrobson: Can you please give an example of how to do this for both the note place in the text and the list? I can't get it to work in mobile (List of people from Pennsylvania#Radio and television), and the directions seem to be contradictory. --Thnidu (talk) 04:16, 29 September 2015 (UTC)Reply

I'm a little confused by the link you post to. I don't see the {{Notelist}} template used anywhere...

I suspect the best way to fix this for mobile is to do something like <div class="lower-alpha-list" style="list-style-type: lower-alpha;"> in conjunction with .lower-alpha-list ul {list-style-type: lower-alpha;} in MediaWiki:Mobile.css Jdlrobson (talk) 01:37, 30 September 2015 (UTC) (ping Thnidu)Reply

Copied for information

edit

Please see Wikipedia talk:WikiProject Military history#Notelist query

Regards Keith-264 (talk) 15:37, 17 July 2017 (UTC)Reply

Columns?

edit

Is this thing now doing auto-columns, like {{Reflist}}? Why? It's horrible. Andy Dingley (talk) 23:38, 13 January 2018 (UTC)Reply

Seconded. The notes are entirely unhelpful when columned. Undo it.
At minimum, clearly explain in the notes how to turn it off. — LlywelynII 08:10, 27 April 2024 (UTC)Reply
@Andy Dingley and LlywelynII: There have been no changes to {{notelist}} for over ten years that might alter its behaviour in this manner. --Redrose64 🌹 (talk) 11:18, 27 April 2024 (UTC)Reply
I note at Andy Dingley's post was made in 2018, about six months after Template:Reflist was changed to allow the then-recently added mw:Extension:Cite responsive columns feature to activate by default. As this template is a wrapper for {{reflist}}, it followed along. As for the documentation, Template:Notelist/doc is not protected, so anyone interested could update it to link to or copy relevant information from Template:Reflist/doc if they think the existing text isn't clear enough. Anomie 12:46, 27 April 2024 (UTC)Reply
@Redrose64: & @Anomie: Better idea: whatever this template does to {{reflist}}, adjust it to turn off the columns by default every time in all cases, unless specifically told otherwise. Yes, that's exactly what we were both talking about. Notes will generally be much longer than citations and require different formatting generally. [Edit: Please and thank you on my own behalf and on behalf of the 99.99999999998% of Wikipedia's visitors who don't know how to find template talk pages and request fixes to problems like this.] — LlywelynII 13:12, 27 April 2024 (UTC)Reply

The group= parameter is not working as documented

edit

I'm finding that |group= doesn't work as documented. See, e.g. this edit in which I put four accessibility- and mobile-related {{efn}} footnotes into {{efn|group=A|1=...}} form with a corresponding {{notelist|group=A}} to group them, and it failed. They continued to appear in the main {{notelist}} output. I ended up have to self-revert that aspect of the edit (which included a lot of other cleanup); this partial-revert diff will make the exact changes in question clearer.  — SMcCandlish ¢ 😼  05:40, 29 July 2018 (UTC)Reply

PS: Here's a clean sandbox test demonstrating the problem: User:SMcCandlish/sandbox3.  — SMcCandlish ¢ 😼  06:25, 29 July 2018 (UTC)Reply

Per the template code groups can only be one of note, upper-alpha, upper-roman, lower-alpha, lower-greek, or lower-roman. This appears to have been the case ever since the option to have a group was added. Galobtter (pingó mió) 06:39, 29 July 2018 (UTC)Reply

Template-protected edit request on 17 November 2019

edit

I would add an additional reference to note b, that provides a link to a primary source document confirming the article's subject's birthdate. It is a reference to a 1901 Canadian Census page. The 1901 census asked for a full date of birth. The census page states the subject's birthdate as June 23, 1884. I have not edited for several years. I am not familiar with the new protocols for editing. The following is the suggested addition to the note:

"Reference: RG31 - Statistics Canada; Item No. 3268977; Microfilm:T-6490". Library and Archives Canada. Retrieved Nov. 17, 2019.

The URL address for the document is: https://www.bac-lac.gc.ca/eng/census/1901/Pages/item.aspx?itemid=3268977. The Web page uses an incorrect surname for indexing. It refers to "Sayles" when it should be "Taylor." It is an obvious transcription error if you look at the source document. I have posted a correction on-line to Library and Archives Canada, pointing out the error. The page has links to .jpg and .pdf versions of the census page. Macman1956 (talk) 23:33, 17 November 2019 (UTC)Reply

  Not done: this is the talk page for discussing improvements to the template {{Notelist}}. Please make your request at the talk page for the article concerned. — JJMC89(T·C) 00:15, 18 November 2019 (UTC)Reply

Large gap between notelist and next section

edit

On User:Sr88/sandboxbrazil#Notes I have defined the notes in the notelist. However, there is a large gap between the notelist and the next sub-heading (References). Can this be removed or modified somehow? Sr88, talk. 17:42, 10 February 2020 (UTC)Reply

@Sr88: In that place, I see two red error messages, as follows:

Cite error: A list-defined reference with the name "race" has been invoked, but is not defined in the <references> tag (see the help page).
Cite error: A list-defined reference with the name "race" has been invoked, but is not defined in the <references> tag (see the help page).

- do you see them in this page? --Redrose64 🌹 (talk) 19:04, 10 February 2020 (UTC)Reply
Ah, got it. Sr88, see H:SHOWCITEERROR. --Redrose64 🌹 (talk) 20:04, 10 February 2020 (UTC)Reply

Cite errors when using refs parameter with notes that contain citations

edit

I wanted to use the |refs= to keep the text more readable, but when I add more than one explanatory note that contains a citations to such a list, I get cite errors saying "A list-defined reference names ... is not defined in the content". However, I do define these citations in the content. Please see example in James Hamilton (English army officer) or Alexander MacDonnell, 3rd Earl of Antrim. What I am doing wrong? With many thanks and best regards, Johannes Schade (talk) 19:29, 10 October 2022 (UTC)Reply

This doesn't seem to have anything to do with this template, it seems to be a MediaWiki bug where it gets confused if you try to use references for a different group inside list-defined references. Anomie 01:46, 11 October 2022 (UTC)Reply
Dear User:Anomie. Thank you very much for your quick reply. I looked up Phabricator T253596. It says the errors are thrown when {{Notelist|refs=...}} and {{Reflist|refs=...}} are used together. This does not seem to be my case. I try to use {{Notelist|refs=...}} but just plain {{Reflist}}. Besides, despite the errors, the references seem to be displayed correctly. With many thanks and best regards, Johannes Schade (talk) 09:31, 11 October 2022 (UTC)Reply
It's a long-standing problem, see e.g. Help talk:List-defined references and Template talk:Efn (and other places). Basically: Efn doesn't play nice with LDR, so don't put them together. --Redrose64 🌹 (talk) 15:24, 11 October 2022 (UTC)Reply
@Redrose64, just to be clear, when you say don't put them together, is that to say that we just shouldn't have notelists that use LDRs at all? Seems like something that should be taken out of the doc. (I've just come across this issue in this version). — HTGS (talk) 04:39, 27 January 2023 (UTC)Reply
It has
{{Notelist|refs=
{{efn|name=zh-name|{{zh|s=赵婷|t=趙婷|p=Zhào Tíng}}}}
{{efn|name=nationality|Zhao's nationality is unclear, but media including [[Disney]] and the [[Communist Party of China]]'s ''[[Global Times]]'' report that her nationality is Chinese.<ref>{{cite news ...}}</ref><ref>{{cite web ... }}</ref>}} 
}}
(content of cite templates omitted for clarity). The first of the two {{efn}} is fine (although unnecessary), but the second is not because it contains <ref>...</ref> tags - two pairs to be exact. The MediaWiki parser is being presented with at least three levels of processing, and gives up after two, hence the red error message. You need to get that second {{efn}} out of the notelist, and put it in the actual place in the text where it is used. --Redrose64 🌹 (talk) 00:16, 28 January 2023 (UTC)Reply
Yes agree. I independently identified bug and its solution just now when I tried to add a second reference to a previous list based ref= list. As the documentation says "Note: Due to limitations in the MediaWiki software, do not use list-defined footnotes that contain references." The note could be better and more accurately written "Note: Due to limitations in the MediaWiki software, do not use list-defined footnotes that contain references but inline footnotes will work fine with multiple references."ChaseKiwi (talk) ChaseKiwi (talk) 12:36, 27 January 2024 (UTC)Reply