Module talk:Hatnote list
Standardizing for-see lists
I've started a discussion at Wikipedia talk:Hatnote#Standardizing for-see lists about standardizing and centralizing the code that generates lists of "For X, see Y" items in hatnotes. The discussion may affect this page, but is located there as it's relevant to others as well. Please comment there if interested. {{Nihiltres |talk |edits}} 17:26, 27 April 2016 (UTC)
Varied punctuation across for-see lists
(pinging Andy) As part of improvements to the list-generating functionality, Module:Hatnote list/sandbox has a feature whereby if any list items contain the separator (a comma), then the list uses the alternate separator (a semicolon). For example:
{{#invoke:Hatnote list/sandbox|forSee|''semicolons''|Pointe-Claire, Quebec|and|Rockville, Maryland|and|Hackensack, New Jersey}}
→- For semicolons, see Pointe-Claire, Quebec; Rockville, Maryland; and Hackensack, New Jersey.
However, since this happens at the level of andList
, different for-see items (each an individual sentence) in a for-see list may use different separators. For example:
{{#invoke:Hatnote list/sandbox|forSee|''semicolons''|Pointe-Claire, Quebec|and|Rockville, Maryland|and|Hackensack, New Jersey|''commas''|Comma|and|Semicolon|and|Full stop}}
→- For semicolons, see Pointe-Claire, Quebec; Rockville, Maryland; and Hackensack, New Jersey. For commas, see Comma, Semicolon, and Full stop.
Is this behaviour undesirable? It'd take some annoying restructuring to avoid it. {{Nihiltres |talk |edits}} 20:06, 3 May 2016 (UTC)
- A big test case:
{{#invoke:Hatnote list/sandbox|forSee|''other songs by the same title''|Black Widow (disambiguation)#Songs{{!}}Brute force label text|and|Special:Permalink/718165170#Standardizing for-see lists|and|Category:Wikipedia semi-protected templates|and|File:Å.svg|and|English Wikipedia#nonexistent section|and|Red link article|and|Veni, vidi, vici|and|Do Androids Dream of Electric Sheep?|''another list''|Article#Section|and|Technology}}
→- For other songs by the same title, see Brute force label text; Special:Permalink/718165170 § Standardizing for-see lists; Category:Wikipedia semi-protected templates; File:Å.svg; English Wikipedia § nonexistent section; Red link article; Veni, vidi, vici; and Do Androids Dream of Electric Sheep? For another list, see Article § Section, and Technology.
- Looks good :) If we wrote those examples above in prose, APA style (for example) suggests what we see right now – semicolons for comma entries, and commas for general ones. Punctuation collapse looks good too. (I'm not sure if I'll be able to devote as much time as I planned – some new stuff came up very recently. I'm still keeping an eye on this and will help when/where I think I can.)
- Inviting other folks who worked on some of these modules/templates, hope you don't mind. Mr. Stradivarius, Codename Lisa, R'n'B, Bkonrad, and Steel1943: thoughts? — Andy W. (talk · ctb) 22:33, 3 May 2016 (UTC)
Template-protected edit request on 30 October 2017
![]() | It is requested that an edit be made to the template-protected module at Module:Hatnote list. (edit · history · last · links · sandbox · edit sandbox · sandbox history · sandbox last edit · sandbox diff · test cases · transclusion count · protection log) This template must be followed by a complete and specific description of the request, so that an editor unfamiliar with the subject matter could complete the requested edit immediately.
Edit requests to template-protected pages should only be used for edits that are either uncontroversial or supported by consensus. If the proposed edit might be controversial, discuss it on the protected page's talk page before using this template. Consider making changes first to the module's sandbox and test them thoroughly here before submitting an edit request. To request that a page be protected or unprotected, make a protection request. When the request has been completed or denied, please add the |
185.89.219.229 (talk) 04:56, 30 October 2017 (UTC)