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)